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

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

Issue 2885363005: Make Hyphens an enum class. (Closed)
Patch Set: 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 enum OffsetRotationType { kOffsetRotationAuto, kOffsetRotationFixed }; 281 enum OffsetRotationType { kOffsetRotationAuto, kOffsetRotationFixed };
282 282
283 enum EBackfaceVisibility { 283 enum EBackfaceVisibility {
284 kBackfaceVisibilityVisible, 284 kBackfaceVisibilityVisible,
285 kBackfaceVisibilityHidden 285 kBackfaceVisibilityHidden
286 }; 286 };
287 287
288 enum ELineClampType { kLineClampLineCount, kLineClampPercentage }; 288 enum ELineClampType { kLineClampLineCount, kLineClampPercentage };
289 289
290 enum Hyphens { kHyphensNone, kHyphensManual, kHyphensAuto }; 290 enum class Hyphens { kNone, kManual, kAuto };
291 291
292 enum class ESpeak { 292 enum class ESpeak {
293 kNone, 293 kNone,
294 kNormal, 294 kNormal,
295 kSpellOut, 295 kSpellOut,
296 kDigits, 296 kDigits,
297 kLiteralPunctuation, 297 kLiteralPunctuation,
298 kNoPunctuation 298 kNoPunctuation
299 }; 299 };
300 300
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 // fraction, which leaves 20 bits for the integer part, making 1048575 458 // fraction, which leaves 20 bits for the integer part, making 1048575
459 // the largest number. 459 // the largest number.
460 460
461 static const int kBorderWidthFractionalBits = 6; 461 static const int kBorderWidthFractionalBits = 6;
462 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; 462 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits;
463 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; 463 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator;
464 464
465 } // namespace blink 465 } // namespace blink
466 466
467 #endif // ComputedStyleConstants_h 467 #endif // ComputedStyleConstants_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698