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

Unified Diff: ash/display/screen_position_controller.cc

Issue 184903003: Window ownership -> WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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
Index: ash/display/screen_position_controller.cc
diff --git a/ash/display/screen_position_controller.cc b/ash/display/screen_position_controller.cc
index 13681c01f1e923c01ca55a65e63f61fa1d5c604b..54f106ca568664cde0af8f8a562ba17bc2064996 100644
--- a/ash/display/screen_position_controller.cc
+++ b/ash/display/screen_position_controller.cc
@@ -92,18 +92,16 @@ std::pair<aura::Window*, gfx::Point> GetRootWindowRelativeToWindow(
// extended root window's coordinates.
gfx::Point location_in_native(location_in_root);
- root_window->GetDispatcher()->host()->ConvertPointToNativeScreen(
- &location_in_native);
+ root_window->GetHost()->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->host()->GetBounds();
+ aura::WindowTreeHost* host = root_windows[i]->GetHost();
+ const gfx::Rect native_bounds = host->GetBounds();
if (native_bounds.Contains(location_in_native)) {
root_window = root_windows[i];
location_in_root = location_in_native;
- dispatcher->host()->ConvertPointFromNativeScreen(&location_in_root);
+ host->ConvertPointFromNativeScreen(&location_in_root);
break;
}
}
@@ -143,7 +141,7 @@ void ScreenPositionController::ConvertHostPointToScreen(
aura::Window* root_window,
gfx::Point* point) {
aura::Window* root = root_window->GetRootWindow();
- root->GetDispatcher()->host()->ConvertPointFromHost(point);
+ root->GetHost()->ConvertPointFromHost(point);
std::pair<aura::Window*, gfx::Point> pair =
GetRootWindowRelativeToWindow(root, *point);
*point = pair.second;
« no previous file with comments | « ash/display/mirror_window_controller_unittest.cc ('k') | ash/display/screen_position_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698