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

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

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Fix nits 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/content_accelerators/accelerator_util.cc ('k') | ui/events/blink/blink_event_util.cc » ('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"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers( 89 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers(
90 ui::DomCode code); 90 ui::DomCode code);
91 91
92 bool IsGestureScollOrPinch(blink::WebInputEvent::Type); 92 bool IsGestureScollOrPinch(blink::WebInputEvent::Type);
93 93
94 bool IsContinuousGestureEvent(blink::WebInputEvent::Type); 94 bool IsContinuousGestureEvent(blink::WebInputEvent::Type);
95 95
96 inline const blink::WebGestureEvent& ToWebGestureEvent( 96 inline const blink::WebGestureEvent& ToWebGestureEvent(
97 const blink::WebInputEvent& event) { 97 const blink::WebInputEvent& event) {
98 DCHECK(IsGestureScollOrPinch(event.type)); 98 DCHECK(IsGestureScollOrPinch(event.type()));
99 return static_cast<const blink::WebGestureEvent&>(event); 99 return static_cast<const blink::WebGestureEvent&>(event);
100 } 100 }
101 101
102 } // namespace ui 102 } // namespace ui
103 103
104 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ 104 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_
OLDNEW
« no previous file with comments | « ui/content_accelerators/accelerator_util.cc ('k') | ui/events/blink/blink_event_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698