OLD | NEW |
---|---|
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 } | 19 } |
20 | 20 |
21 void RenderViewImpl::OnShowTopControls(bool show) { | |
22 DCHECK(compositor_); | |
23 if (compositor_) { | |
John Knottenbelt
2013/03/25 15:29:48
remove these braces...whoever added them above sho
| |
24 compositor_->ShowTopControls(show); | |
25 } | |
26 } | |
27 | |
21 } // namespace content | 28 } // namespace content |
OLD | NEW |