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_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.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 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1618 metadata.max_page_scale_factor = active_tree_->max_page_scale_factor(); | 1618 metadata.max_page_scale_factor = active_tree_->max_page_scale_factor(); |
1619 metadata.top_controls_height = | 1619 metadata.top_controls_height = |
1620 browser_controls_offset_manager_->TopControlsHeight(); | 1620 browser_controls_offset_manager_->TopControlsHeight(); |
1621 metadata.top_controls_shown_ratio = | 1621 metadata.top_controls_shown_ratio = |
1622 browser_controls_offset_manager_->TopControlsShownRatio(); | 1622 browser_controls_offset_manager_->TopControlsShownRatio(); |
1623 metadata.bottom_controls_height = | 1623 metadata.bottom_controls_height = |
1624 browser_controls_offset_manager_->BottomControlsHeight(); | 1624 browser_controls_offset_manager_->BottomControlsHeight(); |
1625 metadata.bottom_controls_shown_ratio = | 1625 metadata.bottom_controls_shown_ratio = |
1626 browser_controls_offset_manager_->BottomControlsShownRatio(); | 1626 browser_controls_offset_manager_->BottomControlsShownRatio(); |
1627 metadata.root_background_color = active_tree_->background_color(); | 1627 metadata.root_background_color = active_tree_->background_color(); |
| 1628 metadata.is_fullscreen = active_tree_->is_fullscreen(); |
1628 metadata.content_source_id = active_tree_->content_source_id(); | 1629 metadata.content_source_id = active_tree_->content_source_id(); |
1629 | 1630 |
1630 active_tree_->GetViewportSelection(&metadata.selection); | 1631 active_tree_->GetViewportSelection(&metadata.selection); |
1631 | 1632 |
1632 if (const auto* outer_viewport_scroll_node = OuterViewportScrollNode()) { | 1633 if (const auto* outer_viewport_scroll_node = OuterViewportScrollNode()) { |
1633 metadata.root_overflow_x_hidden = | 1634 metadata.root_overflow_x_hidden = |
1634 !outer_viewport_scroll_node->user_scrollable_horizontal; | 1635 !outer_viewport_scroll_node->user_scrollable_horizontal; |
1635 metadata.root_overflow_y_hidden = | 1636 metadata.root_overflow_y_hidden = |
1636 !outer_viewport_scroll_node->user_scrollable_vertical; | 1637 !outer_viewport_scroll_node->user_scrollable_vertical; |
1637 } | 1638 } |
(...skipping 2758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4396 | 4397 |
4397 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { | 4398 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { |
4398 if (!element_id) | 4399 if (!element_id) |
4399 return; | 4400 return; |
4400 if (ScrollbarAnimationController* animation_controller = | 4401 if (ScrollbarAnimationController* animation_controller = |
4401 ScrollbarAnimationControllerForElementId(element_id)) | 4402 ScrollbarAnimationControllerForElementId(element_id)) |
4402 animation_controller->DidScrollUpdate(); | 4403 animation_controller->DidScrollUpdate(); |
4403 } | 4404 } |
4404 | 4405 |
4405 } // namespace cc | 4406 } // namespace cc |
OLD | NEW |