| 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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 void set_top_controls_height(float top_controls_height); | 412 void set_top_controls_height(float top_controls_height); |
| 413 float top_controls_height() const { return top_controls_height_; } | 413 float top_controls_height() const { return top_controls_height_; } |
| 414 void PushTopControlsFromMainThread(float top_controls_shown_ratio); | 414 void PushTopControlsFromMainThread(float top_controls_shown_ratio); |
| 415 void set_bottom_controls_height(float bottom_controls_height); | 415 void set_bottom_controls_height(float bottom_controls_height); |
| 416 float bottom_controls_height() const { return bottom_controls_height_; } | 416 float bottom_controls_height() const { return bottom_controls_height_; } |
| 417 | 417 |
| 418 void SetPendingPageScaleAnimation( | 418 void SetPendingPageScaleAnimation( |
| 419 std::unique_ptr<PendingPageScaleAnimation> pending_animation); | 419 std::unique_ptr<PendingPageScaleAnimation> pending_animation); |
| 420 std::unique_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); | 420 std::unique_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); |
| 421 | 421 |
| 422 void DidUpdateScrollOffset(int layer_id, int transform_id); | 422 void DidUpdateScrollOffset(int layer_id); |
| 423 void DidUpdateScrollState(int layer_id); | 423 void DidUpdateScrollState(int layer_id); |
| 424 | 424 |
| 425 void ScrollAnimationAbort(bool needs_completion); | 425 void ScrollAnimationAbort(bool needs_completion); |
| 426 | 426 |
| 427 bool have_scroll_event_handlers() const { | 427 bool have_scroll_event_handlers() const { |
| 428 return have_scroll_event_handlers_; | 428 return have_scroll_event_handlers_; |
| 429 } | 429 } |
| 430 void set_have_scroll_event_handlers(bool have_event_handlers) { | 430 void set_have_scroll_event_handlers(bool have_event_handlers) { |
| 431 have_scroll_event_handlers_ = have_event_handlers; | 431 have_scroll_event_handlers_ = have_event_handlers; |
| 432 } | 432 } |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 | 552 |
| 553 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 553 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 554 | 554 |
| 555 private: | 555 private: |
| 556 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 556 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 557 }; | 557 }; |
| 558 | 558 |
| 559 } // namespace cc | 559 } // namespace cc |
| 560 | 560 |
| 561 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 561 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |