Chromium Code Reviews| Index: content/public/renderer/android/synchronous_compositor_client.h |
| diff --git a/content/public/renderer/android/synchronous_compositor_client.h b/content/public/renderer/android/synchronous_compositor_client.h |
| index 34b4d1b340c69e7cc8cb345152d147c4c1b35841..d1320c590fb5a645ab1e36d3d7484b69485fd91f 100644 |
| --- a/content/public/renderer/android/synchronous_compositor_client.h |
| +++ b/content/public/renderer/android/synchronous_compositor_client.h |
| @@ -5,6 +5,12 @@ |
| #ifndef CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_CLIENT_H_ |
| #define CONTENT_PUBLIC_RENDERER_ANDROID_SYNCRHONOUS_COMPOSITOR_CLIENT_H_ |
|
jamesr
2013/05/22 01:28:13
same typo here - s/COMPOSTIOR/COMPOSITOR/
mkosiba (inactive)
2013/05/22 17:26:17
haha! no, the typo in this file is in syncrhonous
|
| +#include "base/basictypes.h" |
| + |
| +namespace gfx { |
| +class Vector2dF; |
|
jamesr
2013/05/22 01:28:13
forward decl can't help when the type is passed by
mkosiba (inactive)
2013/05/22 17:26:17
Done.
|
| +} |
| + |
| namespace content { |
| class SynchronousCompositor; |
| @@ -17,7 +23,9 @@ class SynchronousCompositorClient { |
| // SynchronousCompositor::SetClient(NULL) to release the back pointer. |
| virtual void DidDestroyCompositor(SynchronousCompositor* compositor) = 0; |
| - // TODO(joth): Add scroll getters and setters. |
| + // See LayerScrollOffsetDelegate for details. |
| + virtual void SetTotalRootLayerScrollOffset(gfx::Vector2dF new_value) = 0; |
| + virtual gfx::Vector2dF GetTotalRootLayerScrollOffset() = 0; |
| // When true, should periodically call |
| // SynchronousCompositorOutputSurface::DemandDrawHw. Note that this value |
| @@ -25,7 +33,11 @@ class SynchronousCompositorClient { |
| virtual void SetContinuousInvalidate(bool invalidate) = 0; |
| protected: |
| + SynchronousCompositorClient() {} |
| virtual ~SynchronousCompositorClient() {} |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient); |
| }; |
| } // namespace content |