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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 void set_background_color(SkColor color) { background_color_ = color; } | 301 void set_background_color(SkColor color) { background_color_ = color; } |
302 SkColor background_color() const { return background_color_; } | 302 SkColor background_color() const { return background_color_; } |
303 | 303 |
304 void set_has_transparent_background(bool transparent) { | 304 void set_has_transparent_background(bool transparent) { |
305 has_transparent_background_ = transparent; | 305 has_transparent_background_ = transparent; |
306 } | 306 } |
307 bool has_transparent_background() const { | 307 bool has_transparent_background() const { |
308 return has_transparent_background_; | 308 return has_transparent_background_; |
309 } | 309 } |
310 | 310 |
| 311 void set_is_fullscreen(bool is_fullscreen) { is_fullscreen_ = is_fullscreen; } |
| 312 bool is_fullscreen() const { return is_fullscreen_; } |
| 313 |
311 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 314 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
312 bool use_anchor, | 315 bool use_anchor, |
313 float scale, | 316 float scale, |
314 base::TimeDelta duration); | 317 base::TimeDelta duration); |
315 bool HasPendingPageScaleAnimation() const; | 318 bool HasPendingPageScaleAnimation() const; |
316 | 319 |
317 void SetDeviceScaleFactor(float device_scale_factor); | 320 void SetDeviceScaleFactor(float device_scale_factor); |
318 float device_scale_factor() const { return device_scale_factor_; } | 321 float device_scale_factor() const { return device_scale_factor_; } |
319 | 322 |
320 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); | 323 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 float max_page_scale_factor_ = 1.f; | 602 float max_page_scale_factor_ = 1.f; |
600 gfx::ColorSpace raster_color_space_; | 603 gfx::ColorSpace raster_color_space_; |
601 | 604 |
602 uint32_t content_source_id_; | 605 uint32_t content_source_id_; |
603 LocalSurfaceId local_surface_id_; | 606 LocalSurfaceId local_surface_id_; |
604 bool defer_commits_ = false; | 607 bool defer_commits_ = false; |
605 | 608 |
606 SkColor background_color_ = SK_ColorWHITE; | 609 SkColor background_color_ = SK_ColorWHITE; |
607 bool has_transparent_background_ = false; | 610 bool has_transparent_background_ = false; |
608 | 611 |
| 612 bool is_fullscreen_ = false; |
| 613 |
609 LayerSelection selection_; | 614 LayerSelection selection_; |
610 | 615 |
611 gfx::Size device_viewport_size_; | 616 gfx::Size device_viewport_size_; |
612 | 617 |
613 bool have_scroll_event_handlers_ = false; | 618 bool have_scroll_event_handlers_ = false; |
614 EventListenerProperties event_listener_properties_[static_cast<size_t>( | 619 EventListenerProperties event_listener_properties_[static_cast<size_t>( |
615 EventListenerClass::kNumClasses)]; | 620 EventListenerClass::kNumClasses)]; |
616 | 621 |
617 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 622 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
618 | 623 |
(...skipping 30 matching lines...) Expand all Loading... |
649 | 654 |
650 std::vector<std::pair<PaintImage, base::Callback<void(bool)>>> | 655 std::vector<std::pair<PaintImage, base::Callback<void(bool)>>> |
651 queued_image_decodes_; | 656 queued_image_decodes_; |
652 | 657 |
653 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 658 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
654 }; | 659 }; |
655 | 660 |
656 } // namespace cc | 661 } // namespace cc |
657 | 662 |
658 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 663 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |