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

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: Fixed the comments Created 3 years, 7 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 14 matching lines...) Expand all
25 25
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 "WebScrollBoundaryBehavior.h"
35 #include "WebSize.h" 36 #include "WebSize.h"
36 #include "base/callback.h" 37 #include "base/callback.h"
37 #include "cc/surfaces/frame_sink_id.h" 38 #include "cc/surfaces/frame_sink_id.h"
38 39
39 namespace cc { 40 namespace cc {
40 class AnimationHost; 41 class AnimationHost;
41 } 42 }
42 43
43 namespace blink { 44 namespace blink {
44 45
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 107
107 // Update browser controls permitted and current states 108 // Update browser controls permitted and current states
108 virtual void UpdateBrowserControlsState(WebBrowserControlsState constraints, 109 virtual void UpdateBrowserControlsState(WebBrowserControlsState constraints,
109 WebBrowserControlsState current, 110 WebBrowserControlsState current,
110 bool animate) {} 111 bool animate) {}
111 112
112 // Set browser controls height. If |shrinkViewport| is set to true, then Blink 113 // Set browser controls height. If |shrinkViewport| is set to true, then Blink
113 // shrunk the viewport clip layers by the browser controls height. 114 // shrunk the viewport clip layers by the browser controls height.
114 virtual void SetBrowserControlsHeight(float height, bool shrink_viewport) {} 115 virtual void SetBrowserControlsHeight(float height, bool shrink_viewport) {}
115 116
117 virtual void SetScrollBoundaryBehavior(WebScrollBoundaryBehavior) const {}
dtapuska 2017/05/23 17:13:40 This is odd that this is a const method especially
sunyunjia 2017/06/13 15:56:21 Done.
118
116 // Flow control and scheduling --------------------------------------- 119 // Flow control and scheduling ---------------------------------------
117 120
118 // Indicates that blink needs a BeginFrame, but that nothing might actually be 121 // Indicates that blink needs a BeginFrame, but that nothing might actually be
119 // dirty. 122 // dirty.
120 virtual void SetNeedsBeginFrame() {} 123 virtual void SetNeedsBeginFrame() {}
121 124
122 // Relays the end of a fling animation. 125 // Relays the end of a fling animation.
123 virtual void DidStopFlinging() {} 126 virtual void DidStopFlinging() {}
124 127
125 // Run layout and paint of all pending document changes asynchronously. 128 // Run layout and paint of all pending document changes asynchronously.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 virtual void SetShowScrollBottleneckRects(bool) {} 189 virtual void SetShowScrollBottleneckRects(bool) {}
187 190
188 // ReportTimeCallback is a callback that should be fired when the 191 // ReportTimeCallback is a callback that should be fired when the
189 // corresponding Swap completes (either with DidSwap or DidNotSwap). 192 // corresponding Swap completes (either with DidSwap or DidNotSwap).
190 virtual void NotifySwapTime(ReportTimeCallback callback) {} 193 virtual void NotifySwapTime(ReportTimeCallback callback) {}
191 }; 194 };
192 195
193 } // namespace blink 196 } // namespace blink
194 197
195 #endif // WebLayerTreeView_h 198 #endif // WebLayerTreeView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698