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

Side by Side Diff: cc/input/browser_controls_offset_manager.h

Issue 2442473002: Controls offsets computed if either top or bottom are showing (Closed)
Patch Set: remove duped logic Created 4 years, 1 month 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
« no previous file with comments | « no previous file | cc/input/browser_controls_offset_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_H_ 5 #ifndef CC_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_H_
6 #define CC_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_H_ 6 #define CC_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 float animation_start_value_; 88 float animation_start_value_;
89 base::TimeTicks animation_stop_time_; 89 base::TimeTicks animation_stop_time_;
90 float animation_stop_value_; 90 float animation_stop_value_;
91 AnimationDirection animation_direction_; 91 AnimationDirection animation_direction_;
92 92
93 BrowserControlsState permitted_state_; 93 BrowserControlsState permitted_state_;
94 94
95 // Accumulated scroll delta since last baseline reset 95 // Accumulated scroll delta since last baseline reset
96 float accumulated_scroll_delta_; 96 float accumulated_scroll_delta_;
97 97
98 // Content offset when last baseline reset occurred 98 // Content offset when last baseline reset occurred.
99 float baseline_content_offset_; 99 float baseline_top_content_offset_;
100 float baseline_bottom_content_offset_;
100 101
101 // The percent height of the visible control such that it must be shown 102 // The percent height of the visible control such that it must be shown
102 // when the user stops the scroll. 103 // when the user stops the scroll.
103 float controls_show_threshold_; 104 float controls_show_threshold_;
104 105
105 // The percent height of the visible control such that it must be hidden 106 // The percent height of the visible control such that it must be hidden
106 // when the user stops the scroll. 107 // when the user stops the scroll.
107 float controls_hide_threshold_; 108 float controls_hide_threshold_;
108 109
109 bool pinch_gesture_active_; 110 bool pinch_gesture_active_;
110 111
111 DISALLOW_COPY_AND_ASSIGN(BrowserControlsOffsetManager); 112 DISALLOW_COPY_AND_ASSIGN(BrowserControlsOffsetManager);
112 }; 113 };
113 114
114 } // namespace cc 115 } // namespace cc
115 116
116 #endif // CC_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_H_ 117 #endif // CC_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/input/browser_controls_offset_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698