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

Side by Side Diff: ui/events/blink/blink_event_util.h

Issue 2639273002: Give WebTouchEvent and WebKeyboardEvent their own headers (Closed)
Patch Set: Rebase Created 3 years, 11 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/DEPS ('k') | ui/events/blink/input_handler_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ 5 #ifndef UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_
6 #define UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ 6 #define UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "third_party/WebKit/public/platform/WebGestureEvent.h" 10 #include "third_party/WebKit/public/platform/WebGestureEvent.h"
11 #include "third_party/WebKit/public/platform/WebInputEvent.h" 11 #include "third_party/WebKit/public/platform/WebInputEvent.h"
12 #include "third_party/WebKit/public/platform/WebTouchEvent.h"
12 #include "ui/events/gesture_detection/motion_event.h" 13 #include "ui/events/gesture_detection/motion_event.h"
13 14
14 namespace blink {
15 class WebTouchEvent;
16 }
17
18 namespace gfx { 15 namespace gfx {
19 class PointF; 16 class PointF;
20 class Vector2d; 17 class Vector2d;
21 } 18 }
22 19
23 namespace ui { 20 namespace ui {
24 enum class DomCode; 21 enum class DomCode;
25 struct GestureEventData; 22 struct GestureEventData;
26 struct GestureEventDetails; 23 struct GestureEventDetails;
27 class MotionEvent; 24 class MotionEvent;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 92
96 inline const blink::WebGestureEvent& ToWebGestureEvent( 93 inline const blink::WebGestureEvent& ToWebGestureEvent(
97 const blink::WebInputEvent& event) { 94 const blink::WebInputEvent& event) {
98 DCHECK(IsGestureScollOrPinch(event.type())); 95 DCHECK(IsGestureScollOrPinch(event.type()));
99 return static_cast<const blink::WebGestureEvent&>(event); 96 return static_cast<const blink::WebGestureEvent&>(event);
100 } 97 }
101 98
102 } // namespace ui 99 } // namespace ui
103 100
104 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ 101 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_
OLDNEW
« no previous file with comments | « ui/events/blink/DEPS ('k') | ui/events/blink/input_handler_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698