| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |