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

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

Issue 2429953002: Implement compositor thread VSync aligned event queue (Closed)
Patch Set: dtapuska's review: Use TickClock; Remove compositor_event_queue_enabled_; Nits Created 4 years, 1 month 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
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/WebInputEvent.h" 10 #include "third_party/WebKit/public/platform/WebInputEvent.h"
(...skipping 13 matching lines...) Expand all
24 class PointF; 24 class PointF;
25 class Vector2d; 25 class Vector2d;
26 } 26 }
27 27
28 namespace ui { 28 namespace ui {
29 enum class DomCode; 29 enum class DomCode;
30 struct GestureEventData; 30 struct GestureEventData;
31 struct GestureEventDetails; 31 struct GestureEventDetails;
32 class MotionEvent; 32 class MotionEvent;
33 33
34 bool CanCoalesce(const blink::WebInputEvent& event_to_coalesce,
35 const blink::WebInputEvent& event);
36
37 void Coalesce(const blink::WebInputEvent& event_to_coalesce,
38 blink::WebInputEvent* event);
39
34 blink::WebTouchEvent CreateWebTouchEventFromMotionEvent( 40 blink::WebTouchEvent CreateWebTouchEventFromMotionEvent(
35 const MotionEvent& event, 41 const MotionEvent& event,
36 bool may_cause_scrolling); 42 bool may_cause_scrolling);
37 43
38 blink::WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details, 44 blink::WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details,
39 base::TimeTicks timestamp, 45 base::TimeTicks timestamp,
40 const gfx::PointF& location, 46 const gfx::PointF& location,
41 const gfx::PointF& raw_location, 47 const gfx::PointF& raw_location,
42 int flags, 48 int flags,
43 uint32_t unique_touch_event_id); 49 uint32_t unique_touch_event_id);
(...skipping 27 matching lines...) Expand all
71 float orientation_rad, 77 float orientation_rad,
72 float tilt_rad, 78 float tilt_rad,
73 int android_buttons_changed, 79 int android_buttons_changed,
74 int tool_type); 80 int tool_type);
75 81
76 int WebEventModifiersToEventFlags(int modifiers); 82 int WebEventModifiersToEventFlags(int modifiers);
77 83
78 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers( 84 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers(
79 ui::DomCode code); 85 ui::DomCode code);
80 86
87 bool IsGestureScollOrPinch(blink::WebInputEvent::Type);
88
89 bool IsContinuousGestureEvent(blink::WebInputEvent::Type);
90
81 } // namespace ui 91 } // namespace ui
82 92
83 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ 93 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698