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

Side by Side Diff: content/renderer/input/input_handler_manager.h

Issue 2662173005: Revert of scheduler: Detect single event gestures correctly (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ 5 #ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_
6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ 6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_
7 7
8 #include <unordered_map> 8 #include <unordered_map>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void RegisterRoutingID(int routing_id); 68 void RegisterRoutingID(int routing_id);
69 void UnregisterRoutingID(int routing_id); 69 void UnregisterRoutingID(int routing_id);
70 70
71 void ObserveGestureEventAndResultOnMainThread( 71 void ObserveGestureEventAndResultOnMainThread(
72 int routing_id, 72 int routing_id,
73 const blink::WebGestureEvent& gesture_event, 73 const blink::WebGestureEvent& gesture_event,
74 const cc::InputHandlerScrollResult& scroll_result); 74 const cc::InputHandlerScrollResult& scroll_result);
75 75
76 void NotifyInputEventHandledOnMainThread(int routing_id, 76 void NotifyInputEventHandledOnMainThread(int routing_id,
77 blink::WebInputEvent::Type, 77 blink::WebInputEvent::Type,
78 blink::WebInputEventResult,
79 InputEventAckState); 78 InputEventAckState);
80 void ProcessRafAlignedInputOnMainThread(int routing_id); 79 void ProcessRafAlignedInputOnMainThread(int routing_id);
81 80
82 // Callback only from the compositor's thread. 81 // Callback only from the compositor's thread.
83 void RemoveInputHandler(int routing_id); 82 void RemoveInputHandler(int routing_id);
84 83
85 using InputEventAckStateCallback = 84 using InputEventAckStateCallback =
86 base::Callback<void(InputEventAckState, 85 base::Callback<void(InputEventAckState,
87 blink::WebScopedInputEvent, 86 blink::WebScopedInputEvent,
88 const ui::LatencyInfo&, 87 const ui::LatencyInfo&,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // May be null. 149 // May be null.
151 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; 150 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_;
152 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. 151 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned.
153 152
154 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; 153 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_;
155 }; 154 };
156 155
157 } // namespace content 156 } // namespace content
158 157
159 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ 158 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/renderer/input/input_event_filter.cc ('k') | content/renderer/input/input_handler_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698