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

Side by Side Diff: content/common/input/synthetic_web_input_event_builders.h

Issue 2726623002: Fixed two-finger pan filtering with 'touch-action: pan-x pan-y'. (Closed)
Patch Set: Dave's comments. Created 3 years, 9 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 #ifndef CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ 5 #ifndef CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_
6 #define CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ 6 #define CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "third_party/WebKit/public/platform/WebGestureEvent.h" 10 #include "third_party/WebKit/public/platform/WebGestureEvent.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 }; 55 };
56 56
57 class CONTENT_EXPORT SyntheticWebGestureEventBuilder { 57 class CONTENT_EXPORT SyntheticWebGestureEventBuilder {
58 public: 58 public:
59 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, 59 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type,
60 blink::WebGestureDevice source_device, 60 blink::WebGestureDevice source_device,
61 int modifiers = 0); 61 int modifiers = 0);
62 static blink::WebGestureEvent BuildScrollBegin( 62 static blink::WebGestureEvent BuildScrollBegin(
63 float dx_hint, 63 float dx_hint,
64 float dy_hint, 64 float dy_hint,
65 blink::WebGestureDevice source_device); 65 blink::WebGestureDevice source_device,
66 int pointer_count = 1);
66 static blink::WebGestureEvent BuildScrollUpdate( 67 static blink::WebGestureEvent BuildScrollUpdate(
67 float dx, 68 float dx,
68 float dy, 69 float dy,
69 int modifiers, 70 int modifiers,
70 blink::WebGestureDevice source_device); 71 blink::WebGestureDevice source_device);
71 static blink::WebGestureEvent BuildPinchUpdate( 72 static blink::WebGestureEvent BuildPinchUpdate(
72 float scale, 73 float scale,
73 float anchor_x, 74 float anchor_x,
74 float anchor_y, 75 float anchor_y,
75 int modifiers, 76 int modifiers,
(...skipping 19 matching lines...) Expand all
95 void CancelPoint(int index); 96 void CancelPoint(int index);
96 97
97 void SetTimestamp(base::TimeTicks timestamp); 98 void SetTimestamp(base::TimeTicks timestamp);
98 99
99 int FirstFreeIndex(); 100 int FirstFreeIndex();
100 }; 101 };
101 102
102 } // namespace content 103 } // namespace content
103 104
104 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ 105 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698