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

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

Issue 2341873002: Handle touchpad flings with passive event listeners on compositor thread. (Closed)
Patch Set: Add dcheck for blimp Created 4 years, 3 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 "base/containers/scoped_ptr_hash_map.h" 8 #include "base/containers/scoped_ptr_hash_map.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Called from the compositor's thread. 97 // Called from the compositor's thread.
98 void DidStartFlinging(int routing_id); 98 void DidStartFlinging(int routing_id);
99 void DidStopFlinging(int routing_id); 99 void DidStopFlinging(int routing_id);
100 100
101 // Called from the compositor's thread. 101 // Called from the compositor's thread.
102 void DidAnimateForInput(); 102 void DidAnimateForInput();
103 103
104 // Called from the compositor's thread. 104 // Called from the compositor's thread.
105 void NeedsMainFrame(int routing_id); 105 void NeedsMainFrame(int routing_id);
106 106
107 // Called from the compositor's thread.
108 void DispatchNonBlockingEventToMainThread(
109 int routing_id,
110 ui::ScopedWebInputEvent event,
111 const ui::LatencyInfo& latency_info);
112
107 private: 113 private:
108 // Called from the compositor's thread. 114 // Called from the compositor's thread.
109 void AddInputHandlerOnCompositorThread( 115 void AddInputHandlerOnCompositorThread(
110 int routing_id, 116 int routing_id,
111 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner, 117 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner,
112 const base::WeakPtr<cc::InputHandler>& input_handler, 118 const base::WeakPtr<cc::InputHandler>& input_handler,
113 const base::WeakPtr<RenderViewImpl>& render_view_impl, 119 const base::WeakPtr<RenderViewImpl>& render_view_impl,
114 bool enable_smooth_scrolling); 120 bool enable_smooth_scrolling);
115 121
116 void RegisterRoutingIDOnCompositorThread(int routing_id); 122 void RegisterRoutingIDOnCompositorThread(int routing_id);
(...skipping 26 matching lines...) Expand all
143 // May be null. 149 // May be null.
144 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; 150 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_;
145 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. 151 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned.
146 152
147 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; 153 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_;
148 }; 154 };
149 155
150 } // namespace content 156 } // namespace content
151 157
152 #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