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 "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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 116 |
116 // Set browser controls height. If |shrink_viewport| is set to true, then | 117 // Set browser controls height. If |shrink_viewport| is set to true, then |
117 // Blink shrunk the viewport clip layers by the top and bottom browser | 118 // Blink shrunk the viewport clip layers by the top and bottom browser |
118 // controls height. Top controls will translate the web page down and do not | 119 // controls height. Top controls will translate the web page down and do not |
119 // immediately scroll when hiding. The bottom controls scroll immediately and | 120 // immediately scroll when hiding. The bottom controls scroll immediately and |
120 // never translate the content (only clip it). | 121 // never translate the content (only clip it). |
121 virtual void SetBrowserControlsHeight(float top_height, | 122 virtual void SetBrowserControlsHeight(float top_height, |
122 float bottom_height, | 123 float bottom_height, |
123 bool shrink_viewport) {} | 124 bool shrink_viewport) {} |
124 | 125 |
| 126 // Set the browser's behavior when overscroll happens, e.g. whether to glow |
| 127 // or navigate. |
| 128 virtual void SetScrollBoundaryBehavior(const WebScrollBoundaryBehavior&) {} |
| 129 |
125 // Flow control and scheduling --------------------------------------- | 130 // Flow control and scheduling --------------------------------------- |
126 | 131 |
127 // Indicates that blink needs a BeginFrame, but that nothing might actually be | 132 // Indicates that blink needs a BeginFrame, but that nothing might actually be |
128 // dirty. | 133 // dirty. |
129 virtual void SetNeedsBeginFrame() {} | 134 virtual void SetNeedsBeginFrame() {} |
130 | 135 |
131 // Relays the end of a fling animation. | 136 // Relays the end of a fling animation. |
132 virtual void DidStopFlinging() {} | 137 virtual void DidStopFlinging() {} |
133 | 138 |
134 // Run layout and paint of all pending document changes asynchronously. | 139 // Run layout and paint of all pending document changes asynchronously. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 210 |
206 virtual void RequestBeginMainFrameNotExpected(bool new_state) {} | 211 virtual void RequestBeginMainFrameNotExpected(bool new_state) {} |
207 | 212 |
208 virtual void RequestDecode(const PaintImage& image, | 213 virtual void RequestDecode(const PaintImage& image, |
209 const base::Callback<void(bool)>& callback) {} | 214 const base::Callback<void(bool)>& callback) {} |
210 }; | 215 }; |
211 | 216 |
212 } // namespace blink | 217 } // namespace blink |
213 | 218 |
214 #endif // WebLayerTreeView_h | 219 #endif // WebLayerTreeView_h |
OLD | NEW |