OLD | NEW |
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 Loading... |
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/output/swap_promise.h" | 39 #include "cc/output/swap_promise.h" |
39 #include "components/viz/common/surfaces/frame_sink_id.h" | 40 #include "components/viz/common/surfaces/frame_sink_id.h" |
40 | 41 |
41 #include "third_party/skia/include/core/SkImage.h" | 42 #include "third_party/skia/include/core/SkImage.h" |
42 #include "third_party/skia/include/core/SkRefCnt.h" | 43 #include "third_party/skia/include/core/SkRefCnt.h" |
43 | 44 |
44 namespace cc { | 45 namespace cc { |
45 class AnimationHost; | 46 class AnimationHost; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 129 |
129 // Set browser controls height. If |shrink_viewport| is set to true, then | 130 // Set browser controls height. If |shrink_viewport| is set to true, then |
130 // Blink shrunk the viewport clip layers by the top and bottom browser | 131 // Blink shrunk the viewport clip layers by the top and bottom browser |
131 // controls height. Top controls will translate the web page down and do not | 132 // controls height. Top controls will translate the web page down and do not |
132 // immediately scroll when hiding. The bottom controls scroll immediately and | 133 // immediately scroll when hiding. The bottom controls scroll immediately and |
133 // never translate the content (only clip it). | 134 // never translate the content (only clip it). |
134 virtual void SetBrowserControlsHeight(float top_height, | 135 virtual void SetBrowserControlsHeight(float top_height, |
135 float bottom_height, | 136 float bottom_height, |
136 bool shrink_viewport) {} | 137 bool shrink_viewport) {} |
137 | 138 |
| 139 // Set the browser's behavior when overscroll happens, e.g. whether to glow |
| 140 // or navigate. |
| 141 virtual void SetScrollBoundaryBehavior(const WebScrollBoundaryBehavior&) {} |
| 142 |
138 // Flow control and scheduling --------------------------------------- | 143 // Flow control and scheduling --------------------------------------- |
139 | 144 |
140 // Indicates that blink needs a BeginFrame, but that nothing might actually be | 145 // Indicates that blink needs a BeginFrame, but that nothing might actually be |
141 // dirty. | 146 // dirty. |
142 virtual void SetNeedsBeginFrame() {} | 147 virtual void SetNeedsBeginFrame() {} |
143 | 148 |
144 // Relays the end of a fling animation. | 149 // Relays the end of a fling animation. |
145 virtual void DidStopFlinging() {} | 150 virtual void DidStopFlinging() {} |
146 | 151 |
147 // Run layout and paint of all pending document changes asynchronously. | 152 // Run layout and paint of all pending document changes asynchronously. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 223 |
219 virtual void RequestBeginMainFrameNotExpected(bool new_state) {} | 224 virtual void RequestBeginMainFrameNotExpected(bool new_state) {} |
220 | 225 |
221 virtual void RequestDecode(const PaintImage& image, | 226 virtual void RequestDecode(const PaintImage& image, |
222 const base::Callback<void(bool)>& callback) {} | 227 const base::Callback<void(bool)>& callback) {} |
223 }; | 228 }; |
224 | 229 |
225 } // namespace blink | 230 } // namespace blink |
226 | 231 |
227 #endif // WebLayerTreeView_h | 232 #endif // WebLayerTreeView_h |
OLD | NEW |