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

Side by Side Diff: content/browser/renderer_host/input/touch_emulator_client.h

Issue 2497033002: Break apart WebGestureEvent from WebInputEvent. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 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/platform/WebGestureEvent.h"
11 #include "third_party/WebKit/public/platform/WebInputEvent.h"
11 12
12 namespace content { 13 namespace content {
13 14
14 // Emulates touch input with mouse and keyboard. 15 // Emulates touch input with mouse and keyboard.
15 class CONTENT_EXPORT TouchEmulatorClient { 16 class CONTENT_EXPORT TouchEmulatorClient {
16 public: 17 public:
17 virtual ~TouchEmulatorClient() {} 18 virtual ~TouchEmulatorClient() {}
18 19
19 virtual void ForwardEmulatedGestureEvent( 20 virtual void ForwardEmulatedGestureEvent(
20 const blink::WebGestureEvent& event) = 0; 21 const blink::WebGestureEvent& event) = 0;
21 virtual void ForwardEmulatedTouchEvent(const blink::WebTouchEvent& event) = 0; 22 virtual void ForwardEmulatedTouchEvent(const blink::WebTouchEvent& event) = 0;
22 virtual void SetCursor(const WebCursor& cursor) = 0; 23 virtual void SetCursor(const WebCursor& cursor) = 0;
23 virtual void ShowContextMenuAtPoint(const gfx::Point& point) = 0; 24 virtual void ShowContextMenuAtPoint(const gfx::Point& point) = 0;
24 }; 25 };
25 26
26 } // namespace content 27 } // namespace content
27 28
28 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_CLIENT_H_ 29 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/touch_emulator.h ('k') | content/browser/renderer_host/input/touch_event_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698