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/platform/WebGestureEvent.h" | 10 #include "third_party/WebKit/public/platform/WebGestureEvent.h" |
11 #include "third_party/WebKit/public/platform/WebTouchEvent.h" | 11 #include "third_party/WebKit/public/platform/WebTouchEvent.h" |
| 12 #include "ui/base/ui_base_types.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 | 15 |
15 // Emulates touch input with mouse and keyboard. | 16 // Emulates touch input with mouse and keyboard. |
16 class CONTENT_EXPORT TouchEmulatorClient { | 17 class CONTENT_EXPORT TouchEmulatorClient { |
17 public: | 18 public: |
18 virtual ~TouchEmulatorClient() {} | 19 virtual ~TouchEmulatorClient() {} |
19 | 20 |
20 virtual void ForwardEmulatedGestureEvent( | 21 virtual void ForwardEmulatedGestureEvent( |
21 const blink::WebGestureEvent& event) = 0; | 22 const blink::WebGestureEvent& event) = 0; |
22 virtual void ForwardEmulatedTouchEvent(const blink::WebTouchEvent& event) = 0; | 23 virtual void ForwardEmulatedTouchEvent(const blink::WebTouchEvent& event) = 0; |
23 virtual void SetCursor(const WebCursor& cursor) = 0; | 24 virtual void SetCursor(const WebCursor& cursor) = 0; |
24 virtual void ShowContextMenuAtPoint(const gfx::Point& point) = 0; | 25 virtual void ShowContextMenuAtPoint(const gfx::Point& point, |
| 26 const ui::MenuSourceType source_type) = 0; |
25 }; | 27 }; |
26 | 28 |
27 } // namespace content | 29 } // namespace content |
28 | 30 |
29 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_CLIENT_H_ | 31 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_CLIENT_H_ |
OLD | NEW |