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

Unified Diff: content/browser/accessibility/accessibility_tree_formatter_win.cc

Issue 2539363004: Make base::Value::TYPE a scoped enum. (Closed)
Patch Set: Rebase Created 4 years 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
Index: content/browser/accessibility/accessibility_tree_formatter_win.cc
diff --git a/content/browser/accessibility/accessibility_tree_formatter_win.cc b/content/browser/accessibility/accessibility_tree_formatter_win.cc
index a0d782ee1d2dfb049bdf6150ff43635a342cfcbf..75495b05cfa6d3e112a44341973cf172f7f777d9 100644
--- a/content/browser/accessibility/accessibility_tree_formatter_win.cc
+++ b/content/browser/accessibility/accessibility_tree_formatter_win.cc
@@ -349,7 +349,7 @@ base::string16 AccessibilityTreeFormatterWin::ToString(
continue;
switch (value->GetType()) {
- case base::Value::TYPE_STRING: {
+ case base::Value::Type::STRING: {
base::string16 string_value;
value->GetAsString(&string_value);
WriteAttribute(false,
@@ -359,7 +359,7 @@ base::string16 AccessibilityTreeFormatterWin::ToString(
&line);
break;
}
- case base::Value::TYPE_INTEGER: {
+ case base::Value::Type::INTEGER: {
int int_value = 0;
value->GetAsInteger(&int_value);
WriteAttribute(false,
@@ -370,7 +370,7 @@ base::string16 AccessibilityTreeFormatterWin::ToString(
&line);
break;
}
- case base::Value::TYPE_DOUBLE: {
+ case base::Value::Type::DOUBLE: {
double double_value = 0.0;
value->GetAsDouble(&double_value);
WriteAttribute(false,
@@ -381,7 +381,7 @@ base::string16 AccessibilityTreeFormatterWin::ToString(
&line);
break;
}
- case base::Value::TYPE_LIST: {
+ case base::Value::Type::LIST: {
// Currently all list values are string and are written without
// attribute names.
const base::ListValue* list_value;
@@ -395,7 +395,7 @@ base::string16 AccessibilityTreeFormatterWin::ToString(
}
break;
}
- case base::Value::TYPE_DICTIONARY: {
+ case base::Value::Type::DICTIONARY: {
// Currently all dictionary values are coordinates.
// Revisit this if that changes.
const base::DictionaryValue* dict_value;
« no previous file with comments | « components/webcrypto/algorithms/test_helpers.cc ('k') | content/browser/android/java/gin_java_method_invocation_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698