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/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 // Check content::TopControlsState and cc::TopControlsState are kept in sync. | 14 // Check content::TopControlsState and cc::TopControlsState are kept in sync. |
15 COMPILE_ASSERT(int(SHOWN) == int(cc::SHOWN), mismatching_enums); | 15 COMPILE_ASSERT(int(SHOWN) == int(cc::SHOWN), mismatching_enums); |
16 COMPILE_ASSERT(int(HIDDEN) == int(cc::HIDDEN), mismatching_enums); | 16 COMPILE_ASSERT(int(HIDDEN) == int(cc::HIDDEN), mismatching_enums); |
17 COMPILE_ASSERT(int(BOTH) == int(cc::BOTH), mismatching_enums); | 17 COMPILE_ASSERT(int(BOTH) == int(cc::BOTH), mismatching_enums); |
18 | 18 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 return; | 56 return; |
57 if (compositor_) { | 57 if (compositor_) { |
58 cc::TopControlsState current = delta.height < 0 ? cc::SHOWN : cc::HIDDEN; | 58 cc::TopControlsState current = delta.height < 0 ? cc::SHOWN : cc::HIDDEN; |
59 compositor_->UpdateTopControlsState(top_controls_constraints_, | 59 compositor_->UpdateTopControlsState(top_controls_constraints_, |
60 current, | 60 current, |
61 true); | 61 true); |
62 } | 62 } |
63 } | 63 } |
64 | 64 |
65 } // namespace content | 65 } // namespace content |
OLD | NEW |