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

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: change to height and ratio 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 546
546 base::WeakPtr<InputHandler> input_handler_weak_ptr_; 547 base::WeakPtr<InputHandler> input_handler_weak_ptr_;
547 548
548 const LayerTreeSettings settings_; 549 const LayerTreeSettings settings_;
549 LayerTreeDebugState debug_state_; 550 LayerTreeDebugState debug_state_;
550 551
551 gfx::Size device_viewport_size_; 552 gfx::Size device_viewport_size_;
552 bool top_controls_shrink_blink_size_; 553 bool top_controls_shrink_blink_size_;
553 float top_controls_height_; 554 float top_controls_height_;
554 float top_controls_shown_ratio_; 555 float top_controls_shown_ratio_;
556 float bottom_controls_height_;
555 float device_scale_factor_; 557 float device_scale_factor_;
556 float painted_device_scale_factor_; 558 float painted_device_scale_factor_;
557 559
558 bool visible_; 560 bool visible_;
559 561
560 float page_scale_factor_; 562 float page_scale_factor_;
561 float min_page_scale_factor_; 563 float min_page_scale_factor_;
562 float max_page_scale_factor_; 564 float max_page_scale_factor_;
563 gfx::Vector2dF elastic_overscroll_; 565 gfx::Vector2dF elastic_overscroll_;
564 bool has_gpu_rasterization_trigger_; 566 bool has_gpu_rasterization_trigger_;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 618
617 uint32_t surface_id_namespace_; 619 uint32_t surface_id_namespace_;
618 uint32_t next_surface_sequence_; 620 uint32_t next_surface_sequence_;
619 621
620 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 622 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
621 }; 623 };
622 624
623 } // namespace cc 625 } // namespace cc
624 626
625 #endif // CC_TREES_LAYER_TREE_HOST_H_ 627 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698