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

Unified Diff: content/browser/renderer_host/input/synthetic_gesture_target_aura.cc

Issue 126513004: Rename RootWindowHost to WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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: content/browser/renderer_host/input/synthetic_gesture_target_aura.cc
diff --git a/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc b/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc
index d03610ab725a2a4121d8a5d0d75d3c8f9ca144bb..b234666d1d2388ed3ada56339504ca4f36db7e1e 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc
+++ b/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc
@@ -48,8 +48,8 @@ void SyntheticGestureTargetAura::DispatchWebTouchEventToPlatform(
touch_with_latency, &events, SCREEN_COORDINATES);
DCHECK(conversion_success);
- aura::RootWindowHostDelegate* root_window_host_delegate =
- GetRootWindowHostDelegate();
+ aura::WindowTreeHostDelegate* root_window_host_delegate =
+ GetWindowTreeHostDelegate();
for (ScopedVector<ui::TouchEvent>::iterator iter = events.begin(),
end = events.end(); iter != end; ++iter) {
root_window_host_delegate->OnHostTouchEvent(*iter);
@@ -70,7 +70,7 @@ void SyntheticGestureTargetAura::DispatchWebMouseWheelEventToPlatform(
ui::MouseWheelEvent wheel_event(
mouse_event, web_wheel.deltaX, web_wheel.deltaY);
- GetRootWindowHostDelegate()->OnHostMouseEvent(&wheel_event);
+ GetWindowTreeHostDelegate()->OnHostMouseEvent(&wheel_event);
}
namespace {
@@ -137,7 +137,7 @@ void SyntheticGestureTargetAura::DispatchWebMouseEventToPlatform(
int flags = WebMouseEventButtonToFlags(web_mouse.button);
ui::MouseEvent mouse_event(event_type, location, location, flags, flags);
- GetRootWindowHostDelegate()->OnHostMouseEvent(&mouse_event);
+ GetWindowTreeHostDelegate()->OnHostMouseEvent(&mouse_event);
}
SyntheticGestureParams::GestureSourceType
@@ -163,11 +163,11 @@ aura::Window* SyntheticGestureTargetAura::GetWindow() const {
return window;
}
-aura::RootWindowHostDelegate*
-SyntheticGestureTargetAura::GetRootWindowHostDelegate() const {
+aura::WindowTreeHostDelegate*
+SyntheticGestureTargetAura::GetWindowTreeHostDelegate() const {
aura::Window* root_window = GetWindow()->GetRootWindow();
- aura::RootWindowHostDelegate* root_window_host_delegate =
- root_window->GetDispatcher()->AsRootWindowHostDelegate();
+ aura::WindowTreeHostDelegate* root_window_host_delegate =
+ root_window->GetDispatcher()->AsWindowTreeHostDelegate();
DCHECK(root_window_host_delegate);
return root_window_host_delegate;
}

Powered by Google App Engine
This is Rietveld 408576698