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

Unified Diff: ui/views/event_utils_aura.cc

Issue 37733003: Make GetRootWindow() return a Window instead of a RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 2 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/views/drag_utils.cc ('k') | ui/views/test/ui_controls_factory_desktop_aurax11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/event_utils_aura.cc
diff --git a/ui/views/event_utils_aura.cc b/ui/views/event_utils_aura.cc
index 455ec1a9e51aedd366438bb0fa3412308d4141e2..054b28083e92a1837f1d7ea484e4fff67810dde7 100644
--- a/ui/views/event_utils_aura.cc
+++ b/ui/views/event_utils_aura.cc
@@ -20,10 +20,11 @@ bool RepostLocatedEvent(gfx::NativeWindow window,
if (!window)
return false;
- aura::RootWindow* root_window = window->GetRootWindow();
+ aura::Window* root_window = window->GetRootWindow();
gfx::Point root_loc(event.location());
- ScreenPositionClient* spc = GetScreenPositionClient(root_window);
+ ScreenPositionClient* spc =
+ aura::client::GetScreenPositionClient(root_window);
if (!spc)
return false;
@@ -43,7 +44,7 @@ bool RepostLocatedEvent(gfx::NativeWindow window,
relocated->set_location(root_loc);
relocated->set_root_location(root_loc);
- root_window->RepostEvent(*relocated);
+ root_window->GetDispatcher()->RepostEvent(*relocated);
return true;
}
« no previous file with comments | « ui/views/drag_utils.cc ('k') | ui/views/test/ui_controls_factory_desktop_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698