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

Side by Side Diff: content/renderer/render_view_impl_android.cc

Issue 11967015: Hide location bar on WebKit programmatic scroll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove semicolon from end of message declaration 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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::OnEnableHidingTopControls(bool enable) { 14 void RenderViewImpl::OnEnableHidingTopControls(bool enable) {
15 DCHECK(compositor_); 15 DCHECK(compositor_);
16 if (compositor_) { 16 if (compositor_)
17 compositor_->EnableHidingTopControls(enable); 17 compositor_->EnableHidingTopControls(enable);
18 } 18 }
19
20 void RenderViewImpl::OnShowTopControls(bool show) {
21 DCHECK(compositor_);
22 if (compositor_)
23 compositor_->ShowTopControls(show);
19 } 24 }
20 25
21 } // namespace content 26 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698