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

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

Issue 1716283002: Fix x/y position of gesture scroll events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_regression
Patch Set: Add globalX/globalY tests Created 4 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
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/web/WebInputEvent.h" 10 #include "third_party/WebKit/public/web/WebInputEvent.h"
(...skipping 14 matching lines...) Expand all
25 class CONTENT_EXPORT SyntheticWebMouseWheelEventBuilder { 25 class CONTENT_EXPORT SyntheticWebMouseWheelEventBuilder {
26 public: 26 public:
27 static blink::WebMouseWheelEvent Build( 27 static blink::WebMouseWheelEvent Build(
28 blink::WebMouseWheelEvent::Phase phase); 28 blink::WebMouseWheelEvent::Phase phase);
29 static blink::WebMouseWheelEvent Build(float x, 29 static blink::WebMouseWheelEvent Build(float x,
30 float y, 30 float y,
31 float dx, 31 float dx,
32 float dy, 32 float dy,
33 int modifiers, 33 int modifiers,
34 bool precise); 34 bool precise);
35 static blink::WebMouseWheelEvent Build(float x,
36 float y,
37 float global_x,
38 float global_y,
39 float dx,
40 float dy,
41 int modifiers,
42 bool precise);
35 }; 43 };
36 44
37 class CONTENT_EXPORT SyntheticWebKeyboardEventBuilder { 45 class CONTENT_EXPORT SyntheticWebKeyboardEventBuilder {
38 public: 46 public:
39 static blink::WebKeyboardEvent Build(blink::WebInputEvent::Type type); 47 static blink::WebKeyboardEvent Build(blink::WebInputEvent::Type type);
40 }; 48 };
41 49
42 class CONTENT_EXPORT SyntheticWebGestureEventBuilder { 50 class CONTENT_EXPORT SyntheticWebGestureEventBuilder {
43 public: 51 public:
44 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, 52 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type,
(...skipping 30 matching lines...) Expand all
75 void MovePoint(int index, float x, float y); 83 void MovePoint(int index, float x, float y);
76 void ReleasePoint(int index); 84 void ReleasePoint(int index);
77 void CancelPoint(int index); 85 void CancelPoint(int index);
78 86
79 void SetTimestamp(base::TimeDelta timestamp); 87 void SetTimestamp(base::TimeDelta timestamp);
80 }; 88 };
81 89
82 } // namespace content 90 } // namespace content
83 91
84 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ 92 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698