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

Side by Side Diff: content/browser/renderer_host/web_input_event_aura.h

Issue 2234023002: Refactor WebInputEventAura to ui/events/blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 months 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_
7
8 #include "content/common/content_export.h"
9 #include "third_party/WebKit/public/web/WebInputEvent.h"
10
11 namespace ui {
12 class GestureEvent;
13 class KeyEvent;
14 class MouseEvent;
15 class MouseWheelEvent;
16 class ScrollEvent;
17 class TouchEvent;
18 }
19
20 namespace content {
21
22 // Used for scrolling. This matches Firefox behavior.
23 const int kPixelsPerTick = 53;
24
25 CONTENT_EXPORT blink::WebMouseEvent MakeWebMouseEvent(
26 const ui::MouseEvent& event);
27 CONTENT_EXPORT blink::WebMouseWheelEvent MakeWebMouseWheelEvent(
28 const ui::MouseWheelEvent& event);
29 CONTENT_EXPORT blink::WebMouseWheelEvent MakeWebMouseWheelEvent(
30 const ui::ScrollEvent& event);
31 CONTENT_EXPORT blink::WebKeyboardEvent MakeWebKeyboardEvent(
32 const ui::KeyEvent& event);
33 CONTENT_EXPORT blink::WebGestureEvent MakeWebGestureEvent(
34 const ui::GestureEvent& event);
35 CONTENT_EXPORT blink::WebGestureEvent MakeWebGestureEvent(
36 const ui::ScrollEvent& event);
37 CONTENT_EXPORT blink::WebGestureEvent MakeWebGestureEventFlingCancel();
38
39 } // namespace content
40
41 #endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/ui_events_helper.cc ('k') | content/browser/renderer_host/web_input_event_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698