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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyleConstants.h

Issue 2932593004: Update the snap points css properties (Closed)
Patch Set: Fix nits 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * 10 *
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 static const float kMaximumAllowedFontSize = 10000.0f; 343 static const float kMaximumAllowedFontSize = 10000.0f;
344 344
345 enum CSSBoxType { 345 enum CSSBoxType {
346 kBoxMissing = 0, 346 kBoxMissing = 0,
347 kMarginBox, 347 kMarginBox,
348 kBorderBox, 348 kBorderBox,
349 kPaddingBox, 349 kPaddingBox,
350 kContentBox 350 kContentBox
351 }; 351 };
352 352
353 enum ScrollSnapType { 353 enum SnapAxis {
354 kScrollSnapTypeNone, 354 kSnapAxisBoth,
355 kScrollSnapTypeMandatory, 355 kSnapAxisX,
356 kScrollSnapTypeProximity 356 kSnapAxisY,
357 kSnapAxisBlock,
358 kSnapAxisInline,
359 };
360
361 enum SnapStrictness { kSnapStrictnessProximity, kSnapStrictnessMandatory };
362
363 enum SnapAlignment {
364 kSnapAlignmentNone,
365 kSnapAlignmentStart,
366 kSnapAlignmentEnd,
367 kSnapAlignmentCenter
357 }; 368 };
358 369
359 enum AutoRepeatType { kNoAutoRepeat, kAutoFill, kAutoFit }; 370 enum AutoRepeatType { kNoAutoRepeat, kAutoFill, kAutoFit };
360 371
361 // Page size type. 372 // Page size type.
362 // StyleRareNonInheritedData::page_size_ is meaningful only when 373 // StyleRareNonInheritedData::page_size_ is meaningful only when
363 // StyleRareNonInheritedData::page_size_type_ is kResolved. 374 // StyleRareNonInheritedData::page_size_type_ is kResolved.
364 enum class PageSizeType { 375 enum class PageSizeType {
365 kAuto, // size: auto 376 kAuto, // size: auto
366 kLandscape, // size: landscape 377 kLandscape, // size: landscape
367 kPortrait, // size: portrait 378 kPortrait, // size: portrait
368 kResolved // Size is fully resolved. 379 kResolved // Size is fully resolved.
369 }; 380 };
370 381
371 } // namespace blink 382 } // namespace blink
372 383
373 #endif // ComputedStyleConstants_h 384 #endif // ComputedStyleConstants_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698