| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CC_TREES_LAYER_TREE_H_ | 5 #ifndef CC_TREES_LAYER_TREE_H_ |
| 6 #define CC_TREES_LAYER_TREE_H_ | 6 #define CC_TREES_LAYER_TREE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <unordered_map> | 9 #include <unordered_map> |
| 10 #include <unordered_set> | 10 #include <unordered_set> |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 95 } |
| 96 | 96 |
| 97 void SetBrowserControlsHeight(float height, bool shrink); | 97 void SetBrowserControlsHeight(float height, bool shrink); |
| 98 void SetBrowserControlsShownRatio(float ratio); | 98 void SetBrowserControlsShownRatio(float ratio); |
| 99 void SetBottomControlsHeight(float height); | 99 void SetBottomControlsHeight(float height); |
| 100 | 100 |
| 101 void SetPageScaleFactorAndLimits(float page_scale_factor, | 101 void SetPageScaleFactorAndLimits(float page_scale_factor, |
| 102 float min_page_scale_factor, | 102 float min_page_scale_factor, |
| 103 float max_page_scale_factor); | 103 float max_page_scale_factor); |
| 104 float page_scale_factor() const { return inputs_.page_scale_factor; } | 104 float page_scale_factor() const { return inputs_.page_scale_factor; } |
| 105 float min_page_scale_factor() const { return inputs_.min_page_scale_factor; } |
| 106 float max_page_scale_factor() const { return inputs_.max_page_scale_factor; } |
| 105 | 107 |
| 106 void set_background_color(SkColor color) { inputs_.background_color = color; } | 108 void set_background_color(SkColor color) { inputs_.background_color = color; } |
| 107 SkColor background_color() const { return inputs_.background_color; } | 109 SkColor background_color() const { return inputs_.background_color; } |
| 108 | 110 |
| 109 void set_has_transparent_background(bool transparent) { | 111 void set_has_transparent_background(bool transparent) { |
| 110 inputs_.has_transparent_background = transparent; | 112 inputs_.has_transparent_background = transparent; |
| 111 } | 113 } |
| 112 | 114 |
| 113 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 115 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
| 114 bool use_anchor, | 116 bool use_anchor, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; } | 176 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; } |
| 175 | 177 |
| 176 void UpdateHudLayer(bool show_hud_info); | 178 void UpdateHudLayer(bool show_hud_info); |
| 177 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } | 179 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } |
| 178 | 180 |
| 179 virtual void SetNeedsFullTreeSync(); | 181 virtual void SetNeedsFullTreeSync(); |
| 180 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } | 182 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } |
| 181 | 183 |
| 182 void SetPropertyTreesNeedRebuild(); | 184 void SetPropertyTreesNeedRebuild(); |
| 183 | 185 |
| 184 void PushPropertiesTo(LayerTreeImpl* tree_impl); | 186 void PushPropertiesTo(LayerTreeImpl* tree_impl, |
| 187 float unapplied_page_scale_delta); |
| 185 | 188 |
| 186 void ToProtobuf(proto::LayerTree* proto, bool inputs_only); | 189 void ToProtobuf(proto::LayerTree* proto, bool inputs_only); |
| 187 void FromProtobuf(const proto::LayerTree& proto); | 190 void FromProtobuf(const proto::LayerTree& proto); |
| 188 | 191 |
| 189 AnimationHost* animation_host() const { return animation_host_.get(); } | 192 AnimationHost* animation_host() const { return animation_host_.get(); } |
| 190 | 193 |
| 191 Layer* LayerByElementId(ElementId element_id) const; | 194 Layer* LayerByElementId(ElementId element_id) const; |
| 192 void RegisterElement(ElementId element_id, | 195 void RegisterElement(ElementId element_id, |
| 193 ElementListType list_type, | 196 ElementListType list_type, |
| 194 Layer* layer); | 197 Layer* layer); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 // external embedder. | 308 // external embedder. |
| 306 EnginePictureCache* engine_picture_cache_; | 309 EnginePictureCache* engine_picture_cache_; |
| 307 ClientPictureCache* client_picture_cache_; | 310 ClientPictureCache* client_picture_cache_; |
| 308 | 311 |
| 309 DISALLOW_COPY_AND_ASSIGN(LayerTree); | 312 DISALLOW_COPY_AND_ASSIGN(LayerTree); |
| 310 }; | 313 }; |
| 311 | 314 |
| 312 } // namespace cc | 315 } // namespace cc |
| 313 | 316 |
| 314 #endif // CC_TREES_LAYER_TREE_H_ | 317 #endif // CC_TREES_LAYER_TREE_H_ |
| OLD | NEW |