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

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

Issue 7582009: [Mac] Rubber-banding on Lion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/render_widget_host.h
===================================================================
--- content/browser/renderer_host/render_widget_host.h (revision 95990)
+++ content/browser/renderer_host/render_widget_host.h (working copy)
@@ -260,6 +260,7 @@
// Called when a mouse click activates the renderer.
virtual void OnMouseActivate();
void ForwardWheelEvent(const WebKit::WebMouseWheelEvent& wheel_event);
+ void ForwardGestureEvent(const WebKit::WebGestureEvent& gesture_event);
virtual void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event);
virtual void ForwardTouchEvent(const WebKit::WebTouchEvent& touch_event);
@@ -366,6 +367,7 @@
void ActivateDeferredPluginHandles();
const gfx::Point& last_scroll_offset() const { return last_scroll_offset_; }
+ const gfx::Size& contents_size() const { return contents_size_; }
// Notification that the user has made some kind of input that could
// perform an action. See OnUserGesture for more details.
@@ -550,6 +552,11 @@
// The current size of the RenderWidget.
gfx::Size current_size_;
+ // The size of the underlying contents, including parts that are not visible
+ // due to scrolling. It can be used to calculate the view port bounds using
+ // |last_scroll_offset_|.
brettw 2011/08/11 00:08:27 We should make it clear that this isn't always ava
+ gfx::Size contents_size_;
+
// The current reserved area of the RenderWidget where contents should not be
// rendered to draw the resize corner, sidebar mini tabs etc.
gfx::Rect current_reserved_rect_;
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_mac.mm ('k') | content/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698