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

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

Issue 2877333002: Make EWordBreak an enum class. (Closed)
Patch Set: Release 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 enum ObjectFit { 191 enum ObjectFit {
192 kObjectFitFill, 192 kObjectFitFill,
193 kObjectFitContain, 193 kObjectFitContain,
194 kObjectFitCover, 194 kObjectFitCover,
195 kObjectFitNone, 195 kObjectFitNone,
196 kObjectFitScaleDown 196 kObjectFitScaleDown
197 }; 197 };
198 198
199 // Word Break Values. Matches WinIE and CSS3 199 // Word Break Values. Matches WinIE and CSS3
200 200
201 enum EWordBreak { 201 enum class EWordBreak { kNormal, kBreakAll, kKeepAll, kBreakWord };
202 kNormalWordBreak,
203 kBreakAllWordBreak,
204 kKeepAllWordBreak,
205 kBreakWordBreak
206 };
207 202
208 enum class EOverflowWrap { kNormal, kBreakWord }; 203 enum class EOverflowWrap { kNormal, kBreakWord };
209 204
210 enum class LineBreak { kAuto, kLoose, kNormal, kStrict, kAfterWhiteSpace }; 205 enum class LineBreak { kAuto, kLoose, kNormal, kStrict, kAfterWhiteSpace };
211 206
212 enum EResize { RESIZE_NONE, RESIZE_BOTH, RESIZE_HORIZONTAL, RESIZE_VERTICAL }; 207 enum EResize { RESIZE_NONE, RESIZE_BOTH, RESIZE_HORIZONTAL, RESIZE_VERTICAL };
213 208
214 enum QuoteType { OPEN_QUOTE, CLOSE_QUOTE, NO_OPEN_QUOTE, NO_CLOSE_QUOTE }; 209 enum QuoteType { OPEN_QUOTE, CLOSE_QUOTE, NO_OPEN_QUOTE, NO_CLOSE_QUOTE };
215 210
216 enum EAnimPlayState { kAnimPlayStatePlaying, kAnimPlayStatePaused }; 211 enum EAnimPlayState { kAnimPlayStatePlaying, kAnimPlayStatePaused };
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 // fraction, which leaves 20 bits for the integer part, making 1048575 453 // fraction, which leaves 20 bits for the integer part, making 1048575
459 // the largest number. 454 // the largest number.
460 455
461 static const int kBorderWidthFractionalBits = 6; 456 static const int kBorderWidthFractionalBits = 6;
462 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; 457 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits;
463 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; 458 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator;
464 459
465 } // namespace blink 460 } // namespace blink
466 461
467 #endif // ComputedStyleConstants_h 462 #endif // ComputedStyleConstants_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698