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

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: 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: 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 8903e4291d412813d43771d69a8319ba0c8aadd0..9e4a85a1119a43f176f14c2d711d67033a8ef97e 100644
--- a/chrome/renderer/chrome_render_view_observer.cc
+++ b/chrome/renderer/chrome_render_view_observer.cc
@@ -214,6 +214,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()
@@ -281,6 +285,15 @@ void ChromeRenderViewObserver::OnNPAPINotSupported() {
#endif
}
+#if defined(OS_ANDROID)
+void ChromeRenderViewObserver::OnUpdateTopControlsState(
+ cc::TopControlsState constraints,
+ cc::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