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

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

Issue 814083004: Notify main-thread of top controls state changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused functions Created 5 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 const LayerTreeDebugState& debug_state() const { return debug_state_; } 203 const LayerTreeDebugState& debug_state() const { return debug_state_; }
204 204
205 bool has_gpu_rasterization_trigger() const { 205 bool has_gpu_rasterization_trigger() const {
206 return has_gpu_rasterization_trigger_; 206 return has_gpu_rasterization_trigger_;
207 } 207 }
208 void SetHasGpuRasterizationTrigger(bool has_trigger); 208 void SetHasGpuRasterizationTrigger(bool has_trigger);
209 bool UseGpuRasterization() const; 209 bool UseGpuRasterization() const;
210 GpuRasterizationStatus GetGpuRasterizationStatus() const; 210 GpuRasterizationStatus GetGpuRasterizationStatus() const;
211 211
212 void SetViewportSize(const gfx::Size& device_viewport_size); 212 void SetViewportSize(const gfx::Size& device_viewport_size);
213 void SetTopControlsShrinkBlinkSize(bool shrink); 213 void SetTopControlsHeight(float height, bool shrink);
214 void SetTopControlsHeight(float height);
215 void SetTopControlsShownRatio(float ratio); 214 void SetTopControlsShownRatio(float ratio);
216 215
217 gfx::Size device_viewport_size() const { return device_viewport_size_; } 216 gfx::Size device_viewport_size() const { return device_viewport_size_; }
218 217
219 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); 218 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta);
220 void SetPageScaleFactorAndLimits(float page_scale_factor, 219 void SetPageScaleFactorAndLimits(float page_scale_factor,
221 float min_page_scale_factor, 220 float min_page_scale_factor,
222 float max_page_scale_factor); 221 float max_page_scale_factor);
223 float page_scale_factor() const { return page_scale_factor_; } 222 float page_scale_factor() const { return page_scale_factor_; }
224 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; } 223 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; }
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 479
481 uint32_t surface_id_namespace_; 480 uint32_t surface_id_namespace_;
482 uint32_t next_surface_sequence_; 481 uint32_t next_surface_sequence_;
483 482
484 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 483 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
485 }; 484 };
486 485
487 } // namespace cc 486 } // namespace cc
488 487
489 #endif // CC_TREES_LAYER_TREE_HOST_H_ 488 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698