| 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 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1611 metadata.max_page_scale_factor = active_tree_->max_page_scale_factor(); | 1611 metadata.max_page_scale_factor = active_tree_->max_page_scale_factor(); |
| 1612 metadata.top_controls_height = | 1612 metadata.top_controls_height = |
| 1613 browser_controls_offset_manager_->TopControlsHeight(); | 1613 browser_controls_offset_manager_->TopControlsHeight(); |
| 1614 metadata.top_controls_shown_ratio = | 1614 metadata.top_controls_shown_ratio = |
| 1615 browser_controls_offset_manager_->TopControlsShownRatio(); | 1615 browser_controls_offset_manager_->TopControlsShownRatio(); |
| 1616 metadata.bottom_controls_height = | 1616 metadata.bottom_controls_height = |
| 1617 browser_controls_offset_manager_->BottomControlsHeight(); | 1617 browser_controls_offset_manager_->BottomControlsHeight(); |
| 1618 metadata.bottom_controls_shown_ratio = | 1618 metadata.bottom_controls_shown_ratio = |
| 1619 browser_controls_offset_manager_->BottomControlsShownRatio(); | 1619 browser_controls_offset_manager_->BottomControlsShownRatio(); |
| 1620 metadata.root_background_color = active_tree_->background_color(); | 1620 metadata.root_background_color = active_tree_->background_color(); |
| 1621 metadata.is_fullscreen = active_tree_->is_fullscreen(); |
| 1621 metadata.content_source_id = active_tree_->content_source_id(); | 1622 metadata.content_source_id = active_tree_->content_source_id(); |
| 1622 | 1623 |
| 1623 active_tree_->GetViewportSelection(&metadata.selection); | 1624 active_tree_->GetViewportSelection(&metadata.selection); |
| 1624 | 1625 |
| 1625 if (OuterViewportScrollLayer()) { | 1626 if (OuterViewportScrollLayer()) { |
| 1626 metadata.root_overflow_x_hidden = | 1627 metadata.root_overflow_x_hidden = |
| 1627 !OuterViewportScrollLayer()->user_scrollable_horizontal(); | 1628 !OuterViewportScrollLayer()->user_scrollable_horizontal(); |
| 1628 metadata.root_overflow_y_hidden = | 1629 metadata.root_overflow_y_hidden = |
| 1629 !OuterViewportScrollLayer()->user_scrollable_vertical(); | 1630 !OuterViewportScrollLayer()->user_scrollable_vertical(); |
| 1630 } | 1631 } |
| (...skipping 2734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4365 | 4366 |
| 4366 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { | 4367 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { |
| 4367 if (!element_id) | 4368 if (!element_id) |
| 4368 return; | 4369 return; |
| 4369 if (ScrollbarAnimationController* animation_controller = | 4370 if (ScrollbarAnimationController* animation_controller = |
| 4370 ScrollbarAnimationControllerForElementId(element_id)) | 4371 ScrollbarAnimationControllerForElementId(element_id)) |
| 4371 animation_controller->DidScrollUpdate(); | 4372 animation_controller->DidScrollUpdate(); |
| 4372 } | 4373 } |
| 4373 | 4374 |
| 4374 } // namespace cc | 4375 } // namespace cc |
| OLD | NEW |