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 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1574 metadata.max_page_scale_factor = active_tree_->max_page_scale_factor(); | 1574 metadata.max_page_scale_factor = active_tree_->max_page_scale_factor(); |
1575 metadata.top_controls_height = | 1575 metadata.top_controls_height = |
1576 browser_controls_offset_manager_->TopControlsHeight(); | 1576 browser_controls_offset_manager_->TopControlsHeight(); |
1577 metadata.top_controls_shown_ratio = | 1577 metadata.top_controls_shown_ratio = |
1578 browser_controls_offset_manager_->TopControlsShownRatio(); | 1578 browser_controls_offset_manager_->TopControlsShownRatio(); |
1579 metadata.bottom_controls_height = | 1579 metadata.bottom_controls_height = |
1580 browser_controls_offset_manager_->BottomControlsHeight(); | 1580 browser_controls_offset_manager_->BottomControlsHeight(); |
1581 metadata.bottom_controls_shown_ratio = | 1581 metadata.bottom_controls_shown_ratio = |
1582 browser_controls_offset_manager_->BottomControlsShownRatio(); | 1582 browser_controls_offset_manager_->BottomControlsShownRatio(); |
1583 metadata.root_background_color = active_tree_->background_color(); | 1583 metadata.root_background_color = active_tree_->background_color(); |
| 1584 metadata.content_source_id = active_tree_->content_source_id(); |
1584 | 1585 |
1585 active_tree_->GetViewportSelection(&metadata.selection); | 1586 active_tree_->GetViewportSelection(&metadata.selection); |
1586 | 1587 |
1587 if (OuterViewportScrollLayer()) { | 1588 if (OuterViewportScrollLayer()) { |
1588 metadata.root_overflow_x_hidden = | 1589 metadata.root_overflow_x_hidden = |
1589 !OuterViewportScrollLayer()->user_scrollable_horizontal(); | 1590 !OuterViewportScrollLayer()->user_scrollable_horizontal(); |
1590 metadata.root_overflow_y_hidden = | 1591 metadata.root_overflow_y_hidden = |
1591 !OuterViewportScrollLayer()->user_scrollable_vertical(); | 1592 !OuterViewportScrollLayer()->user_scrollable_vertical(); |
1592 } | 1593 } |
1593 | 1594 |
(...skipping 2565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4159 worker_context_visibility_ = | 4160 worker_context_visibility_ = |
4160 worker_context->CacheController()->ClientBecameVisible(); | 4161 worker_context->CacheController()->ClientBecameVisible(); |
4161 } else { | 4162 } else { |
4162 worker_context->CacheController()->ClientBecameNotVisible( | 4163 worker_context->CacheController()->ClientBecameNotVisible( |
4163 std::move(worker_context_visibility_)); | 4164 std::move(worker_context_visibility_)); |
4164 } | 4165 } |
4165 } | 4166 } |
4166 } | 4167 } |
4167 | 4168 |
4168 } // namespace cc | 4169 } // namespace cc |
OLD | NEW |