summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/render_view_host.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-13 03:44:31 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-13 03:44:31 +0000
commitdd6afcae7bffda8cf9a70e01191f0a08e5a0f7e3 (patch)
tree38c47aa3ba8908b05d8010f4f0853f1a71af4ac0 /content/browser/renderer_host/render_view_host.h
parent48352a17719783565d2e7c97de5eeddd6b0e9b8d (diff)
downloadchromium_src-dd6afcae7bffda8cf9a70e01191f0a08e5a0f7e3.zip
chromium_src-dd6afcae7bffda8cf9a70e01191f0a08e5a0f7e3.tar.gz
chromium_src-dd6afcae7bffda8cf9a70e01191f0a08e5a0f7e3.tar.bz2
Pipe "is pinned to left/right", "has horizontal/vertical scrollbar",
"number of wheel handlers" to browser process. We want to implement two-finger-swipe for history like safari does on os x lion. The way this works is: * If a page has no horizontal scrollbars, or the page is all the way to the left, scrolling to the left will go back in history instead. * Same for right/forward. Hence, this data needs to be available in the browser process. This is modelled after the WebKit2 functions WKPageIsPinnedToLeftSide(), WKPageIsPinnedToRightSide(), WKPageHasHorizontalScrollbar(), and webPageProxy::willHandleHorizontalScrollEvents(). Depends on https://bugs.webkit.org/show_bug.cgi?id=66094 BUG=90228 TEST=No observable effect yet Review URL: http://codereview.chromium.org/7635011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96670 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/render_view_host.h')
-rw-r--r--content/browser/renderer_host/render_view_host.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/renderer_host/render_view_host.h b/content/browser/renderer_host/render_view_host.h
index 17f560a..d5566c0 100644
--- a/content/browser/renderer_host/render_view_host.h
+++ b/content/browser/renderer_host/render_view_host.h
@@ -430,6 +430,11 @@ class RenderViewHost : public RenderWidgetHost {
void OnMsgOpenURL(const GURL& url, const GURL& referrer,
WindowOpenDisposition disposition);
void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size);
+ void OnMsgDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar,
+ bool has_vertical_scrollbar);
+ void OnMsgDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left,
+ bool is_pinned_to_right);
+ void OnMsgDidChangeNumWheelEvents(int count);
void OnMsgSelectionChanged(const std::string& text, const ui::Range& range,
const gfx::Point& start, const gfx::Point& end);
void OnMsgPasteFromSelectionClipboard();