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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 BackTrackPart = 1 << 2, | 178 BackTrackPart = 1 << 2, |
179 ThumbPart = 1 << 3, | 179 ThumbPart = 1 << 3, |
180 ForwardTrackPart = 1 << 4, | 180 ForwardTrackPart = 1 << 4, |
181 BackButtonEndPart = 1 << 5, | 181 BackButtonEndPart = 1 << 5, |
182 ForwardButtonEndPart = 1 << 6, | 182 ForwardButtonEndPart = 1 << 6, |
183 ScrollbarBGPart = 1 << 7, | 183 ScrollbarBGPart = 1 << 7, |
184 TrackBGPart = 1 << 8, | 184 TrackBGPart = 1 << 8, |
185 AllParts = 0xffffffff | 185 AllParts = 0xffffffff |
186 }; | 186 }; |
187 | 187 |
188 enum ScrollbarOverlayStyle { | 188 enum ScrollbarOverlayColorTheme { |
189 ScrollbarOverlayStyleDefault, | 189 ScrollbarOverlayColorThemeDark, |
190 ScrollbarOverlayStyleDark, | 190 ScrollbarOverlayColorThemeLight |
191 ScrollbarOverlayStyleLight | |
192 }; | 191 }; |
193 | 192 |
194 enum ScrollBehavior { | 193 enum ScrollBehavior { |
195 ScrollBehaviorAuto, | 194 ScrollBehaviorAuto, |
196 ScrollBehaviorInstant, | 195 ScrollBehaviorInstant, |
197 ScrollBehaviorSmooth, | 196 ScrollBehaviorSmooth, |
198 }; | 197 }; |
199 | 198 |
200 // The result of an attempt to scroll. If didScroll is true, then | 199 // The result of an attempt to scroll. If didScroll is true, then |
201 // unusedScrollDelta gives the amount of the scroll delta that was not consumed | 200 // unusedScrollDelta gives the amount of the scroll delta that was not consumed |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 237 |
239 return (dir == ScrollLeft || dir == ScrollRight) ? ScrollOffset(delta, 0) | 238 return (dir == ScrollLeft || dir == ScrollRight) ? ScrollOffset(delta, 0) |
240 : ScrollOffset(0, delta); | 239 : ScrollOffset(0, delta); |
241 } | 240 } |
242 | 241 |
243 typedef unsigned ScrollbarControlPartMask; | 242 typedef unsigned ScrollbarControlPartMask; |
244 | 243 |
245 } // namespace blink | 244 } // namespace blink |
246 | 245 |
247 #endif | 246 #endif |
OLD | NEW |