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

Unified Diff: chrome/renderer/chrome_render_view_observer.cc

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync, merge, address style nits. 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: chrome/renderer/chrome_render_view_observer.cc
diff --git a/chrome/renderer/chrome_render_view_observer.cc b/chrome/renderer/chrome_render_view_observer.cc
index 835bae2a11313a0e9c1c2e24e69c90de8e08975b..5b8586320c27977fe85b9f07bead5694bba36a77 100644
--- a/chrome/renderer/chrome_render_view_observer.cc
+++ b/chrome/renderer/chrome_render_view_observer.cc
@@ -212,6 +212,10 @@ bool ChromeRenderViewObserver::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(ChromeViewMsg_AddStrictSecurityHost,
OnAddStrictSecurityHost)
IPC_MESSAGE_HANDLER(ChromeViewMsg_NPAPINotSupported, OnNPAPINotSupported)
+#if defined(OS_ANDROID)
+ IPC_MESSAGE_HANDLER(ChromeViewMsg_UpdateTopControlsState,
+ OnUpdateTopControlsState)
+#endif
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -279,6 +283,15 @@ void ChromeRenderViewObserver::OnNPAPINotSupported() {
#endif
}
+#if defined(OS_ANDROID)
+void ChromeRenderViewObserver::OnUpdateTopControlsState(
+ content::TopControlsState constraints,
+ content::TopControlsState current,
+ bool animate) {
+ render_view()->UpdateTopControlsState(constraints, current, animate);
+}
+#endif
+
void ChromeRenderViewObserver::Navigate(const GURL& url) {
// Execute cache clear operations that were postponed until a navigation
// event (including tab reload).

Powered by Google App Engine
This is Rietveld 408576698