| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TOP_CONTROLS_MANAGER_H_ | 5 #ifndef CC_TOP_CONTROLS_MANAGER_H_ |
| 6 #define CC_TOP_CONTROLS_MANAGER_H_ | 6 #define CC_TOP_CONTROLS_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "cc/layer_impl.h" | 10 #include "cc/layer_impl.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void SetupAnimation(AnimationDirection direction); | 61 void SetupAnimation(AnimationDirection direction); |
| 62 void StartAnimationIfNecessary(); | 62 void StartAnimationIfNecessary(); |
| 63 bool IsAnimationCompleteAtTime(base::TimeTicks time); | 63 bool IsAnimationCompleteAtTime(base::TimeTicks time); |
| 64 | 64 |
| 65 TopControlsManagerClient* client_; // The client manages the lifecycle of | 65 TopControlsManagerClient* client_; // The client manages the lifecycle of |
| 66 // this. | 66 // this. |
| 67 | 67 |
| 68 scoped_ptr<KeyframedFloatAnimationCurve> top_controls_animation_; | 68 scoped_ptr<KeyframedFloatAnimationCurve> top_controls_animation_; |
| 69 AnimationDirection animation_direction_; | 69 AnimationDirection animation_direction_; |
| 70 bool is_overlay_mode_; | 70 bool is_overlay_mode_; |
| 71 bool scroll_readjustment_enabled_; | 71 bool in_scroll_gesture_; |
| 72 float controls_top_offset_; | 72 float controls_top_offset_; |
| 73 float content_top_offset_; | 73 float content_top_offset_; |
| 74 float top_controls_height_; | 74 float top_controls_height_; |
| 75 float previous_root_scroll_offset_; | 75 float previous_root_scroll_offset_; |
| 76 float scroll_start_offset_; |
| 76 | 77 |
| 77 DISALLOW_COPY_AND_ASSIGN(TopControlsManager); | 78 DISALLOW_COPY_AND_ASSIGN(TopControlsManager); |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 } // namespace cc | 81 } // namespace cc |
| 81 | 82 |
| 82 #endif // CC_TOP_CONTROLS_MANAGER_H_ | 83 #endif // CC_TOP_CONTROLS_MANAGER_H_ |
| OLD | NEW |