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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 3977f6ddd4bc314b0d4c4956466aaf7f7bcd9ef1..1be26cd874a938b7eb1eb703d217562326720576 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -17,6 +17,7 @@
#include "cc/base/synced_property.h"
#include "cc/input/event_listener_properties.h"
#include "cc/input/layer_selection_bound.h"
+#include "cc/input/scroll_boundary_behavior.h"
#include "cc/layers/layer_impl.h"
#include "cc/layers/layer_list_iterator.h"
#include "cc/output/swap_promise.h"
@@ -494,6 +495,11 @@ class CC_EXPORT LayerTreeImpl {
void set_bottom_controls_height(float bottom_controls_height);
float bottom_controls_height() const { return bottom_controls_height_; }
+ void set_scroll_boundary_behavior(const ScrollBoundaryBehavior& behavior);
+ ScrollBoundaryBehavior scroll_boundary_behavior() const {
+ return scroll_boundary_behavior_;
+ }
+
void SetPendingPageScaleAnimation(
std::unique_ptr<PendingPageScaleAnimation> pending_animation);
std::unique_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation();
@@ -659,6 +665,8 @@ class CC_EXPORT LayerTreeImpl {
float top_controls_height_;
float bottom_controls_height_;
+ ScrollBoundaryBehavior scroll_boundary_behavior_;
+
// The amount that the browser controls are shown from 0 (hidden) to 1 (fully
// shown).
scoped_refptr<SyncedBrowserControls> top_controls_shown_ratio_;
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698