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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 11967015: Hide location bar on WebKit programmatic scroll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Route requestHideTopControls through browser. Created 7 years, 9 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/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 96916f497ef71bd99dab85db03744f9153892a0d..d04e349d2bb2b04e88d9fda6227b6c91ec68d530 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1229,6 +1229,11 @@ void ContentViewCoreImpl::EnableHidingTopControls(JNIEnv* env, jobject obj,
host->Send(new ViewMsg_EnableHidingTopControls(host->GetRoutingID(), enable));
}
+void ContentViewCoreImpl::ShowTopControls(JNIEnv* env, jobject obj, bool show) {
+ RenderViewHost* host = web_contents_->GetRenderViewHost();
+ host->Send(new ViewMsg_ShowTopControls(host->GetRoutingID(), show));
+}
+
void ContentViewCoreImpl::ShowImeIfNeeded(JNIEnv* env, jobject obj) {
RenderViewHost* host = web_contents_->GetRenderViewHost();
host->Send(new ViewMsg_ShowImeIfNeeded(host->GetRoutingID()));

Powered by Google App Engine
This is Rietveld 408576698