blob: 6ce8ed20e3817c42d0d9c3ddd13554944a2c330f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// 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_
|