| Index: webkit/compositor_bindings/WebToCCInputHandlerAdapter.h
|
| diff --git a/webkit/compositor_bindings/WebToCCInputHandlerAdapter.h b/webkit/compositor_bindings/WebToCCInputHandlerAdapter.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0984e8438c37ecdc56ae3672ae9d94036ce14f49
|
| --- /dev/null
|
| +++ b/webkit/compositor_bindings/WebToCCInputHandlerAdapter.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef WebToCCInputHandlerAdapter_h
|
| +#define WebToCCInputHandlerAdapter_h
|
| +
|
| +#include "CCInputHandler.h"
|
| +#include <public/WebInputHandler.h>
|
| +#include <wtf/OwnPtr.h>
|
| +#include <wtf/PassOwnPtr.h>
|
| +
|
| +namespace WebKit {
|
| +
|
| +class WebToCCInputHandlerAdapter : public WebCore::CCInputHandler {
|
| +public:
|
| + static PassOwnPtr<WebToCCInputHandlerAdapter> create(PassOwnPtr<WebInputHandler>);
|
| + virtual ~WebToCCInputHandlerAdapter();
|
| +
|
| + // WebCore::CCInputHandler implementation.
|
| + virtual void bindToClient(WebCore::CCInputHandlerClient*) OVERRIDE;
|
| + virtual void animate(double monotonicTime) OVERRIDE;
|
| +
|
| +private:
|
| + explicit WebToCCInputHandlerAdapter(PassOwnPtr<WebInputHandler>);
|
| +
|
| + class ClientAdapter;
|
| + OwnPtr<ClientAdapter> m_clientAdapter;
|
| + OwnPtr<WebInputHandler> m_handler;
|
| +};
|
| +
|
| +}
|
| +
|
| +#endif // WebToCCInputHandlerAdapter_h
|
|
|