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

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

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge after sync. Created 7 years, 8 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 204145c773647024dade3629fe31daaf9bc4fbd1..cc61ac6e91daf0e3109318ef2b1bb05942209678 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1265,6 +1265,11 @@ void ContentViewCoreImpl::UpdateTopControlsState(JNIEnv* env,
animate));
}
+void ContentViewCoreImpl::ShowTopControls(JNIEnv* env, jobject obj, bool show) {
+ RenderViewHost* host = web_contents_->GetRenderViewHost();
+ host->Send(new ViewMsg_ShowTopControls(host->GetRoutingID(), show));
jam 2013/04/17 16:24:59 it's simpler to just do web_contents_->Send(new F
Michael van Ouwerkerk 2013/04/18 18:11:38 Done.
+}
+
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