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

Side by Side Diff: third_party/WebKit/public/platform/WebLayerTreeView.h

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: rebase Created 3 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 15 matching lines...) Expand all
26 #ifndef WebLayerTreeView_h 26 #ifndef WebLayerTreeView_h
27 #define WebLayerTreeView_h 27 #define WebLayerTreeView_h
28 28
29 #include "WebBrowserControlsState.h" 29 #include "WebBrowserControlsState.h"
30 #include "WebColor.h" 30 #include "WebColor.h"
31 #include "WebCommon.h" 31 #include "WebCommon.h"
32 #include "WebCompositorMutatorClient.h" 32 #include "WebCompositorMutatorClient.h"
33 #include "WebEventListenerProperties.h" 33 #include "WebEventListenerProperties.h"
34 #include "WebFloatPoint.h" 34 #include "WebFloatPoint.h"
35 #include "WebImageLayer.h" 35 #include "WebImageLayer.h"
36 #include "WebScrollBoundaryBehavior.h"
36 #include "WebSize.h" 37 #include "WebSize.h"
37 #include "base/callback.h" 38 #include "base/callback.h"
38 #include "components/viz/common/surfaces/frame_sink_id.h" 39 #include "components/viz/common/surfaces/frame_sink_id.h"
39 40
40 #include "third_party/skia/include/core/SkImage.h" 41 #include "third_party/skia/include/core/SkImage.h"
41 #include "third_party/skia/include/core/SkRefCnt.h" 42 #include "third_party/skia/include/core/SkRefCnt.h"
42 43
43 namespace cc { 44 namespace cc {
44 class AnimationHost; 45 class AnimationHost;
45 } 46 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 111
111 // Update browser controls permitted and current states 112 // Update browser controls permitted and current states
112 virtual void UpdateBrowserControlsState(WebBrowserControlsState constraints, 113 virtual void UpdateBrowserControlsState(WebBrowserControlsState constraints,
113 WebBrowserControlsState current, 114 WebBrowserControlsState current,
114 bool animate) {} 115 bool animate) {}
115 116
116 // Set browser controls height. If |shrinkViewport| is set to true, then Blink 117 // Set browser controls height. If |shrinkViewport| is set to true, then Blink
117 // shrunk the viewport clip layers by the browser controls height. 118 // shrunk the viewport clip layers by the browser controls height.
118 virtual void SetBrowserControlsHeight(float height, bool shrink_viewport) {} 119 virtual void SetBrowserControlsHeight(float height, bool shrink_viewport) {}
119 120
121 // Set the browser's behavior when overscroll happens, e.g. whether to glow
122 // or navigate.
123 virtual void SetScrollBoundaryBehavior(const WebScrollBoundaryBehavior&) {}
124
120 // Flow control and scheduling --------------------------------------- 125 // Flow control and scheduling ---------------------------------------
121 126
122 // Indicates that blink needs a BeginFrame, but that nothing might actually be 127 // Indicates that blink needs a BeginFrame, but that nothing might actually be
123 // dirty. 128 // dirty.
124 virtual void SetNeedsBeginFrame() {} 129 virtual void SetNeedsBeginFrame() {}
125 130
126 // Relays the end of a fling animation. 131 // Relays the end of a fling animation.
127 virtual void DidStopFlinging() {} 132 virtual void DidStopFlinging() {}
128 133
129 // Run layout and paint of all pending document changes asynchronously. 134 // Run layout and paint of all pending document changes asynchronously.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 205
201 virtual void RequestBeginMainFrameNotExpected(bool new_state) {} 206 virtual void RequestBeginMainFrameNotExpected(bool new_state) {}
202 207
203 virtual void RequestDecode(const PaintImage& image, 208 virtual void RequestDecode(const PaintImage& image,
204 const base::Callback<void(bool)>& callback) {} 209 const base::Callback<void(bool)>& callback) {}
205 }; 210 };
206 211
207 } // namespace blink 212 } // namespace blink
208 213
209 #endif // WebLayerTreeView_h 214 #endif // WebLayerTreeView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698