| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 } | 105 } |
| 106 | 106 |
| 107 enum ScrollGranularity { | 107 enum ScrollGranularity { |
| 108 ScrollByLine, | 108 ScrollByLine, |
| 109 ScrollByPage, | 109 ScrollByPage, |
| 110 ScrollByDocument, | 110 ScrollByDocument, |
| 111 ScrollByPixel, | 111 ScrollByPixel, |
| 112 ScrollByPrecisePixel | 112 ScrollByPrecisePixel |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 enum ScrollElasticity { | |
| 116 ScrollElasticityAutomatic, | |
| 117 ScrollElasticityNone, | |
| 118 ScrollElasticityAllowed | |
| 119 }; | |
| 120 | |
| 121 enum ScrollbarOrientation { HorizontalScrollbar, VerticalScrollbar }; | 115 enum ScrollbarOrientation { HorizontalScrollbar, VerticalScrollbar }; |
| 122 | 116 |
| 123 enum ScrollbarMode { ScrollbarAuto, ScrollbarAlwaysOff, ScrollbarAlwaysOn }; | 117 enum ScrollbarMode { ScrollbarAuto, ScrollbarAlwaysOff, ScrollbarAlwaysOn }; |
| 124 | 118 |
| 125 enum ScrollbarControlSize { RegularScrollbar, SmallScrollbar }; | 119 enum ScrollbarControlSize { RegularScrollbar, SmallScrollbar }; |
| 126 | 120 |
| 127 typedef unsigned ScrollbarControlState; | 121 typedef unsigned ScrollbarControlState; |
| 128 | 122 |
| 129 enum ScrollbarControlStateMask { | 123 enum ScrollbarControlStateMask { |
| 130 ActiveScrollbarState = 1, | 124 ActiveScrollbarState = 1, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 bool didScroll; | 182 bool didScroll; |
| 189 float unusedScrollDeltaX; | 183 float unusedScrollDeltaX; |
| 190 float unusedScrollDeltaY; | 184 float unusedScrollDeltaY; |
| 191 }; | 185 }; |
| 192 | 186 |
| 193 typedef unsigned ScrollbarControlPartMask; | 187 typedef unsigned ScrollbarControlPartMask; |
| 194 | 188 |
| 195 } | 189 } |
| 196 | 190 |
| 197 #endif | 191 #endif |
| OLD | NEW |