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

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: vector->float in IPC 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
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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 const LayerTreeDebugState& debug_state() const { return debug_state_; } 245 const LayerTreeDebugState& debug_state() const { return debug_state_; }
246 246
247 bool has_gpu_rasterization_trigger() const { 247 bool has_gpu_rasterization_trigger() const {
248 return has_gpu_rasterization_trigger_; 248 return has_gpu_rasterization_trigger_;
249 } 249 }
250 void SetHasGpuRasterizationTrigger(bool has_trigger); 250 void SetHasGpuRasterizationTrigger(bool has_trigger);
251 251
252 void SetViewportSize(const gfx::Size& device_viewport_size); 252 void SetViewportSize(const gfx::Size& device_viewport_size);
253 void SetTopControlsHeight(float height, bool shrink); 253 void SetTopControlsHeight(float height, bool shrink);
254 void SetTopControlsShownRatio(float ratio); 254 void SetTopControlsShownRatio(float ratio);
255 void setBottomControlHeight(float height);
255 256
256 gfx::Size device_viewport_size() const { return device_viewport_size_; } 257 gfx::Size device_viewport_size() const { return device_viewport_size_; }
257 258
258 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); 259 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta);
259 void SetPageScaleFactorAndLimits(float page_scale_factor, 260 void SetPageScaleFactorAndLimits(float page_scale_factor,
260 float min_page_scale_factor, 261 float min_page_scale_factor,
261 float max_page_scale_factor); 262 float max_page_scale_factor);
262 float page_scale_factor() const { return page_scale_factor_; } 263 float page_scale_factor() const { return page_scale_factor_; }
263 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; } 264 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; }
264 265
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 536
536 base::WeakPtr<InputHandler> input_handler_weak_ptr_; 537 base::WeakPtr<InputHandler> input_handler_weak_ptr_;
537 538
538 const LayerTreeSettings settings_; 539 const LayerTreeSettings settings_;
539 LayerTreeDebugState debug_state_; 540 LayerTreeDebugState debug_state_;
540 541
541 gfx::Size device_viewport_size_; 542 gfx::Size device_viewport_size_;
542 bool top_controls_shrink_blink_size_; 543 bool top_controls_shrink_blink_size_;
543 float top_controls_height_; 544 float top_controls_height_;
544 float top_controls_shown_ratio_; 545 float top_controls_shown_ratio_;
546 float bottom_controls_height_;
545 float device_scale_factor_; 547 float device_scale_factor_;
546 float painted_device_scale_factor_; 548 float painted_device_scale_factor_;
547 549
548 bool visible_; 550 bool visible_;
549 551
550 float page_scale_factor_; 552 float page_scale_factor_;
551 float min_page_scale_factor_; 553 float min_page_scale_factor_;
552 float max_page_scale_factor_; 554 float max_page_scale_factor_;
553 gfx::Vector2dF elastic_overscroll_; 555 gfx::Vector2dF elastic_overscroll_;
554 bool has_gpu_rasterization_trigger_; 556 bool has_gpu_rasterization_trigger_;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 602
601 // Layer tree that hold layers. 603 // Layer tree that hold layers.
602 LayerTree layer_tree_; 604 LayerTree layer_tree_;
603 605
604 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 606 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
605 }; 607 };
606 608
607 } // namespace cc 609 } // namespace cc
608 610
609 #endif // CC_TREES_LAYER_TREE_HOST_H_ 611 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698