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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_GPU_INPUT_HANDLER_MANAGER_H_ 5 #ifndef CONTENT_RENDERER_GPU_INPUT_HANDLER_MANAGER_H_
6 #define CONTENT_RENDERER_GPU_INPUT_HANDLER_MANAGER_H_ 6 #define CONTENT_RENDERER_GPU_INPUT_HANDLER_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "content/port/common/input_event_ack_state.h" 12 #include "content/port/common/input_event_ack_state.h"
13 #include "content/renderer/render_view_impl.h" 13 #include "content/renderer/render_view_impl.h"
14 14
15 namespace base { 15 namespace base {
16 class MessageLoopProxy; 16 class MessageLoopProxy;
17 } 17 }
18 18
19 namespace cc { 19 namespace cc {
20 class InputHandler; 20 class InputHandler;
21 struct DidOverscrollParams; 21 struct DidOverscrollParams;
22 } 22 }
23 23
24 namespace WebKit { 24 namespace blink {
25 class WebInputEvent; 25 class WebInputEvent;
26 } 26 }
27 27
28 namespace content { 28 namespace content {
29 29
30 class InputHandlerWrapper; 30 class InputHandlerWrapper;
31 class InputHandlerManagerClient; 31 class InputHandlerManagerClient;
32 32
33 // InputHandlerManager class manages InputHandlerProxy instances for 33 // InputHandlerManager class manages InputHandlerProxy instances for
34 // the WebViews in this renderer. 34 // the WebViews in this renderer.
(...skipping 10 matching lines...) Expand all
45 void AddInputHandler( 45 void AddInputHandler(
46 int routing_id, 46 int routing_id,
47 const base::WeakPtr<cc::InputHandler>& input_handler, 47 const base::WeakPtr<cc::InputHandler>& input_handler,
48 const base::WeakPtr<RenderViewImpl>& render_view_impl); 48 const base::WeakPtr<RenderViewImpl>& render_view_impl);
49 49
50 // Callback only from the compositor's thread. 50 // Callback only from the compositor's thread.
51 void RemoveInputHandler(int routing_id); 51 void RemoveInputHandler(int routing_id);
52 52
53 // Called from the compositor's thread. 53 // Called from the compositor's thread.
54 InputEventAckState HandleInputEvent(int routing_id, 54 InputEventAckState HandleInputEvent(int routing_id,
55 const WebKit::WebInputEvent* input_event, 55 const blink::WebInputEvent* input_event,
56 const ui::LatencyInfo& latency_info); 56 const ui::LatencyInfo& latency_info);
57 57
58 // Called from the compositor's thread. 58 // Called from the compositor's thread.
59 void DidOverscroll(int routing_id, const cc::DidOverscrollParams& params); 59 void DidOverscroll(int routing_id, const cc::DidOverscrollParams& params);
60 60
61 private: 61 private:
62 // Called from the compositor's thread. 62 // Called from the compositor's thread.
63 void AddInputHandlerOnCompositorThread( 63 void AddInputHandlerOnCompositorThread(
64 int routing_id, 64 int routing_id,
65 const scoped_refptr<base::MessageLoopProxy>& main_loop, 65 const scoped_refptr<base::MessageLoopProxy>& main_loop,
66 const base::WeakPtr<cc::InputHandler>& input_handler, 66 const base::WeakPtr<cc::InputHandler>& input_handler,
67 const base::WeakPtr<RenderViewImpl>& render_view_impl); 67 const base::WeakPtr<RenderViewImpl>& render_view_impl);
68 68
69 typedef std::map<int, // routing_id 69 typedef std::map<int, // routing_id
70 scoped_refptr<InputHandlerWrapper> > InputHandlerMap; 70 scoped_refptr<InputHandlerWrapper> > InputHandlerMap;
71 InputHandlerMap input_handlers_; 71 InputHandlerMap input_handlers_;
72 72
73 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; 73 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
74 InputHandlerManagerClient* client_; 74 InputHandlerManagerClient* client_;
75 }; 75 };
76 76
77 } // namespace content 77 } // namespace content
78 78
79 #endif // CONTENT_RENDERER_GPU_INPUT_HANDLER_MANAGER_H_ 79 #endif // CONTENT_RENDERER_GPU_INPUT_HANDLER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/input_event_filter_unittest.cc ('k') | content/renderer/gpu/input_handler_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698