| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 WebToCCInputHandlerAdapter_h | 5 #ifndef WebToCCInputHandlerAdapter_h |
| 6 #define WebToCCInputHandlerAdapter_h | 6 #define WebToCCInputHandlerAdapter_h |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/input_handler.h" | 9 #include "cc/input_handler.h" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebInputHandler.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebInputHandler.h" |
| 11 | 11 |
| 12 namespace WebKit { | 12 namespace WebKit { |
| 13 | 13 |
| 14 class WebToCCInputHandlerAdapter : public cc::InputHandler { | 14 class WebToCCInputHandlerAdapter : public cc::InputHandler { |
| 15 public: | 15 public: |
| 16 static scoped_ptr<WebToCCInputHandlerAdapter> create(scoped_ptr<WebInputHand
ler>); | 16 static scoped_ptr<WebToCCInputHandlerAdapter> create(scoped_ptr<WebInputHand
ler>); |
| 17 virtual ~WebToCCInputHandlerAdapter(); | 17 virtual ~WebToCCInputHandlerAdapter(); |
| 18 | 18 |
| 19 // cc::InputHandler implementation. | 19 // cc::InputHandler implementation. |
| 20 virtual void bindToClient(cc::InputHandlerClient*) OVERRIDE; | 20 virtual void bindToClient(cc::InputHandlerClient*) OVERRIDE; |
| 21 virtual void animate(base::TimeTicks time) OVERRIDE; | 21 virtual void animate(base::TimeTicks time) OVERRIDE; |
| 22 virtual void mainThreadHasStoppedFlinging() OVERRIDE; |
| 22 | 23 |
| 23 private: | 24 private: |
| 24 explicit WebToCCInputHandlerAdapter(scoped_ptr<WebInputHandler>); | 25 explicit WebToCCInputHandlerAdapter(scoped_ptr<WebInputHandler>); |
| 25 | 26 |
| 26 class ClientAdapter; | 27 class ClientAdapter; |
| 27 scoped_ptr<ClientAdapter> m_clientAdapter; | 28 scoped_ptr<ClientAdapter> m_clientAdapter; |
| 28 scoped_ptr<WebInputHandler> m_handler; | 29 scoped_ptr<WebInputHandler> m_handler; |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 } | 32 } |
| 32 | 33 |
| 33 #endif // WebToCCInputHandlerAdapter_h | 34 #endif // WebToCCInputHandlerAdapter_h |
| OLD | NEW |