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

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

Issue 2429953002: Implement compositor thread VSync aligned event queue (Closed)
Patch Set: tdresser's review: Move CanCoalesce/Coalesce; Test queueing time 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 19 matching lines...) Expand all
63 float scale); 69 float scale);
64 70
65 blink::WebPointerProperties::PointerType ToWebPointerType( 71 blink::WebPointerProperties::PointerType ToWebPointerType(
66 MotionEvent::ToolType tool_type); 72 MotionEvent::ToolType tool_type);
67 73
68 int WebEventModifiersToEventFlags(int modifiers); 74 int WebEventModifiersToEventFlags(int modifiers);
69 75
70 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers( 76 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers(
71 ui::DomCode code); 77 ui::DomCode code);
72 78
79 bool IsGestureScollOrPinch(blink::WebInputEvent::Type);
80
81 bool IsContinuousGestureEvent(blink::WebInputEvent::Type);
82
73 } // namespace ui 83 } // namespace ui
74 84
75 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ 85 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698