Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1967)

Unified Diff: webkit/renderer/compositor_bindings/web_to_cc_layer_scroll_client_adapter.h

Issue 18139004: cc: Create a LayerScrollClient interface and an adapter class in compositor_bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698