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

Unified Diff: content/browser/renderer_host/overscroll_controller_delegate.h

Issue 30683003: Remove final RenderWidgetHostImpl dependency from OverscrollController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 2 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/browser/renderer_host/overscroll_controller_delegate.h
diff --git a/content/browser/renderer_host/overscroll_controller_delegate.h b/content/browser/renderer_host/overscroll_controller_delegate.h
index 6d40ed1209534a423daab48b557f97d5277c9243..59295ce41277247a8ef7896087e2408f5c0f523c 100644
--- a/content/browser/renderer_host/overscroll_controller_delegate.h
+++ b/content/browser/renderer_host/overscroll_controller_delegate.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "content/browser/renderer_host/overscroll_controller.h"
+#include "ui/gfx/rect.h"
namespace content {
@@ -18,6 +19,10 @@ class OverscrollControllerDelegate {
OverscrollControllerDelegate() {}
virtual ~OverscrollControllerDelegate() {}
+ // Get the bounds of the view corresponding to the delegate. Overscroll-ending
+ // events will only be processed if the visible bounds are non-empty.
+ virtual gfx::Rect GetVisibleBounds() const = 0;
+
// This is called for each update in the overscroll amount.
virtual void OnOverscrollUpdate(float delta_x, float delta_y) = 0;
« no previous file with comments | « content/browser/renderer_host/overscroll_controller.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698