| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 EventListenerProperties event_listener_properties( | 87 EventListenerProperties event_listener_properties( |
| 88 EventListenerClass event_class) const { | 88 EventListenerClass event_class) const { |
| 89 return inputs_.event_listener_properties[static_cast<size_t>(event_class)]; | 89 return inputs_.event_listener_properties[static_cast<size_t>(event_class)]; |
| 90 } | 90 } |
| 91 | 91 |
| 92 void SetViewportSize(const gfx::Size& device_viewport_size); | 92 void SetViewportSize(const gfx::Size& device_viewport_size); |
| 93 gfx::Size device_viewport_size() const { | 93 gfx::Size device_viewport_size() const { |
| 94 return inputs_.device_viewport_size; | 94 return inputs_.device_viewport_size; |
| 95 } | 95 } |
| 96 | 96 |
| 97 void SetTopControlsHeight(float height, bool shrink); | 97 void SetBrowserControlsHeight(float height, bool shrink); |
| 98 void SetTopControlsShownRatio(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 | 105 |
| 106 void set_background_color(SkColor color) { inputs_.background_color = color; } | 106 void set_background_color(SkColor color) { inputs_.background_color = color; } |
| 107 SkColor background_color() const { return inputs_.background_color; } | 107 SkColor background_color() const { return inputs_.background_color; } |
| 108 | 108 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 | 244 |
| 245 scoped_refptr<Layer> root_layer; | 245 scoped_refptr<Layer> root_layer; |
| 246 | 246 |
| 247 scoped_refptr<Layer> overscroll_elasticity_layer; | 247 scoped_refptr<Layer> overscroll_elasticity_layer; |
| 248 scoped_refptr<Layer> page_scale_layer; | 248 scoped_refptr<Layer> page_scale_layer; |
| 249 scoped_refptr<Layer> inner_viewport_scroll_layer; | 249 scoped_refptr<Layer> inner_viewport_scroll_layer; |
| 250 scoped_refptr<Layer> outer_viewport_scroll_layer; | 250 scoped_refptr<Layer> outer_viewport_scroll_layer; |
| 251 | 251 |
| 252 float top_controls_height; | 252 float top_controls_height; |
| 253 float top_controls_shown_ratio; | 253 float top_controls_shown_ratio; |
| 254 bool top_controls_shrink_blink_size; | 254 bool browser_controls_shrink_blink_size; |
| 255 | 255 |
| 256 float bottom_controls_height; | 256 float bottom_controls_height; |
| 257 | 257 |
| 258 float device_scale_factor; | 258 float device_scale_factor; |
| 259 float painted_device_scale_factor; | 259 float painted_device_scale_factor; |
| 260 float page_scale_factor; | 260 float page_scale_factor; |
| 261 float min_page_scale_factor; | 261 float min_page_scale_factor; |
| 262 float max_page_scale_factor; | 262 float max_page_scale_factor; |
| 263 gfx::ColorSpace device_color_space; | 263 gfx::ColorSpace device_color_space; |
| 264 | 264 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 // external embedder. | 305 // external embedder. |
| 306 EnginePictureCache* engine_picture_cache_; | 306 EnginePictureCache* engine_picture_cache_; |
| 307 ClientPictureCache* client_picture_cache_; | 307 ClientPictureCache* client_picture_cache_; |
| 308 | 308 |
| 309 DISALLOW_COPY_AND_ASSIGN(LayerTree); | 309 DISALLOW_COPY_AND_ASSIGN(LayerTree); |
| 310 }; | 310 }; |
| 311 | 311 |
| 312 } // namespace cc | 312 } // namespace cc |
| 313 | 313 |
| 314 #endif // CC_TREES_LAYER_TREE_H_ | 314 #endif // CC_TREES_LAYER_TREE_H_ |
| OLD | NEW |