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

Side by Side Diff: cc/trees/layer_tree.h

Issue 2106753004: Introduce bottom controls to CC and let it respond to scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: findbug Created 4 years, 4 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
« no previous file with comments | « cc/output/compositor_frame_metadata.h ('k') | cc/trees/layer_tree.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_TREES_LAYER_TREE_H_ 5 #ifndef CC_TREES_LAYER_TREE_H_
6 #define CC_TREES_LAYER_TREE_H_ 6 #define CC_TREES_LAYER_TREE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include <unordered_map> 10 #include <unordered_map>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 return inputs_.event_listener_properties[static_cast<size_t>(event_class)]; 80 return inputs_.event_listener_properties[static_cast<size_t>(event_class)];
81 } 81 }
82 82
83 void SetViewportSize(const gfx::Size& device_viewport_size); 83 void SetViewportSize(const gfx::Size& device_viewport_size);
84 gfx::Size device_viewport_size() const { 84 gfx::Size device_viewport_size() const {
85 return inputs_.device_viewport_size; 85 return inputs_.device_viewport_size;
86 } 86 }
87 87
88 void SetTopControlsHeight(float height, bool shrink); 88 void SetTopControlsHeight(float height, bool shrink);
89 void SetTopControlsShownRatio(float ratio); 89 void SetTopControlsShownRatio(float ratio);
90 void SetBottomControlsHeight(float height);
90 91
91 void SetPageScaleFactorAndLimits(float page_scale_factor, 92 void SetPageScaleFactorAndLimits(float page_scale_factor,
92 float min_page_scale_factor, 93 float min_page_scale_factor,
93 float max_page_scale_factor); 94 float max_page_scale_factor);
94 float page_scale_factor() const { return inputs_.page_scale_factor; } 95 float page_scale_factor() const { return inputs_.page_scale_factor; }
95 96
96 void set_background_color(SkColor color) { inputs_.background_color = color; } 97 void set_background_color(SkColor color) { inputs_.background_color = color; }
97 SkColor background_color() const { return inputs_.background_color; } 98 SkColor background_color() const { return inputs_.background_color; }
98 99
99 void set_has_transparent_background(bool transparent) { 100 void set_has_transparent_background(bool transparent) {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 170
170 scoped_refptr<Layer> overscroll_elasticity_layer; 171 scoped_refptr<Layer> overscroll_elasticity_layer;
171 scoped_refptr<Layer> page_scale_layer; 172 scoped_refptr<Layer> page_scale_layer;
172 scoped_refptr<Layer> inner_viewport_scroll_layer; 173 scoped_refptr<Layer> inner_viewport_scroll_layer;
173 scoped_refptr<Layer> outer_viewport_scroll_layer; 174 scoped_refptr<Layer> outer_viewport_scroll_layer;
174 175
175 float top_controls_height; 176 float top_controls_height;
176 float top_controls_shown_ratio; 177 float top_controls_shown_ratio;
177 bool top_controls_shrink_blink_size; 178 bool top_controls_shrink_blink_size;
178 179
180 float bottom_controls_height;
181
179 float device_scale_factor; 182 float device_scale_factor;
180 float painted_device_scale_factor; 183 float painted_device_scale_factor;
181 float page_scale_factor; 184 float page_scale_factor;
182 float min_page_scale_factor; 185 float min_page_scale_factor;
183 float max_page_scale_factor; 186 float max_page_scale_factor;
184 187
185 SkColor background_color; 188 SkColor background_color;
186 bool has_transparent_background; 189 bool has_transparent_background;
187 190
188 LayerSelection selection; 191 LayerSelection selection;
(...skipping 28 matching lines...) Expand all
217 220
218 std::unique_ptr<AnimationHost> animation_host_; 221 std::unique_ptr<AnimationHost> animation_host_;
219 LayerTreeHost* layer_tree_host_; 222 LayerTreeHost* layer_tree_host_;
220 223
221 DISALLOW_COPY_AND_ASSIGN(LayerTree); 224 DISALLOW_COPY_AND_ASSIGN(LayerTree);
222 }; 225 };
223 226
224 } // namespace cc 227 } // namespace cc
225 228
226 #endif // CC_TREES_LAYER_TREE_H_ 229 #endif // CC_TREES_LAYER_TREE_H_
OLDNEW
« no previous file with comments | « cc/output/compositor_frame_metadata.h ('k') | cc/trees/layer_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698