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

Unified Diff: ash/display/screen_position_controller.cc

Issue 72503002: Remove some pass-thrus on RootWindow API in favor of exposing the RootWindowHost again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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 | « ash/display/mirror_window_controller.cc ('k') | ash/display/screen_position_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/screen_position_controller.cc
diff --git a/ash/display/screen_position_controller.cc b/ash/display/screen_position_controller.cc
index 9244894bbe016e13fbd944f6f897aa655b25add8..e9f7a4297f27c700265e9caf65dd2768c9a31385 100644
--- a/ash/display/screen_position_controller.cc
+++ b/ash/display/screen_position_controller.cc
@@ -89,20 +89,18 @@ std::pair<aura::Window*, gfx::Point> GetRootWindowRelativeToWindow(
// extended root window's coordinates.
gfx::Point location_in_native(location_in_root);
- root_window->GetDispatcher()->ConvertPointToNativeScreen(
+ root_window->GetDispatcher()->host()->ConvertPointToNativeScreen(
&location_in_native);
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
for (size_t i = 0; i < root_windows.size(); ++i) {
aura::WindowEventDispatcher* dispatcher =
root_windows[i]->GetDispatcher();
- const gfx::Rect native_bounds(
- dispatcher->GetHostOrigin(),
- dispatcher->GetHostSize()); // in px.
+ const gfx::Rect native_bounds = dispatcher->host()->GetBounds();
if (native_bounds.Contains(location_in_native)) {
root_window = root_windows[i];
location_in_root = location_in_native;
- dispatcher->ConvertPointFromNativeScreen(&location_in_root);
+ dispatcher->host()->ConvertPointFromNativeScreen(&location_in_root);
break;
}
}
« no previous file with comments | « ash/display/mirror_window_controller.cc ('k') | ash/display/screen_position_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698