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

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

Issue 2713093005: Teach MainThreadEventQueue about touchmove throttling. (Closed)
Patch Set: Roll if/else condition together 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 78 blink::WebInputEventResult,
79 InputEventAckState); 79 InputEventAckState);
80 void ProcessRafAlignedInputOnMainThread(int routing_id); 80 void ProcessRafAlignedInputOnMainThread(int routing_id,
81 base::TimeTicks frame_time);
81 82
82 // Callback only from the compositor's thread. 83 // Callback only from the compositor's thread.
83 void RemoveInputHandler(int routing_id); 84 void RemoveInputHandler(int routing_id);
84 85
85 using InputEventAckStateCallback = 86 using InputEventAckStateCallback =
86 base::Callback<void(InputEventAckState, 87 base::Callback<void(InputEventAckState,
87 ui::WebScopedInputEvent, 88 ui::WebScopedInputEvent,
88 const ui::LatencyInfo&, 89 const ui::LatencyInfo&,
89 std::unique_ptr<ui::DidOverscrollParams>)>; 90 std::unique_ptr<ui::DidOverscrollParams>)>;
90 // Called from the compositor's thread. 91 // Called from the compositor's thread.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // May be null. 151 // May be null.
151 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; 152 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_;
152 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. 153 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned.
153 154
154 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; 155 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_;
155 }; 156 };
156 157
157 } // namespace content 158 } // namespace content
158 159
159 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ 160 #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