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

Unified Diff: content/renderer/render_view_impl_android.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/renderer/render_view_impl_android.cc
diff --git a/content/renderer/render_view_impl_android.cc b/content/renderer/render_view_impl_android.cc
index 0d5ade1b3f222991ab68c706ac14ba4238996102..0aff6ea265f20939ab4fc6cb1f170badef6fb432 100644
--- a/content/renderer/render_view_impl_android.cc
+++ b/content/renderer/render_view_impl_android.cc
@@ -11,14 +11,14 @@
namespace content {
-void RenderViewImpl::OnUpdateTopControlsState(bool enable_hiding,
- bool enable_showing,
+void RenderViewImpl::OnUpdateTopControlsState(cc::TopControlsState constraints,
+ cc::TopControlsState current,
bool animate) {
// TODO(tedchoc): Investigate why messages are getting here before the
// compositor has been initialized.
LOG_IF(WARNING, !compositor_) << "OnUpdateTopControlsState was unhandled.";
if (compositor_)
- compositor_->UpdateTopControlsState(enable_hiding, enable_showing, animate);
+ compositor_->UpdateTopControlsState(constraints, current, animate);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698