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 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1152 | 1152 |
1153 if (hud_layer_.get()) { | 1153 if (hud_layer_.get()) { |
1154 LayerImpl* hud_impl = tree_impl->LayerById(hud_layer_->id()); | 1154 LayerImpl* hud_impl = tree_impl->LayerById(hud_layer_->id()); |
1155 tree_impl->set_hud_layer(static_cast<HeadsUpDisplayLayerImpl*>(hud_impl)); | 1155 tree_impl->set_hud_layer(static_cast<HeadsUpDisplayLayerImpl*>(hud_impl)); |
1156 } else { | 1156 } else { |
1157 tree_impl->set_hud_layer(nullptr); | 1157 tree_impl->set_hud_layer(nullptr); |
1158 } | 1158 } |
1159 | 1159 |
1160 tree_impl->set_background_color(background_color_); | 1160 tree_impl->set_background_color(background_color_); |
1161 tree_impl->set_has_transparent_background(has_transparent_background_); | 1161 tree_impl->set_has_transparent_background(has_transparent_background_); |
| 1162 tree_impl->set_is_fullscreen(is_fullscreen_); |
1162 tree_impl->set_have_scroll_event_handlers(have_scroll_event_handlers_); | 1163 tree_impl->set_have_scroll_event_handlers(have_scroll_event_handlers_); |
1163 tree_impl->set_event_listener_properties( | 1164 tree_impl->set_event_listener_properties( |
1164 EventListenerClass::kTouchStartOrMove, | 1165 EventListenerClass::kTouchStartOrMove, |
1165 event_listener_properties(EventListenerClass::kTouchStartOrMove)); | 1166 event_listener_properties(EventListenerClass::kTouchStartOrMove)); |
1166 tree_impl->set_event_listener_properties( | 1167 tree_impl->set_event_listener_properties( |
1167 EventListenerClass::kMouseWheel, | 1168 EventListenerClass::kMouseWheel, |
1168 event_listener_properties(EventListenerClass::kMouseWheel)); | 1169 event_listener_properties(EventListenerClass::kMouseWheel)); |
1169 tree_impl->set_event_listener_properties( | 1170 tree_impl->set_event_listener_properties( |
1170 EventListenerClass::kTouchEndOrCancel, | 1171 EventListenerClass::kTouchEndOrCancel, |
1171 event_listener_properties(EventListenerClass::kTouchEndOrCancel)); | 1172 event_listener_properties(EventListenerClass::kTouchEndOrCancel)); |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1485 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { | 1486 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { |
1486 for (auto* layer : *this) | 1487 for (auto* layer : *this) |
1487 layer->SetNeedsDisplay(); | 1488 layer->SetNeedsDisplay(); |
1488 } | 1489 } |
1489 | 1490 |
1490 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { | 1491 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { |
1491 has_copy_request_ = has_copy_request; | 1492 has_copy_request_ = has_copy_request; |
1492 } | 1493 } |
1493 | 1494 |
1494 } // namespace cc | 1495 } // namespace cc |
OLD | NEW |