Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: cc/top_controls_manager.h

Issue 11953040: Add a scroll threshold/marker to control hiding/showing top controls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/top_controls_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | cc/top_controls_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698