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

Side by Side Diff: ui/events/blink/web_input_event.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
« no previous file with comments | « ui/events/blink/scoped_web_input_event.cc ('k') | ui/events/blink/web_input_event.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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 UI_EVENTS_BLINK_WEB_INPUT_EVENT_H_
6 #define UI_EVENTS_BLINK_WEB_INPUT_EVENT_H_
7
8 #include "base/callback.h"
9 #include "third_party/WebKit/public/platform/WebInputEvent.h"
10
11 namespace gfx {
12 class Point;
13 }
14
15 namespace ui {
16 class GestureEvent;
17 class KeyEvent;
18 class LocatedEvent;
19 class MouseEvent;
20 class MouseWheelEvent;
21 class ScrollEvent;
22 class TouchEvent;
23
24 // Several methods take a |screen_location_callback| which should translate the
25 // provided coordinates relative to the hosting window, rather than the top
26 // level platform window.
27 //
28 // If a valid event cannot be created, then the returned events will have the
29 // type UNKNOWN.
30 //
31 // TODO(jonross): Ideally this callback would not be needed. The callback should
32 // be removed once ui::Event::root_location has been deprecated and replaced
33 // with ui::Event::screen_location (crbug.com/608547)
34 blink::WebMouseEvent MakeWebMouseEvent(
35 const MouseEvent& event,
36 const base::Callback<gfx::Point(const ui::LocatedEvent& event)>&
37 screen_location_callback);
38 blink::WebMouseWheelEvent MakeWebMouseWheelEvent(
39 const MouseWheelEvent& event,
40 const base::Callback<gfx::Point(const ui::LocatedEvent& event)>&
41 screen_location_callback);
42 blink::WebMouseWheelEvent MakeWebMouseWheelEvent(
43 const ScrollEvent& event,
44 const base::Callback<gfx::Point(const ui::LocatedEvent& event)>&
45 screen_location_callback);
46 blink::WebKeyboardEvent MakeWebKeyboardEvent(const KeyEvent& event);
47 blink::WebGestureEvent MakeWebGestureEvent(
48 const GestureEvent& event,
49 const base::Callback<gfx::Point(const ui::LocatedEvent& event)>&
50 screen_location_callback);
51 blink::WebGestureEvent MakeWebGestureEvent(
52 const ScrollEvent& event,
53 const base::Callback<gfx::Point(const ui::LocatedEvent& event)>&
54 screen_location_callback);
55 blink::WebGestureEvent MakeWebGestureEventFlingCancel();
56
57 } // namespace ui
58
59 #endif // UI_EVENTS_BLINK_WEB_INPUT_EVENT_H_
OLDNEW
« no previous file with comments | « ui/events/blink/scoped_web_input_event.cc ('k') | ui/events/blink/web_input_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698