aura: Some minor code cleanup.

* Avoid an unnecessary event-coordinate conversion for scroll events.
* Remove an unused parameter and correct the doc.
* Check less costly conditionals first when looking for a target window for an
  event.

BUG=none
[email protected]

Review URL: https://codereview.chromium.org/18254004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210379 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h
index 1a7da79..9d670388 100644
--- a/ui/aura/root_window.h
+++ b/ui/aura/root_window.h
@@ -311,11 +311,8 @@
   // factor. The RootWindowHostDelegate dispatches events in the physical pixel
   // coordinate. But the event processing from RootWindow onwards happen in
   // device-independent pixel coordinate. So it is necessary to update the event
-  // received from the host. When |keep_inside_root| is true and the event's
-  // system location is inside host window's bounds, the location will be
-  // kept inside the root window's bounds.
-  void TransformEventForDeviceScaleFactor(bool keep_inside_root,
-                                          ui::LocatedEvent* event);
+  // received from the host.
+  void TransformEventForDeviceScaleFactor(ui::LocatedEvent* event);
 
   // Moves the cursor to the specified location. This method is internally used
   // by MoveCursorTo() and MoveCursorToHostLocation().