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

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 ShowTopControls into UpdateTopControlsState, use new TopControlsState enum in plumbing, gener… 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 55af0fde25a8bbb6e215aaaee8ffbdcde197054b..9f27b8aa51974866b9f832c0e909cfc1cbe53862 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1284,13 +1284,17 @@ void ContentViewCoreImpl::ExitFullscreen(JNIEnv* env, jobject obj) {
void ContentViewCoreImpl::UpdateTopControlsState(JNIEnv* env,
jobject obj,
- bool enable_hiding,
- bool enable_showing,
+ jint constraints,
+ jint current,
bool animate) {
RenderViewHost* host = web_contents_->GetRenderViewHost();
+ cc::TopControlsState constraints_state =
+ static_cast<cc::TopControlsState>(constraints);
+ cc::TopControlsState current_state =
+ static_cast<cc::TopControlsState>(current);
host->Send(new ViewMsg_UpdateTopControlsState(host->GetRoutingID(),
- enable_hiding,
- enable_showing,
+ constraints_state,
+ current_state,
animate));
}

Powered by Google App Engine
This is Rietveld 408576698