| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 void RemoveInputHandler(int routing_id); | 50 void RemoveInputHandler(int routing_id); |
| 51 | 51 |
| 52 // Called from the compositor's thread. | 52 // Called from the compositor's thread. |
| 53 InputEventAckState HandleInputEvent(int routing_id, | 53 InputEventAckState HandleInputEvent(int routing_id, |
| 54 const blink::WebInputEvent* input_event, | 54 const blink::WebInputEvent* input_event, |
| 55 ui::LatencyInfo* latency_info); | 55 ui::LatencyInfo* latency_info); |
| 56 | 56 |
| 57 // Called from the compositor's thread. | 57 // Called from the compositor's thread. |
| 58 void DidOverscroll(int routing_id, const cc::DidOverscrollParams& params); | 58 void DidOverscroll(int routing_id, const cc::DidOverscrollParams& params); |
| 59 | 59 |
| 60 // Called from the compositor's thread. |
| 61 void DidStopFlinging(int routing_id); |
| 62 |
| 60 private: | 63 private: |
| 61 // Called from the compositor's thread. | 64 // Called from the compositor's thread. |
| 62 void AddInputHandlerOnCompositorThread( | 65 void AddInputHandlerOnCompositorThread( |
| 63 int routing_id, | 66 int routing_id, |
| 64 const scoped_refptr<base::MessageLoopProxy>& main_loop, | 67 const scoped_refptr<base::MessageLoopProxy>& main_loop, |
| 65 const base::WeakPtr<cc::InputHandler>& input_handler, | 68 const base::WeakPtr<cc::InputHandler>& input_handler, |
| 66 const base::WeakPtr<RenderViewImpl>& render_view_impl); | 69 const base::WeakPtr<RenderViewImpl>& render_view_impl); |
| 67 | 70 |
| 68 typedef base::ScopedPtrHashMap<int, // routing_id | 71 typedef base::ScopedPtrHashMap<int, // routing_id |
| 69 InputHandlerWrapper> InputHandlerMap; | 72 InputHandlerWrapper> InputHandlerMap; |
| 70 InputHandlerMap input_handlers_; | 73 InputHandlerMap input_handlers_; |
| 71 | 74 |
| 72 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; | 75 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; |
| 73 InputHandlerManagerClient* client_; | 76 InputHandlerManagerClient* client_; |
| 74 }; | 77 }; |
| 75 | 78 |
| 76 } // namespace content | 79 } // namespace content |
| 77 | 80 |
| 78 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 81 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
| OLD | NEW |