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). |