blob: 6ce8ed20e3817c42d0d9c3ddd13554944a2c330f [file] [log] [blame]
// Copyright (c) 2012 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_WEB_INPUT_EVENT_AURA_H_
#define CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_
#include "content/common/content_export.h"
#include "third_party/WebKit/public/web/WebInputEvent.h"
namespace ui {
class GestureEvent;
class KeyEvent;
class MouseEvent;
class MouseWheelEvent;
class ScrollEvent;
class TouchEvent;
}
namespace content {
// Used for scrolling. This matches Firefox behavior.
const int kPixelsPerTick = 53;
CONTENT_EXPORT blink::WebMouseEvent MakeWebMouseEvent(
const ui::MouseEvent& event);
CONTENT_EXPORT blink::WebMouseWheelEvent MakeWebMouseWheelEvent(
const ui::MouseWheelEvent& event);
CONTENT_EXPORT blink::WebMouseWheelEvent MakeWebMouseWheelEvent(
const ui::ScrollEvent& event);
CONTENT_EXPORT blink::WebKeyboardEvent MakeWebKeyboardEvent(
const ui::KeyEvent& event);
CONTENT_EXPORT blink::WebGestureEvent MakeWebGestureEvent(
const ui::GestureEvent& event);
CONTENT_EXPORT blink::WebGestureEvent MakeWebGestureEvent(
const ui::ScrollEvent& event);
CONTENT_EXPORT blink::WebGestureEvent MakeWebGestureEventFlingCancel();
} // namespace content
#endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_