OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TOUCH_EMULATOR_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_CLIENT_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_CLIENT_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_CLIENT_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "content/common/cursors/webcursor.h" | 9 #include "content/common/cursors/webcursor.h" |
10 #include "third_party/WebKit/public/web/WebInputEvent.h" | 10 #include "third_party/WebKit/public/web/WebInputEvent.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 // Emulates touch input with mouse and keyboard. | 14 // Emulates touch input with mouse and keyboard. |
15 class CONTENT_EXPORT TouchEmulatorClient { | 15 class CONTENT_EXPORT TouchEmulatorClient { |
16 public: | 16 public: |
17 virtual ~TouchEmulatorClient() {} | 17 virtual ~TouchEmulatorClient() {} |
18 | 18 |
19 virtual void ForwardGestureEvent(const blink::WebGestureEvent& event) = 0; | 19 virtual void ForwardGestureEvent(const blink::WebGestureEvent& event) = 0; |
20 virtual void ForwardTouchEvent(const blink::WebTouchEvent& event) = 0; | 20 virtual void ForwardTouchEvent(const blink::WebTouchEvent& event) = 0; |
21 virtual void SetCursor(const WebCursor& cursor) = 0; | 21 virtual void SetCursor(const WebCursor& cursor) = 0; |
22 }; | 22 }; |
23 | 23 |
24 } // namespace content | 24 } // namespace content |
25 | 25 |
26 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_CLIENT_H_ | 26 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_CLIENT_H_ |
OLD | NEW |