blob: 5214406b2266b0f6e11e51018a030ee507fe8bae [file] [log] [blame]
// 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/platform/WebGestureEvent.h"
#include "third_party/WebKit/public/platform/WebTouchEvent.h"
#include "ui/base/ui_base_types.h"
namespace content {
// Emulates touch input with mouse and keyboard.
class CONTENT_EXPORT TouchEmulatorClient {
public:
virtual ~TouchEmulatorClient() {}
virtual void ForwardEmulatedGestureEvent(
const blink::WebGestureEvent& event) = 0;
virtual void ForwardEmulatedTouchEvent(const blink::WebTouchEvent& event) = 0;
virtual void SetCursor(const WebCursor& cursor) = 0;
virtual void ShowContextMenuAtPoint(const gfx::Point& point,
const ui::MenuSourceType source_type) = 0;
};
} // namespace content
#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_CLIENT_H_