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; |