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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore handling of ViewMsg_UpdateTopControlsState in RenderViewImpl. Created 7 years, 7 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/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 43ec8e581e47467e292228b338ab5123f4179980..9c56300ff27407882009da082e999ea80ddb5709 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -670,6 +670,8 @@ bool WebContentsImpl::OnMessageReceived(RenderViewHost* render_view_host,
IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler,
OnRegisterProtocolHandler)
IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_DidProgrammaticallyScroll,
+ OnDidProgrammaticallyScroll)
IPC_MESSAGE_HANDLER(ViewHostMsg_CrashedPlugin, OnCrashedPlugin)
IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed)
IPC_MESSAGE_HANDLER(ViewHostMsg_OpenColorChooser, OnOpenColorChooser)
@@ -2295,6 +2297,12 @@ void WebContentsImpl::OnFindReply(int request_id,
}
}
+void WebContentsImpl::OnDidProgrammaticallyScroll(
+ const gfx::Vector2d& scroll_point) {
+ if (delegate_)
+ delegate_->DidProgrammaticallyScroll(this, scroll_point);
+}
+
#if defined(OS_ANDROID)
void WebContentsImpl::OnFindMatchRectsReply(
int version,

Powered by Google App Engine
This is Rietveld 408576698