OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 ScrollbarOverlayColorThemeDark, | 200 ScrollbarOverlayColorThemeDark, |
201 ScrollbarOverlayColorThemeLight | 201 ScrollbarOverlayColorThemeLight |
202 }; | 202 }; |
203 | 203 |
204 enum ScrollBehavior { | 204 enum ScrollBehavior { |
205 ScrollBehaviorAuto, | 205 ScrollBehaviorAuto, |
206 ScrollBehaviorInstant, | 206 ScrollBehaviorInstant, |
207 ScrollBehaviorSmooth, | 207 ScrollBehaviorSmooth, |
208 }; | 208 }; |
209 | 209 |
| 210 enum ScrollBlock { |
| 211 ScrollBlockStart, |
| 212 ScrollBlockEnd, |
| 213 }; |
| 214 |
210 // The result of an attempt to scroll. If didScroll is true, then | 215 // The result of an attempt to scroll. If didScroll is true, then |
211 // unusedScrollDelta gives the amount of the scroll delta that was not consumed | 216 // unusedScrollDelta gives the amount of the scroll delta that was not consumed |
212 // by scrolling. | 217 // by scrolling. |
213 struct ScrollResult { | 218 struct ScrollResult { |
214 STACK_ALLOCATED(); | 219 STACK_ALLOCATED(); |
215 explicit ScrollResult() | 220 explicit ScrollResult() |
216 : didScrollX(false), | 221 : didScrollX(false), |
217 didScrollY(false), | 222 didScrollY(false), |
218 unusedScrollDeltaX(0), | 223 unusedScrollDeltaX(0), |
219 unusedScrollDeltaY(0) {} | 224 unusedScrollDeltaY(0) {} |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 NOTREACHED(); | 268 NOTREACHED(); |
264 return ScrollGranularity::ScrollByPrecisePixel; | 269 return ScrollGranularity::ScrollByPrecisePixel; |
265 } | 270 } |
266 } | 271 } |
267 | 272 |
268 typedef unsigned ScrollbarControlPartMask; | 273 typedef unsigned ScrollbarControlPartMask; |
269 | 274 |
270 } // namespace blink | 275 } // namespace blink |
271 | 276 |
272 #endif | 277 #endif |
OLD | NEW |