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

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

Issue 134123003: Generate proper LatencyInfo components for synthetic gestures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove InputEvent forward decl 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 unified diff | Download patch
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 "content/common/input/input_event.h"
11 #include "ui/aura/client/screen_position_client.h" 10 #include "ui/aura/client/screen_position_client.h"
12 #include "ui/aura/root_window.h" 11 #include "ui/aura/root_window.h"
13 #include "ui/aura/window.h" 12 #include "ui/aura/window.h"
14 #include "ui/events/gestures/gesture_configuration.h" 13 #include "ui/events/gestures/gesture_configuration.h"
15 14
16 using blink::WebTouchEvent; 15 using blink::WebTouchEvent;
17 using blink::WebMouseWheelEvent; 16 using blink::WebMouseWheelEvent;
18 17
19 namespace content { 18 namespace content {
20 19
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 aura::client::ScreenPositionClient* 174 aura::client::ScreenPositionClient*
176 SyntheticGestureTargetAura::GetScreenPositionClient() const { 175 SyntheticGestureTargetAura::GetScreenPositionClient() const {
177 aura::Window* root_window = GetWindow()->GetRootWindow(); 176 aura::Window* root_window = GetWindow()->GetRootWindow();
178 aura::client::ScreenPositionClient* position_client = 177 aura::client::ScreenPositionClient* position_client =
179 aura::client::GetScreenPositionClient(root_window); 178 aura::client::GetScreenPositionClient(root_window);
180 DCHECK(position_client); 179 DCHECK(position_client);
181 return position_client; 180 return position_client;
182 } 181 }
183 182
184 } // namespace content 183 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698