OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 bool HasTransformAnimationThatInflatesBounds(const LayerImpl* layer) const; | 429 bool HasTransformAnimationThatInflatesBounds(const LayerImpl* layer) const; |
430 bool HasAnimationThatInflatesBounds(const LayerImpl* layer) const; | 430 bool HasAnimationThatInflatesBounds(const LayerImpl* layer) const; |
431 | 431 |
432 bool FilterAnimationBoundsForBox(const LayerImpl* layer, | 432 bool FilterAnimationBoundsForBox(const LayerImpl* layer, |
433 const gfx::BoxF& box, | 433 const gfx::BoxF& box, |
434 gfx::BoxF* bounds) const; | 434 gfx::BoxF* bounds) const; |
435 bool TransformAnimationBoundsForBox(const LayerImpl* layer, | 435 bool TransformAnimationBoundsForBox(const LayerImpl* layer, |
436 const gfx::BoxF& box, | 436 const gfx::BoxF& box, |
437 gfx::BoxF* bounds) const; | 437 gfx::BoxF* bounds) const; |
438 | 438 |
| 439 bool have_scroll_event_handlers() const { |
| 440 return have_scroll_event_handlers_; |
| 441 } |
| 442 void set_have_scroll_event_handlers(bool have_event_handlers) { |
| 443 have_scroll_event_handlers_ = have_event_handlers; |
| 444 } |
| 445 |
439 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } | 446 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } |
440 void set_have_wheel_event_handlers(bool have_event_handlers) { | 447 void set_have_wheel_event_handlers(bool have_event_handlers) { |
441 have_wheel_event_handlers_ = have_event_handlers; | 448 have_wheel_event_handlers_ = have_event_handlers; |
442 } | 449 } |
443 | 450 |
444 protected: | 451 protected: |
445 explicit LayerTreeImpl( | 452 explicit LayerTreeImpl( |
446 LayerTreeHostImpl* layer_tree_host_impl, | 453 LayerTreeHostImpl* layer_tree_host_impl, |
447 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, | 454 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, |
448 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, | 455 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 | 528 |
522 bool has_ever_been_drawn_; | 529 bool has_ever_been_drawn_; |
523 | 530 |
524 std::vector<scoped_ptr<SwapPromise>> swap_promise_list_; | 531 std::vector<scoped_ptr<SwapPromise>> swap_promise_list_; |
525 std::vector<scoped_ptr<SwapPromise>> pinned_swap_promise_list_; | 532 std::vector<scoped_ptr<SwapPromise>> pinned_swap_promise_list_; |
526 | 533 |
527 UIResourceRequestQueue ui_resource_request_queue_; | 534 UIResourceRequestQueue ui_resource_request_queue_; |
528 | 535 |
529 int render_surface_layer_list_id_; | 536 int render_surface_layer_list_id_; |
530 | 537 |
| 538 bool have_scroll_event_handlers_; |
531 bool have_wheel_event_handlers_; | 539 bool have_wheel_event_handlers_; |
532 | 540 |
533 // Whether or not Blink's viewport size was shrunk by the height of the top | 541 // Whether or not Blink's viewport size was shrunk by the height of the top |
534 // controls at the time of the last layout. | 542 // controls at the time of the last layout. |
535 bool top_controls_shrink_blink_size_; | 543 bool top_controls_shrink_blink_size_; |
536 float top_controls_height_; | 544 float top_controls_height_; |
537 | 545 |
538 // The amount that the top controls are shown from 0 (hidden) to 1 (fully | 546 // The amount that the top controls are shown from 0 (hidden) to 1 (fully |
539 // shown). | 547 // shown). |
540 scoped_refptr<SyncedTopControls> top_controls_shown_ratio_; | 548 scoped_refptr<SyncedTopControls> top_controls_shown_ratio_; |
541 | 549 |
542 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 550 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
543 | 551 |
544 private: | 552 private: |
545 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 553 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
546 }; | 554 }; |
547 | 555 |
548 } // namespace cc | 556 } // namespace cc |
549 | 557 |
550 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 558 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |