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

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

Issue 76583003: Rename RootWindowHost* to WindowTreeHost* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years 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..ec516ce724437a6fd90493e48584b8c0a75a46f0 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,13 +163,13 @@ aura::Window* SyntheticGestureTargetAura::GetWindow() const {
return window;
}
-aura::RootWindowHostDelegate*
+aura::WindowTreeHostDelegate*
SyntheticGestureTargetAura::GetRootWindowHostDelegate() const {
aura::Window* root_window = GetWindow()->GetRootWindow();
- aura::RootWindowHostDelegate* root_window_host_delegate =
- root_window->GetDispatcher()->AsRootWindowHostDelegate();
- DCHECK(root_window_host_delegate);
- return root_window_host_delegate;
+ aura::WindowTreeHostDelegate* window_tree_host_delegate =
+ root_window->GetDispatcher()->AsWindowTreeHostDelegate();
+ DCHECK(window_tree_host_delegate);
+ return window_tree_host_delegate;
}
aura::client::ScreenPositionClient*

Powered by Google App Engine
This is Rietveld 408576698