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

Unified Diff: content/renderer/android/synchronous_compositor_input_handler_client_wrapper.h

Issue 15002007: Delegate root layer scroll offset to android_webview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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: content/renderer/android/synchronous_compositor_input_handler_client_wrapper.h
diff --git a/content/renderer/android/synchronous_compositor_input_handler_client_wrapper.h b/content/renderer/android/synchronous_compositor_input_handler_client_wrapper.h
new file mode 100644
index 0000000000000000000000000000000000000000..802ded48d15c508bcae9e60c71aeec2f6328c6f8
--- /dev/null
+++ b/content/renderer/android/synchronous_compositor_input_handler_client_wrapper.h
@@ -0,0 +1,44 @@
+// Copyright (c) 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 CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_INPUT_HANDLER_CLIENT_WRAPPER_H_
+#define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_INPUT_HANDLER_CLIENT_WRAPPER_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "cc/input/input_handler.h"
+
+namespace cc {
+class InputHandler;
+class InputHandlerClient;
+class LayerScrollOffsetDelegate;
+}
+
+namespace content {
+
+class SynchronousCompositorClient;
+
joth 2013/05/16 18:21:42 commentette?
+class SynchronousCompositorInputHandlerClientWrapper
+ : public cc::InputHandlerClient {
+ public:
+ SynchronousCompositorInputHandlerClientWrapper(
+ scoped_ptr<cc::InputHandlerClient> wrapped_client,
+ cc::LayerScrollOffsetDelegate* layer_scroll_offset_delegate);
+ virtual ~SynchronousCompositorInputHandlerClientWrapper();
+
+ virtual void BindToHandler(cc::InputHandler* handler) OVERRIDE;
+ virtual void Animate(base::TimeTicks time) OVERRIDE;
+ virtual void MainThreadHasStoppedFlinging() OVERRIDE;
+
+ private:
+ scoped_ptr<cc::InputHandlerClient> wrapped_client_;
+ cc::LayerScrollOffsetDelegate* layer_scroll_offset_delegate_;
+ cc::InputHandler* handler_;
+
+ DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorInputHandlerClientWrapper);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_INPUT_HANDLER_CLIENT_WRAPPER_H_
+

Powered by Google App Engine
This is Rietveld 408576698