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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 scoped_refptr<Layer> outer_viewport_scroll_layer); | 200 scoped_refptr<Layer> outer_viewport_scroll_layer); |
201 Layer* inner_viewport_scroll_layer() const { | 201 Layer* inner_viewport_scroll_layer() const { |
202 return inner_viewport_scroll_layer_.get(); | 202 return inner_viewport_scroll_layer_.get(); |
203 } | 203 } |
204 Layer* outer_viewport_scroll_layer() const { | 204 Layer* outer_viewport_scroll_layer() const { |
205 return outer_viewport_scroll_layer_.get(); | 205 return outer_viewport_scroll_layer_.get(); |
206 } | 206 } |
207 | 207 |
208 void RegisterSelection(const LayerSelection& selection); | 208 void RegisterSelection(const LayerSelection& selection); |
209 | 209 |
| 210 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } |
| 211 void SetHaveWheelEventHandlers(bool have_event_handlers); |
| 212 |
210 const LayerTreeSettings& settings() const { return settings_; } | 213 const LayerTreeSettings& settings() const { return settings_; } |
211 | 214 |
212 void SetDebugState(const LayerTreeDebugState& debug_state); | 215 void SetDebugState(const LayerTreeDebugState& debug_state); |
213 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 216 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
214 | 217 |
215 bool has_gpu_rasterization_trigger() const { | 218 bool has_gpu_rasterization_trigger() const { |
216 return has_gpu_rasterization_trigger_; | 219 return has_gpu_rasterization_trigger_; |
217 } | 220 } |
218 void SetHasGpuRasterizationTrigger(bool has_trigger); | 221 void SetHasGpuRasterizationTrigger(bool has_trigger); |
219 | 222 |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 float min_page_scale_factor_; | 499 float min_page_scale_factor_; |
497 float max_page_scale_factor_; | 500 float max_page_scale_factor_; |
498 gfx::Vector2dF elastic_overscroll_; | 501 gfx::Vector2dF elastic_overscroll_; |
499 bool has_gpu_rasterization_trigger_; | 502 bool has_gpu_rasterization_trigger_; |
500 bool content_is_suitable_for_gpu_rasterization_; | 503 bool content_is_suitable_for_gpu_rasterization_; |
501 bool gpu_rasterization_histogram_recorded_; | 504 bool gpu_rasterization_histogram_recorded_; |
502 | 505 |
503 SkColor background_color_; | 506 SkColor background_color_; |
504 bool has_transparent_background_; | 507 bool has_transparent_background_; |
505 | 508 |
| 509 bool have_wheel_event_handlers_; |
| 510 |
506 scoped_ptr<AnimationRegistrar> animation_registrar_; | 511 scoped_ptr<AnimationRegistrar> animation_registrar_; |
507 scoped_ptr<AnimationHost> animation_host_; | 512 scoped_ptr<AnimationHost> animation_host_; |
508 | 513 |
509 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 514 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
510 | 515 |
511 // If set, then page scale animation has completed, but the client hasn't been | 516 // If set, then page scale animation has completed, but the client hasn't been |
512 // notified about it yet. | 517 // notified about it yet. |
513 bool did_complete_scale_animation_; | 518 bool did_complete_scale_animation_; |
514 | 519 |
515 bool in_paint_layer_contents_; | 520 bool in_paint_layer_contents_; |
(...skipping 22 matching lines...) Expand all Loading... |
538 | 543 |
539 uint32_t surface_id_namespace_; | 544 uint32_t surface_id_namespace_; |
540 uint32_t next_surface_sequence_; | 545 uint32_t next_surface_sequence_; |
541 | 546 |
542 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 547 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
543 }; | 548 }; |
544 | 549 |
545 } // namespace cc | 550 } // namespace cc |
546 | 551 |
547 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 552 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |