OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 "cc/trees/layer_tree_host.h" | 5 #include "cc/trees/layer_tree_host.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1176 | 1176 |
1177 if (hud_layer_.get()) { | 1177 if (hud_layer_.get()) { |
1178 LayerImpl* hud_impl = tree_impl->LayerById(hud_layer_->id()); | 1178 LayerImpl* hud_impl = tree_impl->LayerById(hud_layer_->id()); |
1179 tree_impl->set_hud_layer(static_cast<HeadsUpDisplayLayerImpl*>(hud_impl)); | 1179 tree_impl->set_hud_layer(static_cast<HeadsUpDisplayLayerImpl*>(hud_impl)); |
1180 } else { | 1180 } else { |
1181 tree_impl->set_hud_layer(nullptr); | 1181 tree_impl->set_hud_layer(nullptr); |
1182 } | 1182 } |
1183 | 1183 |
1184 tree_impl->set_background_color(background_color_); | 1184 tree_impl->set_background_color(background_color_); |
1185 tree_impl->set_has_transparent_background(has_transparent_background_); | 1185 tree_impl->set_has_transparent_background(has_transparent_background_); |
| 1186 tree_impl->set_is_fullscreen(is_fullscreen_); |
1186 tree_impl->set_have_scroll_event_handlers(have_scroll_event_handlers_); | 1187 tree_impl->set_have_scroll_event_handlers(have_scroll_event_handlers_); |
1187 tree_impl->set_event_listener_properties( | 1188 tree_impl->set_event_listener_properties( |
1188 EventListenerClass::kTouchStartOrMove, | 1189 EventListenerClass::kTouchStartOrMove, |
1189 event_listener_properties(EventListenerClass::kTouchStartOrMove)); | 1190 event_listener_properties(EventListenerClass::kTouchStartOrMove)); |
1190 tree_impl->set_event_listener_properties( | 1191 tree_impl->set_event_listener_properties( |
1191 EventListenerClass::kMouseWheel, | 1192 EventListenerClass::kMouseWheel, |
1192 event_listener_properties(EventListenerClass::kMouseWheel)); | 1193 event_listener_properties(EventListenerClass::kMouseWheel)); |
1193 tree_impl->set_event_listener_properties( | 1194 tree_impl->set_event_listener_properties( |
1194 EventListenerClass::kTouchEndOrCancel, | 1195 EventListenerClass::kTouchEndOrCancel, |
1195 event_listener_properties(EventListenerClass::kTouchEndOrCancel)); | 1196 event_listener_properties(EventListenerClass::kTouchEndOrCancel)); |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { | 1448 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { |
1448 for (auto* layer : *this) | 1449 for (auto* layer : *this) |
1449 layer->SetNeedsDisplay(); | 1450 layer->SetNeedsDisplay(); |
1450 } | 1451 } |
1451 | 1452 |
1452 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { | 1453 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { |
1453 has_copy_request_ = has_copy_request; | 1454 has_copy_request_ = has_copy_request; |
1454 } | 1455 } |
1455 | 1456 |
1456 } // namespace cc | 1457 } // namespace cc |
OLD | NEW |