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

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

Issue 2507383002: Changed ETextAlign to an enum class and renamed its members to keywords (Closed)
Patch Set: Created 4 years, 1 month 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 }; 330 };
331 331
332 enum QuoteType { OPEN_QUOTE, CLOSE_QUOTE, NO_OPEN_QUOTE, NO_CLOSE_QUOTE }; 332 enum QuoteType { OPEN_QUOTE, CLOSE_QUOTE, NO_OPEN_QUOTE, NO_CLOSE_QUOTE };
333 333
334 enum EAnimPlayState { AnimPlayStatePlaying, AnimPlayStatePaused }; 334 enum EAnimPlayState { AnimPlayStatePlaying, AnimPlayStatePaused };
335 335
336 enum EWhiteSpace { NORMAL, PRE, PRE_WRAP, PRE_LINE, NOWRAP, KHTML_NOWRAP }; 336 enum EWhiteSpace { NORMAL, PRE, PRE_WRAP, PRE_LINE, NOWRAP, KHTML_NOWRAP };
337 337
338 // The order of this enum must match the order of the text align values in 338 // The order of this enum must match the order of the text align values in
339 // CSSValueKeywords.in. 339 // CSSValueKeywords.in.
340 enum ETextAlign { 340 enum class ETextAlign : unsigned {
341 LEFT, 341 Left,
342 RIGHT, 342 Right,
343 CENTER, 343 Center,
344 JUSTIFY, 344 Justify,
345 WEBKIT_LEFT, 345 WebkitLeft,
346 WEBKIT_RIGHT, 346 WebkitRight,
347 WEBKIT_CENTER, 347 WebkitCenter,
348 TASTART, 348 Start,
349 TAEND, 349 End,
350 }; 350 };
351 351
352 enum ETextTransform { CAPITALIZE, UPPERCASE, LOWERCASE, TTNONE }; 352 enum ETextTransform { CAPITALIZE, UPPERCASE, LOWERCASE, TTNONE };
353 353
354 static const size_t TextDecorationBits = 4; 354 static const size_t TextDecorationBits = 4;
355 enum TextDecoration { 355 enum TextDecoration {
356 TextDecorationNone = 0x0, 356 TextDecorationNone = 0x0,
357 TextDecorationUnderline = 0x1, 357 TextDecorationUnderline = 0x1,
358 TextDecorationOverline = 0x2, 358 TextDecorationOverline = 0x2,
359 TextDecorationLineThrough = 0x4, 359 TextDecorationLineThrough = 0x4,
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 ScrollSnapTypeNone, 716 ScrollSnapTypeNone,
717 ScrollSnapTypeMandatory, 717 ScrollSnapTypeMandatory,
718 ScrollSnapTypeProximity 718 ScrollSnapTypeProximity
719 }; 719 };
720 720
721 enum AutoRepeatType { NoAutoRepeat, AutoFill, AutoFit }; 721 enum AutoRepeatType { NoAutoRepeat, AutoFill, AutoFit };
722 722
723 } // namespace blink 723 } // namespace blink
724 724
725 #endif // ComputedStyleConstants_h 725 #endif // ComputedStyleConstants_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/web/WebFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698