| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 scoped_refptr<Layer> outer_viewport_scroll_layer); | 217 scoped_refptr<Layer> outer_viewport_scroll_layer); |
| 218 Layer* inner_viewport_scroll_layer() const { | 218 Layer* inner_viewport_scroll_layer() const { |
| 219 return inner_viewport_scroll_layer_.get(); | 219 return inner_viewport_scroll_layer_.get(); |
| 220 } | 220 } |
| 221 Layer* outer_viewport_scroll_layer() const { | 221 Layer* outer_viewport_scroll_layer() const { |
| 222 return outer_viewport_scroll_layer_.get(); | 222 return outer_viewport_scroll_layer_.get(); |
| 223 } | 223 } |
| 224 | 224 |
| 225 void RegisterSelection(const LayerSelection& selection); | 225 void RegisterSelection(const LayerSelection& selection); |
| 226 | 226 |
| 227 bool have_scroll_event_handlers() const { |
| 228 return have_scroll_event_handlers_; |
| 229 } |
| 230 void SetHaveScrollEventHandlers(bool have_event_handlers); |
| 231 |
| 227 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } | 232 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } |
| 228 void SetHaveWheelEventHandlers(bool have_event_handlers); | 233 void SetHaveWheelEventHandlers(bool have_event_handlers); |
| 229 | 234 |
| 230 const LayerTreeSettings& settings() const { return settings_; } | 235 const LayerTreeSettings& settings() const { return settings_; } |
| 231 | 236 |
| 232 void SetDebugState(const LayerTreeDebugState& debug_state); | 237 void SetDebugState(const LayerTreeDebugState& debug_state); |
| 233 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 238 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
| 234 | 239 |
| 235 bool has_gpu_rasterization_trigger() const { | 240 bool has_gpu_rasterization_trigger() const { |
| 236 return has_gpu_rasterization_trigger_; | 241 return has_gpu_rasterization_trigger_; |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 float min_page_scale_factor_; | 530 float min_page_scale_factor_; |
| 526 float max_page_scale_factor_; | 531 float max_page_scale_factor_; |
| 527 gfx::Vector2dF elastic_overscroll_; | 532 gfx::Vector2dF elastic_overscroll_; |
| 528 bool has_gpu_rasterization_trigger_; | 533 bool has_gpu_rasterization_trigger_; |
| 529 bool content_is_suitable_for_gpu_rasterization_; | 534 bool content_is_suitable_for_gpu_rasterization_; |
| 530 bool gpu_rasterization_histogram_recorded_; | 535 bool gpu_rasterization_histogram_recorded_; |
| 531 | 536 |
| 532 SkColor background_color_; | 537 SkColor background_color_; |
| 533 bool has_transparent_background_; | 538 bool has_transparent_background_; |
| 534 | 539 |
| 540 bool have_scroll_event_handlers_; |
| 535 bool have_wheel_event_handlers_; | 541 bool have_wheel_event_handlers_; |
| 536 | 542 |
| 537 scoped_ptr<AnimationRegistrar> animation_registrar_; | 543 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 538 scoped_ptr<AnimationHost> animation_host_; | 544 scoped_ptr<AnimationHost> animation_host_; |
| 539 | 545 |
| 540 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 546 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 541 | 547 |
| 542 // If set, then page scale animation has completed, but the client hasn't been | 548 // If set, then page scale animation has completed, but the client hasn't been |
| 543 // notified about it yet. | 549 // notified about it yet. |
| 544 bool did_complete_scale_animation_; | 550 bool did_complete_scale_animation_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 569 | 575 |
| 570 uint32_t surface_id_namespace_; | 576 uint32_t surface_id_namespace_; |
| 571 uint32_t next_surface_sequence_; | 577 uint32_t next_surface_sequence_; |
| 572 | 578 |
| 573 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 579 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 574 }; | 580 }; |
| 575 | 581 |
| 576 } // namespace cc | 582 } // namespace cc |
| 577 | 583 |
| 578 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 584 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |