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 #ifndef CC_TREES_LAYER_TREE_HOST_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 #include <list> | 9 #include <list> |
10 #include <set> | 10 #include <set> |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 void SetTopControlsHeight(float height); | 216 void SetTopControlsHeight(float height); |
217 void SetTopControlsContentOffset(float offset); | 217 void SetTopControlsContentOffset(float offset); |
218 | 218 |
219 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 219 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
220 | 220 |
221 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); | 221 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); |
222 void SetPageScaleFactorAndLimits(float page_scale_factor, | 222 void SetPageScaleFactorAndLimits(float page_scale_factor, |
223 float min_page_scale_factor, | 223 float min_page_scale_factor, |
224 float max_page_scale_factor); | 224 float max_page_scale_factor); |
225 float page_scale_factor() const { return page_scale_factor_; } | 225 float page_scale_factor() const { return page_scale_factor_; } |
| 226 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; } |
226 | 227 |
227 SkColor background_color() const { return background_color_; } | 228 SkColor background_color() const { return background_color_; } |
228 void set_background_color(SkColor color) { background_color_ = color; } | 229 void set_background_color(SkColor color) { background_color_ = color; } |
229 | 230 |
230 void set_has_transparent_background(bool transparent) { | 231 void set_has_transparent_background(bool transparent) { |
231 has_transparent_background_ = transparent; | 232 has_transparent_background_ = transparent; |
232 } | 233 } |
233 | 234 |
234 void SetOverhangBitmap(const SkBitmap& bitmap); | 235 void SetOverhangBitmap(const SkBitmap& bitmap); |
235 | 236 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 float top_controls_content_offset_; | 422 float top_controls_content_offset_; |
422 float device_scale_factor_; | 423 float device_scale_factor_; |
423 | 424 |
424 bool visible_; | 425 bool visible_; |
425 | 426 |
426 base::OneShotTimer<LayerTreeHost> rate_limit_timer_; | 427 base::OneShotTimer<LayerTreeHost> rate_limit_timer_; |
427 | 428 |
428 float page_scale_factor_; | 429 float page_scale_factor_; |
429 float min_page_scale_factor_; | 430 float min_page_scale_factor_; |
430 float max_page_scale_factor_; | 431 float max_page_scale_factor_; |
| 432 gfx::Vector2dF elastic_overscroll_; |
431 bool has_gpu_rasterization_trigger_; | 433 bool has_gpu_rasterization_trigger_; |
432 bool content_is_suitable_for_gpu_rasterization_; | 434 bool content_is_suitable_for_gpu_rasterization_; |
433 bool gpu_rasterization_histogram_recorded_; | 435 bool gpu_rasterization_histogram_recorded_; |
434 | 436 |
435 SkColor background_color_; | 437 SkColor background_color_; |
436 bool has_transparent_background_; | 438 bool has_transparent_background_; |
437 | 439 |
438 // If set, this texture is used to fill in the parts of the screen not | 440 // If set, this texture is used to fill in the parts of the screen not |
439 // covered by layers. | 441 // covered by layers. |
440 scoped_ptr<ScopedUIResource> overhang_ui_resource_; | 442 scoped_ptr<ScopedUIResource> overhang_ui_resource_; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 | 483 |
482 uint32_t surface_id_namespace_; | 484 uint32_t surface_id_namespace_; |
483 uint32_t next_surface_sequence_; | 485 uint32_t next_surface_sequence_; |
484 | 486 |
485 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 487 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
486 }; | 488 }; |
487 | 489 |
488 } // namespace cc | 490 } // namespace cc |
489 | 491 |
490 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 492 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |