| 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/layer_tree_host.h" | 9 #include "cc/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_ && compositor_->layer_tree_host()); | 15 DCHECK(compositor_); |
| 16 if (compositor_ && compositor_->layer_tree_host()) { | 16 if (compositor_) { |
| 17 compositor_->layer_tree_host()->enableHidingTopControls(enable); | 17 compositor_->EnableHidingTopControls(enable); |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 | 20 |
| 21 } // namespace content | 21 } // namespace content |
| OLD | NEW |