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_ |
+ |