| OLD | NEW | 
|---|
| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 65                                       const blink::WebInputEvent* input_event, | 65                                       const blink::WebInputEvent* input_event, | 
| 66                                       ui::LatencyInfo* latency_info); | 66                                       ui::LatencyInfo* latency_info); | 
| 67 | 67 | 
| 68   // Called from the compositor's thread. | 68   // Called from the compositor's thread. | 
| 69   void DidOverscroll(int routing_id, const DidOverscrollParams& params); | 69   void DidOverscroll(int routing_id, const DidOverscrollParams& params); | 
| 70 | 70 | 
| 71   // Called from the compositor's thread. | 71   // Called from the compositor's thread. | 
| 72   void DidStopFlinging(int routing_id); | 72   void DidStopFlinging(int routing_id); | 
| 73 | 73 | 
| 74   // Called from the compositor's thread. | 74   // Called from the compositor's thread. | 
| 75   void DidReceiveInputEvent(blink::WebInputEvent::Type type); | 75   void DidReceiveInputEvent(const blink::WebInputEvent& web_input_event); | 
| 76 | 76 | 
| 77   // Called from the compositor's thread. | 77   // Called from the compositor's thread. | 
| 78   void DidAnimateForInput(); | 78   void DidAnimateForInput(); | 
| 79 | 79 | 
| 80  private: | 80  private: | 
| 81   // Called from the compositor's thread. | 81   // Called from the compositor's thread. | 
| 82   void AddInputHandlerOnCompositorThread( | 82   void AddInputHandlerOnCompositorThread( | 
| 83       int routing_id, | 83       int routing_id, | 
| 84       const scoped_refptr<base::MessageLoopProxy>& main_loop, | 84       const scoped_refptr<base::MessageLoopProxy>& main_loop, | 
| 85       const base::WeakPtr<cc::InputHandler>& input_handler, | 85       const base::WeakPtr<cc::InputHandler>& input_handler, | 
| 86       const base::WeakPtr<RenderViewImpl>& render_view_impl); | 86       const base::WeakPtr<RenderViewImpl>& render_view_impl); | 
| 87 | 87 | 
| 88   void ObserveWheelEventAndResultOnCompositorThread( | 88   void ObserveWheelEventAndResultOnCompositorThread( | 
| 89       int routing_id, | 89       int routing_id, | 
| 90       const blink::WebMouseWheelEvent& wheel_event, | 90       const blink::WebMouseWheelEvent& wheel_event, | 
| 91       const cc::InputHandlerScrollResult& scroll_result); | 91       const cc::InputHandlerScrollResult& scroll_result); | 
| 92 | 92 | 
| 93   typedef base::ScopedPtrHashMap<int,  // routing_id | 93   typedef base::ScopedPtrHashMap<int,  // routing_id | 
| 94                                  InputHandlerWrapper> InputHandlerMap; | 94                                  InputHandlerWrapper> InputHandlerMap; | 
| 95   InputHandlerMap input_handlers_; | 95   InputHandlerMap input_handlers_; | 
| 96 | 96 | 
| 97   scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; | 97   scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; | 
| 98   InputHandlerManagerClient* client_; | 98   InputHandlerManagerClient* client_; | 
| 99   RendererScheduler* renderer_scheduler_;  // Not owned. | 99   RendererScheduler* renderer_scheduler_;  // Not owned. | 
| 100 }; | 100 }; | 
| 101 | 101 | 
| 102 }  // namespace content | 102 }  // namespace content | 
| 103 | 103 | 
| 104 #endif  // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 104 #endif  // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 
| OLD | NEW | 
|---|