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

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

Issue 93733005: Implement support for touch-action: pan-x/pan-y in chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply jdduke CR feedback Created 7 years 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 #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 24 matching lines...) Expand all
35 class CONTENT_EXPORT SyntheticWebKeyboardEventBuilder { 35 class CONTENT_EXPORT SyntheticWebKeyboardEventBuilder {
36 public: 36 public:
37 static blink::WebKeyboardEvent Build(blink::WebInputEvent::Type type); 37 static blink::WebKeyboardEvent Build(blink::WebInputEvent::Type type);
38 }; 38 };
39 39
40 class CONTENT_EXPORT SyntheticWebGestureEventBuilder { 40 class CONTENT_EXPORT SyntheticWebGestureEventBuilder {
41 public: 41 public:
42 static blink::WebGestureEvent Build( 42 static blink::WebGestureEvent Build(
43 blink::WebInputEvent::Type type, 43 blink::WebInputEvent::Type type,
44 blink::WebGestureEvent::SourceDevice sourceDevice); 44 blink::WebGestureEvent::SourceDevice sourceDevice);
45 static blink::WebGestureEvent BuildScrollBegin(float dx_hint,
46 float dy_hint);
45 static blink::WebGestureEvent BuildScrollUpdate(float dx, 47 static blink::WebGestureEvent BuildScrollUpdate(float dx,
46 float dY, 48 float dy,
47 int modifiers); 49 int modifiers);
48 static blink::WebGestureEvent BuildPinchUpdate(float scale, 50 static blink::WebGestureEvent BuildPinchUpdate(float scale,
49 float anchor_x, 51 float anchor_x,
50 float anchor_y, 52 float anchor_y,
51 int modifiers); 53 int modifiers);
52 static blink::WebGestureEvent BuildFling( 54 static blink::WebGestureEvent BuildFling(
53 float velocity_x, 55 float velocity_x,
54 float velocity_y, 56 float velocity_y,
55 blink::WebGestureEvent::SourceDevice source_device); 57 blink::WebGestureEvent::SourceDevice source_device);
56 }; 58 };
(...skipping 16 matching lines...) Expand all
73 }; 75 };
74 76
75 class CONTENT_EXPORT SyntheticWebTouchEventBuilder { 77 class CONTENT_EXPORT SyntheticWebTouchEventBuilder {
76 public: 78 public:
77 static SyntheticWebTouchEvent Build(blink::WebInputEvent::Type type); 79 static SyntheticWebTouchEvent Build(blink::WebInputEvent::Type type);
78 }; 80 };
79 81
80 } // namespace content 82 } // namespace content
81 83
82 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ 84 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698