| 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 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" | 11 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" |
| 12 | 12 |
| 13 namespace WebKit { | 13 namespace WebKit { |
| 14 | 14 |
| 15 class WebToCCInputHandlerAdapter : public cc::InputHandler { | 15 class WebToCCInputHandlerAdapter : public cc::InputHandler { |
| 16 public: | 16 public: |
| 17 WEBKIT_COMPOSITOR_BINDINGS_EXPORT static | 17 WEBKIT_COMPOSITOR_BINDINGS_EXPORT static |
| 18 scoped_ptr<WebToCCInputHandlerAdapter> create( | 18 scoped_ptr<WebToCCInputHandlerAdapter> create( |
| 19 scoped_ptr<WebInputHandler>); | 19 scoped_ptr<WebInputHandler>); |
| 20 virtual ~WebToCCInputHandlerAdapter(); | 20 virtual ~WebToCCInputHandlerAdapter(); |
| 21 | 21 |
| 22 // cc::InputHandler implementation. | 22 // cc::InputHandler implementation. |
| 23 virtual void bindToClient(cc::InputHandlerClient*) OVERRIDE; | 23 virtual void BindToClient(cc::InputHandlerClient*) OVERRIDE; |
| 24 virtual void animate(base::TimeTicks time) OVERRIDE; | 24 virtual void Animate(base::TimeTicks time) OVERRIDE; |
| 25 virtual void mainThreadHasStoppedFlinging() OVERRIDE; | 25 virtual void MainThreadHasStoppedFlinging() OVERRIDE; |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 explicit WebToCCInputHandlerAdapter(scoped_ptr<WebInputHandler>); | 28 explicit WebToCCInputHandlerAdapter(scoped_ptr<WebInputHandler>); |
| 29 | 29 |
| 30 class ClientAdapter; | 30 class ClientAdapter; |
| 31 scoped_ptr<ClientAdapter> client_adapter_; | 31 scoped_ptr<ClientAdapter> client_adapter_; |
| 32 scoped_ptr<WebInputHandler> handler_; | 32 scoped_ptr<WebInputHandler> handler_; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } | 35 } |
| 36 | 36 |
| 37 #endif // WebToCCInputHandlerAdapter_h | 37 #endif // WebToCCInputHandlerAdapter_h |
| OLD | NEW |