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

Unified Diff: content/public/renderer/android/synchronous_compositor_client.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/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_
+#include "base/basictypes.h"
+
+namespace gfx {
+class Vector2dF;
+}
+
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

Powered by Google App Engine
This is Rietveld 408576698