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

Unified Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h

Issue 2882113002: Make ESpeak 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
index c3466148e3ae45dd96b879caff0546d977372430..371ba0dac69d9189375fcd2e254e5910e4f39706 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -2217,22 +2217,22 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(ESpeak e)
: CSSValue(kIdentifierClass) {
switch (e) {
- case kSpeakNone:
+ case ESpeak::kNone:
value_id_ = CSSValueNone;
break;
- case kSpeakNormal:
+ case ESpeak::kNormal:
value_id_ = CSSValueNormal;
break;
- case kSpeakSpellOut:
+ case ESpeak::kSpellOut:
value_id_ = CSSValueSpellOut;
break;
- case kSpeakDigits:
+ case ESpeak::kDigits:
value_id_ = CSSValueDigits;
break;
- case kSpeakLiteralPunctuation:
+ case ESpeak::kLiteralPunctuation:
value_id_ = CSSValueLiteralPunctuation;
break;
- case kSpeakNoPunctuation:
+ case ESpeak::kNoPunctuation:
value_id_ = CSSValueNoPunctuation;
break;
}
@@ -2270,23 +2270,23 @@ template <>
inline ESpeak CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueNone:
- return kSpeakNone;
+ return ESpeak::kNone;
case CSSValueNormal:
- return kSpeakNormal;
+ return ESpeak::kNormal;
case CSSValueSpellOut:
- return kSpeakSpellOut;
+ return ESpeak::kSpellOut;
case CSSValueDigits:
- return kSpeakDigits;
+ return ESpeak::kDigits;
case CSSValueLiteralPunctuation:
- return kSpeakLiteralPunctuation;
+ return ESpeak::kLiteralPunctuation;
case CSSValueNoPunctuation:
- return kSpeakNoPunctuation;
+ return ESpeak::kNoPunctuation;
default:
break;
}
NOTREACHED();
- return kSpeakNormal;
+ return ESpeak::kNormal;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698