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