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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 BackTrackPart = 1 << 2, | 177 BackTrackPart = 1 << 2, |
178 ThumbPart = 1 << 3, | 178 ThumbPart = 1 << 3, |
179 ForwardTrackPart = 1 << 4, | 179 ForwardTrackPart = 1 << 4, |
180 BackButtonEndPart = 1 << 5, | 180 BackButtonEndPart = 1 << 5, |
181 ForwardButtonEndPart = 1 << 6, | 181 ForwardButtonEndPart = 1 << 6, |
182 ScrollbarBGPart = 1 << 7, | 182 ScrollbarBGPart = 1 << 7, |
183 TrackBGPart = 1 << 8, | 183 TrackBGPart = 1 << 8, |
184 AllParts = 0xffffffff | 184 AllParts = 0xffffffff |
185 }; | 185 }; |
186 | 186 |
187 enum ScrollbarOverlayStyle { | 187 enum ScrollbarOverlayColorTheme { |
188 ScrollbarOverlayStyleDefault, | 188 ScrollbarOverlayColorThemeDefault, |
189 ScrollbarOverlayStyleDark, | 189 ScrollbarOverlayColorThemeDark, |
190 ScrollbarOverlayStyleLight | 190 ScrollbarOverlayColorThemeLight |
191 }; | 191 }; |
192 | 192 |
193 enum ScrollBehavior { | 193 enum ScrollBehavior { |
194 ScrollBehaviorAuto, | 194 ScrollBehaviorAuto, |
195 ScrollBehaviorInstant, | 195 ScrollBehaviorInstant, |
196 ScrollBehaviorSmooth, | 196 ScrollBehaviorSmooth, |
197 }; | 197 }; |
198 | 198 |
199 // 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 |
200 // 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... |
237 | 237 |
238 return (dir == ScrollLeft || dir == ScrollRight) ? ScrollOffset(delta, 0) | 238 return (dir == ScrollLeft || dir == ScrollRight) ? ScrollOffset(delta, 0) |
239 : ScrollOffset(0, delta); | 239 : ScrollOffset(0, delta); |
240 } | 240 } |
241 | 241 |
242 typedef unsigned ScrollbarControlPartMask; | 242 typedef unsigned ScrollbarControlPartMask; |
243 | 243 |
244 } // namespace blink | 244 } // namespace blink |
245 | 245 |
246 #endif | 246 #endif |
OLD | NEW |