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 |
| 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 |
OLD | NEW |