Index: webkit/renderer/compositor_bindings/web_to_cc_layer_scroll_client_adapter.h |
diff --git a/webkit/renderer/compositor_bindings/web_to_cc_layer_scroll_client_adapter.h b/webkit/renderer/compositor_bindings/web_to_cc_layer_scroll_client_adapter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..776454198a316aedf917750366a85cf3b46b5fae |
--- /dev/null |
+++ b/webkit/renderer/compositor_bindings/web_to_cc_layer_scroll_client_adapter.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2013 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 WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_LAYER_SCROLL_CLIENT_ADAPTER_H_ |
+#define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_LAYER_SCROLL_CLIENT_ADAPTER_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/compiler_specific.h" |
+#include "cc/layers/layer_scroll_client.h" |
+ |
+namespace WebKit { class WebLayerScrollClient; } |
+ |
+namespace webkit { |
+ |
+class WebToCCLayerScrollClientAdapter : public cc::LayerScrollClient { |
+ public: |
+ explicit WebToCCLayerScrollClientAdapter( |
+ WebKit::WebLayerScrollClient* client); |
+ |
+ private: |
+ virtual void DidScroll() OVERRIDE; |
+ |
+ WebKit::WebLayerScrollClient* client_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(WebToCCLayerScrollClientAdapter); |
+}; |
+ |
+} // namespace webkit |
+ |
+#endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_LAYER_SCROLL_CLIENT_ADAPTER_H_ |