blob: 31b273f52dc5f5c0f7b268a43cbbb9d3ffb74731 [file] [log] [blame]
[email protected]198f64122012-11-05 13:09:311// 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]bf189f62012-12-18 03:42:117#include "base/command_line.h"
[email protected]198f64122012-11-05 13:09:318#include "base/message_loop.h"
[email protected]556fd292013-03-18 08:03:049#include "cc/trees/layer_tree_host.h"
[email protected]da82a1f2013-02-26 03:17:5910#include "content/renderer/gpu/render_widget_compositor.h"
[email protected]198f64122012-11-05 13:09:3111
12namespace content {
13
[email protected]452b4a92013-03-28 21:24:3814void RenderViewImpl::OnUpdateTopControlsState(bool enable_hiding,
15 bool enable_showing,
16 bool animate) {
[email protected]635353c2013-03-06 09:11:2017 DCHECK(compositor_);
18 if (compositor_) {
[email protected]452b4a92013-03-28 21:24:3819 compositor_->UpdateTopControlsState(enable_hiding, enable_showing, animate);
[email protected]da82a1f2013-02-26 03:17:5920 }
21}
22
[email protected]198f64122012-11-05 13:09:3123} // namespace content