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

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

Issue 2882103002: Make ELineBreak an enum class. (Closed)
Patch Set: Rebase 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) 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 enum EWordBreak { 225 enum EWordBreak {
226 kNormalWordBreak, 226 kNormalWordBreak,
227 kBreakAllWordBreak, 227 kBreakAllWordBreak,
228 kKeepAllWordBreak, 228 kKeepAllWordBreak,
229 kBreakWordBreak 229 kBreakWordBreak
230 }; 230 };
231 231
232 enum EOverflowWrap { kNormalOverflowWrap, kBreakOverflowWrap }; 232 enum EOverflowWrap { kNormalOverflowWrap, kBreakOverflowWrap };
233 233
234 enum LineBreak { 234 enum class LineBreak { kAuto, kLoose, kNormal, kStrict, kAfterWhiteSpace };
235 kLineBreakAuto,
236 kLineBreakLoose,
237 kLineBreakNormal,
238 kLineBreakStrict,
239 kLineBreakAfterWhiteSpace
240 };
241 235
242 enum EResize { RESIZE_NONE, RESIZE_BOTH, RESIZE_HORIZONTAL, RESIZE_VERTICAL }; 236 enum EResize { RESIZE_NONE, RESIZE_BOTH, RESIZE_HORIZONTAL, RESIZE_VERTICAL };
243 237
244 enum QuoteType { OPEN_QUOTE, CLOSE_QUOTE, NO_OPEN_QUOTE, NO_CLOSE_QUOTE }; 238 enum QuoteType { OPEN_QUOTE, CLOSE_QUOTE, NO_OPEN_QUOTE, NO_CLOSE_QUOTE };
245 239
246 enum EAnimPlayState { kAnimPlayStatePlaying, kAnimPlayStatePaused }; 240 enum EAnimPlayState { kAnimPlayStatePlaying, kAnimPlayStatePaused };
247 241
248 static const size_t kTextDecorationBits = 4; 242 static const size_t kTextDecorationBits = 4;
249 enum class TextDecoration : unsigned { 243 enum class TextDecoration : unsigned {
250 kNone = 0x0, 244 kNone = 0x0,
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 // fraction, which leaves 20 bits for the integer part, making 1048575 482 // fraction, which leaves 20 bits for the integer part, making 1048575
489 // the largest number. 483 // the largest number.
490 484
491 static const int kBorderWidthFractionalBits = 6; 485 static const int kBorderWidthFractionalBits = 6;
492 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; 486 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits;
493 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; 487 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator;
494 488
495 } // namespace blink 489 } // namespace blink
496 490
497 #endif // ComputedStyleConstants_h 491 #endif // ComputedStyleConstants_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698