Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollTypes.h

Issue 2911103002: Revert of Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 }; 174 };
175 175
176 enum ScrollInertialPhase { 176 enum ScrollInertialPhase {
177 kScrollInertialPhaseUnknown, 177 kScrollInertialPhaseUnknown,
178 kScrollInertialPhaseNonMomentum, 178 kScrollInertialPhaseNonMomentum,
179 kScrollInertialPhaseMomentum 179 kScrollInertialPhaseMomentum
180 }; 180 };
181 181
182 enum ScrollbarOrientation { kHorizontalScrollbar, kVerticalScrollbar }; 182 enum ScrollbarOrientation { kHorizontalScrollbar, kVerticalScrollbar };
183 183
184 enum ScrollOrientation { kHorizontalScroll, kVerticalScroll };
185
186 enum ScrollbarMode { kScrollbarAuto, kScrollbarAlwaysOff, kScrollbarAlwaysOn }; 184 enum ScrollbarMode { kScrollbarAuto, kScrollbarAlwaysOff, kScrollbarAlwaysOn };
187 185
188 enum ScrollbarControlSize { kRegularScrollbar, kSmallScrollbar }; 186 enum ScrollbarControlSize { kRegularScrollbar, kSmallScrollbar };
189 187
190 typedef unsigned ScrollbarControlState; 188 typedef unsigned ScrollbarControlState;
191 189
192 enum ScrollbarControlStateMask { 190 enum ScrollbarControlStateMask {
193 kActiveScrollbarState = 1, 191 kActiveScrollbarState = 1,
194 kEnabledScrollbarState = 1 << 1, 192 kEnabledScrollbarState = 1 << 1,
195 kPressedScrollbarState = 1 << 2 193 kPressedScrollbarState = 1 << 2
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 NOTREACHED(); 274 NOTREACHED();
277 return ScrollGranularity::kScrollByPrecisePixel; 275 return ScrollGranularity::kScrollByPrecisePixel;
278 } 276 }
279 } 277 }
280 278
281 typedef unsigned ScrollbarControlPartMask; 279 typedef unsigned ScrollbarControlPartMask;
282 280
283 } // namespace blink 281 } // namespace blink
284 282
285 #endif 283 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698