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

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

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Change the default setting. Created 3 years, 7 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
184 enum ScrollbarMode { kScrollbarAuto, kScrollbarAlwaysOff, kScrollbarAlwaysOn }; 186 enum ScrollbarMode { kScrollbarAuto, kScrollbarAlwaysOff, kScrollbarAlwaysOn };
185 187
186 enum ScrollbarControlSize { kRegularScrollbar, kSmallScrollbar }; 188 enum ScrollbarControlSize { kRegularScrollbar, kSmallScrollbar };
187 189
188 typedef unsigned ScrollbarControlState; 190 typedef unsigned ScrollbarControlState;
189 191
190 enum ScrollbarControlStateMask { 192 enum ScrollbarControlStateMask {
191 kActiveScrollbarState = 1, 193 kActiveScrollbarState = 1,
192 kEnabledScrollbarState = 1 << 1, 194 kEnabledScrollbarState = 1 << 1,
193 kPressedScrollbarState = 1 << 2 195 kPressedScrollbarState = 1 << 2
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 NOTREACHED(); 276 NOTREACHED();
275 return ScrollGranularity::kScrollByPrecisePixel; 277 return ScrollGranularity::kScrollByPrecisePixel;
276 } 278 }
277 } 279 }
278 280
279 typedef unsigned ScrollbarControlPartMask; 281 typedef unsigned ScrollbarControlPartMask;
280 282
281 } // namespace blink 283 } // namespace blink
282 284
283 #endif 285 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698