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

Unified Diff: content/browser/renderer_host/render_view_host.cc

Issue 7618036: mac: Only let two-finger-scrolling trigger history if web doesn't swallow gesture (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_view_host.cc
diff --git a/content/browser/renderer_host/render_view_host.cc b/content/browser/renderer_host/render_view_host.cc
index 8af8ed86594def723ee00d433fbcddfe258a6ab8..463ad36b0fcce5661008cfea7ebbb6b8a5a6c776 100644
--- a/content/browser/renderer_host/render_view_host.cc
+++ b/content/browser/renderer_host/render_view_host.cc
@@ -1009,16 +1009,17 @@ void RenderViewHost::OnMsgDidContentsPreferredSizeChange(
void RenderViewHost::OnMsgDidChangeScrollbarsForMainFrame(
bool has_horizontal_scrollbar, bool has_vertical_scrollbar) {
- // TODO(thakis): Implement, http://crbug.com/90228
+ if (view())
+ view()->SetHasHorizontalScrollbar(has_horizontal_scrollbar);
}
void RenderViewHost::OnMsgDidChangeScrollOffsetPinningForMainFrame(
bool is_pinned_to_left, bool is_pinned_to_right) {
- // TODO(thakis): Implement, http://crbug.com/90228
+ if (view())
+ view()->SetScrollOffsetPinning(is_pinned_to_left, is_pinned_to_right);
}
void RenderViewHost::OnMsgDidChangeNumWheelEvents(int count) {
Mark Mentovai 2011/08/15 14:43:57 Will we be using this at all?
Nico 2011/08/15 16:39:46 Good question. WebKit2 piped it through along with
- // TODO(thakis): Implement, http://crbug.com/90228
}
void RenderViewHost::OnMsgSelectionChanged(const std::string& text,

Powered by Google App Engine
This is Rietveld 408576698