Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(567)

Unified Diff: ui/aura/window.cc

Issue 10827145: Convert Aura to use ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/window.h ('k') | ui/aura/window_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
===================================================================
--- ui/aura/window.cc (revision 150582)
+++ ui/aura/window.cc (working copy)
@@ -19,7 +19,6 @@
#include "ui/aura/client/stacking_client.h"
#include "ui/aura/client/visibility_client.h"
#include "ui/aura/env.h"
-#include "ui/aura/event.h"
#include "ui/aura/event_filter.h"
#include "ui/aura/focus_manager.h"
#include "ui/aura/layout_manager.h"
@@ -243,7 +242,7 @@
if (!GetRootWindow())
return bounds();
gfx::Point origin = bounds().origin();
- Window::ConvertPointToWindow(parent_, GetRootWindow(), &origin);
+ ConvertPointToTarget(parent_, GetRootWindow(), &origin);
return gfx::Rect(origin, bounds().size());
}
@@ -432,7 +431,7 @@
}
// static
-void Window::ConvertPointToWindow(const Window* source,
+void Window::ConvertPointToTarget(const Window* source,
const Window* target,
gfx::Point* point) {
if (!source)
@@ -459,7 +458,7 @@
RootWindow* root_window = GetRootWindow();
DCHECK(root_window);
gfx::Point point_in_root(point_in_window);
- ConvertPointToWindow(this, root_window, &point_in_root);
+ ConvertPointToTarget(this, root_window, &point_in_root);
root_window->MoveCursorTo(point_in_root);
}
@@ -484,7 +483,7 @@
if (!root_window)
return false;
gfx::Point local_point(point_in_root);
- ConvertPointToWindow(root_window, this, &local_point);
+ ConvertPointToTarget(root_window, this, &local_point);
return gfx::Rect(GetTargetBounds().size()).Contains(local_point);
}
@@ -753,7 +752,7 @@
continue;
gfx::Point point_in_child_coords(local_point);
- Window::ConvertPointToWindow(this, child, &point_in_child_coords);
+ ConvertPointToTarget(this, child, &point_in_child_coords);
if (for_event_handling && delegate_ &&
!delegate_->ShouldDescendIntoChildForEventHandling(
child, local_point)) {
« no previous file with comments | « ui/aura/window.h ('k') | ui/aura/window_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698