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

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

Issue 2742473002: gpu benchmarking swipe for touchpad
Patch Set: Update direction in tests that use swipeElement/Page to maintain the same behavior. Created 3 years, 7 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/synthetic_gesture_target_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" 10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h"
(...skipping 13 matching lines...) Expand all
24 // SyntheticGestureTargetBase: 24 // SyntheticGestureTargetBase:
25 void DispatchWebTouchEventToPlatform( 25 void DispatchWebTouchEventToPlatform(
26 const blink::WebTouchEvent& web_touch, 26 const blink::WebTouchEvent& web_touch,
27 const ui::LatencyInfo& latency_info) override; 27 const ui::LatencyInfo& latency_info) override;
28 void DispatchWebMouseWheelEventToPlatform( 28 void DispatchWebMouseWheelEventToPlatform(
29 const blink::WebMouseWheelEvent& web_wheel, 29 const blink::WebMouseWheelEvent& web_wheel,
30 const ui::LatencyInfo& latency_info) override; 30 const ui::LatencyInfo& latency_info) override;
31 void DispatchWebMouseEventToPlatform( 31 void DispatchWebMouseEventToPlatform(
32 const blink::WebMouseEvent& web_mouse, 32 const blink::WebMouseEvent& web_mouse,
33 const ui::LatencyInfo& latency_info) override; 33 const ui::LatencyInfo& latency_info) override;
34 void DispatchTouchpadGestureFlingStartToPlatform(
35 const blink::WebGestureEvent& web_gesture,
36 const ui::LatencyInfo& latency_info) override;
34 37
35 // SyntheticGestureTarget: 38 // SyntheticGestureTarget:
36 SyntheticGestureParams::GestureSourceType 39 SyntheticGestureParams::GestureSourceType
37 GetDefaultSyntheticGestureSourceType() const override; 40 GetDefaultSyntheticGestureSourceType() const override;
38 41
39 float GetTouchSlopInDips() const override; 42 float GetTouchSlopInDips() const override;
40 43
41 float GetMinScalingSpanInDips() const override; 44 float GetMinScalingSpanInDips() const override;
42 45
43 private: 46 private:
44 aura::Window* GetWindow() const; 47 aura::Window* GetWindow() const;
45 48
46 // Synthetic located event's location and touch event's radius are in DIP and 49 // Synthetic located event's location and touch event's radius are in DIP and
47 // aura event dispatcher assumes input event is in device pixel and will apply 50 // aura event dispatcher assumes input event is in device pixel and will apply
48 // device scale factor to convert the input to DIP. So we need to use 51 // device scale factor to convert the input to DIP. So we need to use
49 // device_scale_factor to convert the input event from DIP to device pixel 52 // device_scale_factor to convert the input event from DIP to device pixel
50 // before dispatching it into platform. 53 // before dispatching it into platform.
51 float device_scale_factor_; 54 float device_scale_factor_;
52 55
53 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAura); 56 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAura);
54 }; 57 };
55 58
56 } // namespace content 59 } // namespace content
57 60
58 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ 61 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/synthetic_gesture_target_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698