| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WebToCCInputHandlerAdapter_h |
| 6 #define WebToCCInputHandlerAdapter_h |
| 7 |
| 8 #include "CCInputHandler.h" |
| 9 #include <public/WebInputHandler.h> |
| 10 #include <wtf/OwnPtr.h> |
| 11 #include <wtf/PassOwnPtr.h> |
| 12 |
| 13 namespace WebKit { |
| 14 |
| 15 class WebToCCInputHandlerAdapter : public WebCore::CCInputHandler { |
| 16 public: |
| 17 static PassOwnPtr<WebToCCInputHandlerAdapter> create(PassOwnPtr<WebInputHand
ler>); |
| 18 virtual ~WebToCCInputHandlerAdapter(); |
| 19 |
| 20 // WebCore::CCInputHandler implementation. |
| 21 virtual void bindToClient(WebCore::CCInputHandlerClient*) OVERRIDE; |
| 22 virtual void animate(double monotonicTime) OVERRIDE; |
| 23 |
| 24 private: |
| 25 explicit WebToCCInputHandlerAdapter(PassOwnPtr<WebInputHandler>); |
| 26 |
| 27 class ClientAdapter; |
| 28 OwnPtr<ClientAdapter> m_clientAdapter; |
| 29 OwnPtr<WebInputHandler> m_handler; |
| 30 }; |
| 31 |
| 32 } |
| 33 |
| 34 #endif // WebToCCInputHandlerAdapter_h |
| OLD | NEW |