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

Side by Side Diff: cc/trees/layer_tree_host.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: adjust documentations Created 4 years, 5 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 const LayerTreeDebugState& debug_state() const { return debug_state_; } 244 const LayerTreeDebugState& debug_state() const { return debug_state_; }
245 245
246 bool has_gpu_rasterization_trigger() const { 246 bool has_gpu_rasterization_trigger() const {
247 return has_gpu_rasterization_trigger_; 247 return has_gpu_rasterization_trigger_;
248 } 248 }
249 void SetHasGpuRasterizationTrigger(bool has_trigger); 249 void SetHasGpuRasterizationTrigger(bool has_trigger);
250 250
251 void SetViewportSize(const gfx::Size& device_viewport_size); 251 void SetViewportSize(const gfx::Size& device_viewport_size);
252 void SetTopControlsHeight(float height, bool shrink); 252 void SetTopControlsHeight(float height, bool shrink);
253 void SetTopControlsShownRatio(float ratio); 253 void SetTopControlsShownRatio(float ratio);
254 void setBottomControlHeight(float height);
254 255
255 gfx::Size device_viewport_size() const { return device_viewport_size_; } 256 gfx::Size device_viewport_size() const { return device_viewport_size_; }
256 257
257 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); 258 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta);
258 void SetPageScaleFactorAndLimits(float page_scale_factor, 259 void SetPageScaleFactorAndLimits(float page_scale_factor,
259 float min_page_scale_factor, 260 float min_page_scale_factor,
260 float max_page_scale_factor); 261 float max_page_scale_factor);
261 float page_scale_factor() const { return page_scale_factor_; } 262 float page_scale_factor() const { return page_scale_factor_; }
262 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; } 263 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; }
263 264
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 540
540 base::WeakPtr<InputHandler> input_handler_weak_ptr_; 541 base::WeakPtr<InputHandler> input_handler_weak_ptr_;
541 542
542 const LayerTreeSettings settings_; 543 const LayerTreeSettings settings_;
543 LayerTreeDebugState debug_state_; 544 LayerTreeDebugState debug_state_;
544 545
545 gfx::Size device_viewport_size_; 546 gfx::Size device_viewport_size_;
546 bool top_controls_shrink_blink_size_; 547 bool top_controls_shrink_blink_size_;
547 float top_controls_height_; 548 float top_controls_height_;
548 float top_controls_shown_ratio_; 549 float top_controls_shown_ratio_;
550 float bottom_controls_height_;
549 float device_scale_factor_; 551 float device_scale_factor_;
550 float painted_device_scale_factor_; 552 float painted_device_scale_factor_;
551 553
552 bool visible_; 554 bool visible_;
553 555
554 float page_scale_factor_; 556 float page_scale_factor_;
555 float min_page_scale_factor_; 557 float min_page_scale_factor_;
556 float max_page_scale_factor_; 558 float max_page_scale_factor_;
557 gfx::Vector2dF elastic_overscroll_; 559 gfx::Vector2dF elastic_overscroll_;
558 bool has_gpu_rasterization_trigger_; 560 bool has_gpu_rasterization_trigger_;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 608
607 uint32_t surface_id_namespace_; 609 uint32_t surface_id_namespace_;
608 uint32_t next_surface_sequence_; 610 uint32_t next_surface_sequence_;
609 611
610 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 612 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
611 }; 613 };
612 614
613 } // namespace cc 615 } // namespace cc
614 616
615 #endif // CC_TREES_LAYER_TREE_HOST_H_ 617 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698