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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "cc/trees/layer_tree_host.h" 9 #include "cc/trees/layer_tree_host.h"
10 #include "content/renderer/gpu/render_widget_compositor.h" 10 #include "content/renderer/gpu/render_widget_compositor.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 void RenderViewImpl::OnUpdateTopControlsState(bool enable_hiding, 14 void RenderViewImpl::OnUpdateTopControlsState(bool enable_hiding,
15 bool enable_showing, 15 bool enable_showing,
16 bool animate) { 16 bool animate) {
17 // TODO(tedchoc): Investigate why messages are getting here before the 17 // TODO(tedchoc): Investigate why messages are getting here before the
18 // compositor has been initialized. 18 // compositor has been initialized.
19 LOG_IF(WARNING, !compositor_) << "OnUpdateTopControlsState was unhandled."; 19 LOG_IF(WARNING, !compositor_) << "OnUpdateTopControlsState was unhandled.";
20 if (compositor_) 20 if (compositor_)
21 compositor_->UpdateTopControlsState(enable_hiding, enable_showing, animate); 21 compositor_->UpdateTopControlsState(enable_hiding, enable_showing, animate);
22 } 22 }
23 23
24 void RenderViewImpl::OnShowTopControls(bool show) {
25 DCHECK(compositor_);
Ted C 2013/04/16 02:05:58 Probably should remove the DCHECK as this was cras
26 if (compositor_)
27 compositor_->ShowTopControls(show);
28 }
29
24 } // namespace content 30 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698