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

Unified Diff: ash/autoclick/autoclick_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
« no previous file with comments | « ash/accelerators/nested_dispatcher_controller_unittest.cc ('k') | ash/debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/autoclick/autoclick_controller.cc
diff --git a/ash/autoclick/autoclick_controller.cc b/ash/autoclick/autoclick_controller.cc
index 062a9c3d686a552672c22faa6c86815b9a92d359..dd5e4a0f98b28fc828003d0cb6888c09c0893a5f 100644
--- a/ash/autoclick/autoclick_controller.cc
+++ b/ash/autoclick/autoclick_controller.cc
@@ -186,8 +186,8 @@ void AutoclickControllerImpl::DoAutoclick() {
anchor_location_ = click_location;
wm::ConvertPointFromScreen(root_window, &click_location);
- aura::WindowEventDispatcher* dispatcher = root_window->GetDispatcher();
- dispatcher->host()->ConvertPointToHost(&click_location);
+ aura::WindowTreeHost* host = root_window->GetHost();
+ host->ConvertPointToHost(&click_location);
ui::MouseEvent press_event(ui::ET_MOUSE_PRESSED,
click_location,
@@ -201,9 +201,9 @@ void AutoclickControllerImpl::DoAutoclick() {
ui::EF_LEFT_MOUSE_BUTTON);
ui::EventDispatchDetails details =
- dispatcher->OnEventFromSource(&press_event);
+ host->dispatcher()->OnEventFromSource(&press_event);
if (!details.dispatcher_destroyed)
- details = dispatcher->OnEventFromSource(&release_event);
+ details = host->dispatcher()->OnEventFromSource(&release_event);
if (details.dispatcher_destroyed)
return;
}
« no previous file with comments | « ash/accelerators/nested_dispatcher_controller_unittest.cc ('k') | ash/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698