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

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: Update the test Created 3 years, 6 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 "cc/surfaces/frame_sink_id.h" 39 #include "cc/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 virtual void SetScrollBoundaryBehavior(const WebScrollBoundaryBehavior&) {}
122
120 // Flow control and scheduling --------------------------------------- 123 // Flow control and scheduling ---------------------------------------
121 124
122 // Indicates that blink needs a BeginFrame, but that nothing might actually be 125 // Indicates that blink needs a BeginFrame, but that nothing might actually be
123 // dirty. 126 // dirty.
124 virtual void SetNeedsBeginFrame() {} 127 virtual void SetNeedsBeginFrame() {}
125 128
126 // Relays the end of a fling animation. 129 // Relays the end of a fling animation.
127 virtual void DidStopFlinging() {} 130 virtual void DidStopFlinging() {}
128 131
129 // Run layout and paint of all pending document changes asynchronously. 132 // Run layout and paint of all pending document changes asynchronously.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // corresponding Swap completes (either with DidSwap or DidNotSwap). 198 // corresponding Swap completes (either with DidSwap or DidNotSwap).
196 virtual void NotifySwapTime(ReportTimeCallback callback) {} 199 virtual void NotifySwapTime(ReportTimeCallback callback) {}
197 200
198 virtual void RequestDecode(const PaintImage& image, 201 virtual void RequestDecode(const PaintImage& image,
199 const base::Callback<void(bool)>& callback) {} 202 const base::Callback<void(bool)>& callback) {}
200 }; 203 };
201 204
202 } // namespace blink 205 } // namespace blink
203 206
204 #endif // WebLayerTreeView_h 207 #endif // WebLayerTreeView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698