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

Side by Side Diff: content/browser/renderer_host/input/synthetic_gesture_target_aura.cc

Issue 174803002: Move root_window.* to window_event_dispatcher.* (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/input/synthetic_gesture_target_aura.h" 5 #include "content/browser/renderer_host/input/synthetic_gesture_target_aura.h"
6 6
7 #include "content/browser/renderer_host/render_widget_host_impl.h" 7 #include "content/browser/renderer_host/render_widget_host_impl.h"
8 #include "content/browser/renderer_host/render_widget_host_view_aura.h" 8 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
9 #include "content/browser/renderer_host/ui_events_helper.h" 9 #include "content/browser/renderer_host/ui_events_helper.h"
10 #include "ui/aura/client/screen_position_client.h" 10 #include "ui/aura/client/screen_position_client.h"
11 #include "ui/aura/root_window.h"
12 #include "ui/aura/window.h" 11 #include "ui/aura/window.h"
12 #include "ui/aura/window_event_dispatcher.h"
13 #include "ui/events/gestures/gesture_configuration.h" 13 #include "ui/events/gestures/gesture_configuration.h"
14 14
15 using blink::WebTouchEvent; 15 using blink::WebTouchEvent;
16 using blink::WebMouseWheelEvent; 16 using blink::WebMouseWheelEvent;
17 17
18 namespace content { 18 namespace content {
19 19
20 SyntheticGestureTargetAura::SyntheticGestureTargetAura( 20 SyntheticGestureTargetAura::SyntheticGestureTargetAura(
21 RenderWidgetHostImpl* host) 21 RenderWidgetHostImpl* host)
22 : SyntheticGestureTargetBase(host) { 22 : SyntheticGestureTargetBase(host) {
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 aura::client::ScreenPositionClient* 179 aura::client::ScreenPositionClient*
180 SyntheticGestureTargetAura::GetScreenPositionClient() const { 180 SyntheticGestureTargetAura::GetScreenPositionClient() const {
181 aura::Window* root_window = GetWindow()->GetRootWindow(); 181 aura::Window* root_window = GetWindow()->GetRootWindow();
182 aura::client::ScreenPositionClient* position_client = 182 aura::client::ScreenPositionClient* position_client =
183 aura::client::GetScreenPositionClient(root_window); 183 aura::client::GetScreenPositionClient(root_window);
184 DCHECK(position_client); 184 DCHECK(position_client);
185 return position_client; 185 return position_client;
186 } 186 }
187 187
188 } // namespace content 188 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698