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

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: Address comments. 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 f59129f2966e76a0984665b39eac3eac0387e625..b8dd1924c48f55feb9b74db7cd9e953db728d919 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1238,6 +1238,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