Chromium Code Reviews| Index: content/browser/renderer_host/input/touch_emulator_client.h |
| diff --git a/content/browser/renderer_host/input/touch_emulator_client.h b/content/browser/renderer_host/input/touch_emulator_client.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1638e2f000ad8ae2d4e80050bbbdea2cf60af6b4 |
| --- /dev/null |
| +++ b/content/browser/renderer_host/input/touch_emulator_client.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_CLIENT_H_ |
| +#define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_CLIENT_H_ |
| + |
| +#include "content/common/content_export.h" |
| +#include "content/common/cursors/webcursor.h" |
| +#include "third_party/WebKit/public/web/WebInputEvent.h" |
| +#include "ui/events/latency_info.h" |
| + |
| +namespace content { |
| + |
| +// Emulates touch input with mouse and keyboard. |
| +class CONTENT_EXPORT TouchEmulatorClient { |
| + public: |
| + virtual ~TouchEmulatorClient() {} |
| + |
| + virtual void ForwardGestureEvent(const blink::WebGestureEvent& event) = 0; |
| + virtual void ForwardTouchEventWithLatencyInfo( |
|
jdduke (slow)
2014/04/07 18:12:37
Let's call this |ForwardTouchEvent()|, and add a n
dgozman
2014/04/08 16:56:49
Done.
|
| + const blink::WebTouchEvent& event, |
| + const ui::LatencyInfo& latency_info) = 0; |
| + virtual void SetCursor(const WebCursor& cursor) = 0; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_CLIENT_H_ |