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

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

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Update input_messages with the order in the enum. Created 3 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class Layer; 53 class Layer;
54 class LayerTreeHostClient; 54 class LayerTreeHostClient;
55 class LayerTreeHostImpl; 55 class LayerTreeHostImpl;
56 class LayerTreeHostImplClient; 56 class LayerTreeHostImplClient;
57 class LayerTreeHostSingleThreadClient; 57 class LayerTreeHostSingleThreadClient;
58 class LayerTreeMutator; 58 class LayerTreeMutator;
59 class MutatorEvents; 59 class MutatorEvents;
60 class MutatorHost; 60 class MutatorHost;
61 struct PendingPageScaleAnimation; 61 struct PendingPageScaleAnimation;
62 class RenderingStatsInstrumentation; 62 class RenderingStatsInstrumentation;
63 struct ScrollBoundaryBehavior;
63 class TaskGraphRunner; 64 class TaskGraphRunner;
64 class UIResourceManager; 65 class UIResourceManager;
65 struct RenderingStats; 66 struct RenderingStats;
66 struct ScrollAndScaleSet; 67 struct ScrollAndScaleSet;
67 68
68 class CC_EXPORT LayerTreeHost 69 class CC_EXPORT LayerTreeHost
69 : public NON_EXPORTED_BASE(viz::SurfaceReferenceOwner), 70 : public NON_EXPORTED_BASE(viz::SurfaceReferenceOwner),
70 public NON_EXPORTED_BASE(MutatorHostClient) { 71 public NON_EXPORTED_BASE(MutatorHostClient) {
71 public: 72 public:
72 struct CC_EXPORT InitParams { 73 struct CC_EXPORT InitParams {
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 return event_listener_properties_[static_cast<size_t>(event_class)]; 286 return event_listener_properties_[static_cast<size_t>(event_class)];
286 } 287 }
287 288
288 void SetViewportSize(const gfx::Size& device_viewport_size); 289 void SetViewportSize(const gfx::Size& device_viewport_size);
289 gfx::Size device_viewport_size() const { return device_viewport_size_; } 290 gfx::Size device_viewport_size() const { return device_viewport_size_; }
290 291
291 void SetBrowserControlsHeight(float top_height, 292 void SetBrowserControlsHeight(float top_height,
292 float bottom_height, 293 float bottom_height,
293 bool shrink); 294 bool shrink);
294 void SetBrowserControlsShownRatio(float ratio); 295 void SetBrowserControlsShownRatio(float ratio);
296 void SetScrollBoundaryBehavior(
297 const ScrollBoundaryBehavior& scroll_boundary_behavior);
295 298
296 void SetPageScaleFactorAndLimits(float page_scale_factor, 299 void SetPageScaleFactorAndLimits(float page_scale_factor,
297 float min_page_scale_factor, 300 float min_page_scale_factor,
298 float max_page_scale_factor); 301 float max_page_scale_factor);
299 float page_scale_factor() const { return page_scale_factor_; } 302 float page_scale_factor() const { return page_scale_factor_; }
300 float min_page_scale_factor() const { return min_page_scale_factor_; } 303 float min_page_scale_factor() const { return min_page_scale_factor_; }
301 float max_page_scale_factor() const { return max_page_scale_factor_; } 304 float max_page_scale_factor() const { return max_page_scale_factor_; }
302 305
303 void set_background_color(SkColor color) { background_color_ = color; } 306 void set_background_color(SkColor color) { background_color_ = color; }
304 SkColor background_color() const { return background_color_; } 307 SkColor background_color() const { return background_color_; }
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 viz::SurfaceSequenceGenerator surface_sequence_generator_; 597 viz::SurfaceSequenceGenerator surface_sequence_generator_;
595 uint32_t num_consecutive_frames_without_slow_paths_ = 0; 598 uint32_t num_consecutive_frames_without_slow_paths_ = 0;
596 599
597 scoped_refptr<Layer> root_layer_; 600 scoped_refptr<Layer> root_layer_;
598 601
599 ViewportLayers viewport_layers_; 602 ViewportLayers viewport_layers_;
600 603
601 float top_controls_height_ = 0.f; 604 float top_controls_height_ = 0.f;
602 float top_controls_shown_ratio_ = 0.f; 605 float top_controls_shown_ratio_ = 0.f;
603 bool browser_controls_shrink_blink_size_ = false; 606 bool browser_controls_shrink_blink_size_ = false;
607 ScrollBoundaryBehavior scroll_boundary_behavior_;
604 608
605 float bottom_controls_height_ = 0.f; 609 float bottom_controls_height_ = 0.f;
606 610
607 float device_scale_factor_ = 1.f; 611 float device_scale_factor_ = 1.f;
608 float painted_device_scale_factor_ = 1.f; 612 float painted_device_scale_factor_ = 1.f;
609 float recording_scale_factor_ = 1.f; 613 float recording_scale_factor_ = 1.f;
610 float page_scale_factor_ = 1.f; 614 float page_scale_factor_ = 1.f;
611 float min_page_scale_factor_ = 1.f; 615 float min_page_scale_factor_ = 1.f;
612 float max_page_scale_factor_ = 1.f; 616 float max_page_scale_factor_ = 1.f;
613 gfx::ColorSpace raster_color_space_; 617 gfx::ColorSpace raster_color_space_;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 666
663 std::vector<std::pair<PaintImage, base::Callback<void(bool)>>> 667 std::vector<std::pair<PaintImage, base::Callback<void(bool)>>>
664 queued_image_decodes_; 668 queued_image_decodes_;
665 669
666 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 670 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
667 }; 671 };
668 672
669 } // namespace cc 673 } // namespace cc
670 674
671 #endif // CC_TREES_LAYER_TREE_HOST_H_ 675 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698