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

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

Issue 1778293004: Export Content Mus for Unit Testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | content/renderer/mus/compositor_mus_connection.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "content/common/content_export.h"
11 #include "content/common/input/input_event_ack_state.h" 12 #include "content/common/input/input_event_ack_state.h"
12 #include "content/renderer/render_view_impl.h" 13 #include "content/renderer/render_view_impl.h"
13 14
14 namespace base { 15 namespace base {
15 class SingleThreadTaskRunner; 16 class SingleThreadTaskRunner;
16 } 17 }
17 18
18 namespace cc { 19 namespace cc {
19 class InputHandler; 20 class InputHandler;
20 struct InputHandlerScrollResult; 21 struct InputHandlerScrollResult;
21 } 22 }
22 23
23 namespace blink { 24 namespace blink {
24 class WebInputEvent; 25 class WebInputEvent;
25 class WebMouseWheelEvent; 26 class WebMouseWheelEvent;
26 } 27 }
27 28
28 namespace scheduler { 29 namespace scheduler {
29 class RendererScheduler; 30 class RendererScheduler;
30 } 31 }
31 32
32 namespace content { 33 namespace content {
33 34
34 class InputHandlerWrapper; 35 class InputHandlerWrapper;
35 class InputHandlerManagerClient; 36 class InputHandlerManagerClient;
36 struct DidOverscrollParams; 37 struct DidOverscrollParams;
37 38
38 // InputHandlerManager class manages InputHandlerProxy instances for 39 // InputHandlerManager class manages InputHandlerProxy instances for
39 // the WebViews in this renderer. 40 // the WebViews in this renderer.
40 class InputHandlerManager { 41 class CONTENT_EXPORT InputHandlerManager {
41 public: 42 public:
42 // |task_runner| is the SingleThreadTaskRunner of the compositor thread. The 43 // |task_runner| is the SingleThreadTaskRunner of the compositor thread. The
43 // underlying MessageLoop and supplied |client| and the |renderer_scheduler| 44 // underlying MessageLoop and supplied |client| and the |renderer_scheduler|
44 // must outlive this object. The RendererScheduler needs to know when input 45 // must outlive this object. The RendererScheduler needs to know when input
45 // events and fling animations occur, which is why it's passed in here. 46 // events and fling animations occur, which is why it's passed in here.
46 InputHandlerManager( 47 InputHandlerManager(
47 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 48 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
48 InputHandlerManagerClient* client, 49 InputHandlerManagerClient* client,
49 scheduler::RendererScheduler* renderer_scheduler); 50 scheduler::RendererScheduler* renderer_scheduler);
50 ~InputHandlerManager(); 51 ~InputHandlerManager();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 InputHandlerMap input_handlers_; 107 InputHandlerMap input_handlers_;
107 108
108 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 109 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
109 InputHandlerManagerClient* client_; 110 InputHandlerManagerClient* client_;
110 scheduler::RendererScheduler* renderer_scheduler_; // Not owned. 111 scheduler::RendererScheduler* renderer_scheduler_; // Not owned.
111 }; 112 };
112 113
113 } // namespace content 114 } // namespace content
114 115
115 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ 116 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/mus/compositor_mus_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698