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

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

Issue 2639273002: Give WebTouchEvent and WebKeyboardEvent their own headers (Closed)
Patch Set: Rebase Created 3 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 #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"
11 #include "third_party/WebKit/public/platform/WebInputEvent.h" 11 #include "third_party/WebKit/public/platform/WebInputEvent.h"
12 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h"
12 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" 13 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h"
14 #include "third_party/WebKit/public/platform/WebTouchEvent.h"
13 15
14 // Provides sensible creation of default WebInputEvents for testing purposes. 16 // Provides sensible creation of default WebInputEvents for testing purposes.
15 17
16 namespace content { 18 namespace content {
17 19
18 class CONTENT_EXPORT SyntheticWebMouseEventBuilder { 20 class CONTENT_EXPORT SyntheticWebMouseEventBuilder {
19 public: 21 public:
20 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type); 22 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type);
21 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type, 23 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type,
22 int window_x, 24 int window_x,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void CancelPoint(int index); 92 void CancelPoint(int index);
91 93
92 void SetTimestamp(base::TimeTicks timestamp); 94 void SetTimestamp(base::TimeTicks timestamp);
93 95
94 int FirstFreeIndex(); 96 int FirstFreeIndex();
95 }; 97 };
96 98
97 } // namespace content 99 } // namespace content
98 100
99 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_ 101 #endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_
OLDNEW
« no previous file with comments | « content/common/input/synthetic_pointer_action_params.h ('k') | content/common/input/touch_event_stream_validator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698