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

Unified Diff: content/public/browser/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: fix unittest compile 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
« no previous file with comments | « content/public/browser/android/synchronous_compositor.h ('k') | content/renderer/gpu/input_event_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/android/synchronous_compositor_client.h
diff --git a/content/public/browser/android/synchronous_compositor_client.h b/content/public/browser/android/synchronous_compositor_client.h
index d083038f0af50906d4d542b2cbec34f94731ee2a..c8af8ca15e5591c072d3568f655080b6befa2cff 100644
--- a/content/public/browser/android/synchronous_compositor_client.h
+++ b/content/public/browser/android/synchronous_compositor_client.h
@@ -6,6 +6,7 @@
#define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
#include "base/basictypes.h"
+#include "ui/gfx/vector2d_f.h"
namespace content {
@@ -23,7 +24,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
« no previous file with comments | « content/public/browser/android/synchronous_compositor.h ('k') | content/renderer/gpu/input_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698