[email protected] | 198f6412 | 2012-11-05 13:09:31 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #include "content/renderer/render_view_impl.h" | ||||
6 | |||||
[email protected] | bf189f6 | 2012-12-18 03:42:11 | [diff] [blame] | 7 | #include "base/command_line.h" |
[email protected] | 198f6412 | 2012-11-05 13:09:31 | [diff] [blame] | 8 | #include "base/message_loop.h" |
[email protected] | 556fd29 | 2013-03-18 08:03:04 | [diff] [blame] | 9 | #include "cc/trees/layer_tree_host.h" |
[email protected] | da82a1f | 2013-02-26 03:17:59 | [diff] [blame] | 10 | #include "content/renderer/gpu/render_widget_compositor.h" |
[email protected] | 198f6412 | 2012-11-05 13:09:31 | [diff] [blame] | 11 | |
12 | namespace content { | ||||
13 | |||||
[email protected] | 452b4a9 | 2013-03-28 21:24:38 | [diff] [blame^] | 14 | void RenderViewImpl::OnUpdateTopControlsState(bool enable_hiding, |
15 | bool enable_showing, | ||||
16 | bool animate) { | ||||
[email protected] | 635353c | 2013-03-06 09:11:20 | [diff] [blame] | 17 | DCHECK(compositor_); |
18 | if (compositor_) { | ||||
[email protected] | 452b4a9 | 2013-03-28 21:24:38 | [diff] [blame^] | 19 | compositor_->UpdateTopControlsState(enable_hiding, enable_showing, animate); |
[email protected] | da82a1f | 2013-02-26 03:17:59 | [diff] [blame] | 20 | } |
21 | } | ||||
22 | |||||
[email protected] | 198f6412 | 2012-11-05 13:09:31 | [diff] [blame] | 23 | } // namespace content |