Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js |
index 77e323a14752985d737cac8886ee92d4ac9c179a..83d0b6b3b7034ef007114f32df2fe9046c4aaa6a 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js |
@@ -237,7 +237,7 @@ |
// Given two non-desktop roots, consider them in the "same" tree. |
return a.root === b.root || |
- (a.root.role == b.root.role && a.root.role == RoleType.ROOT_WEB_AREA); |
+ (a.root.role == b.root.role && a.root.role == RoleType.rootWebArea); |
}; |
/** |
@@ -285,13 +285,13 @@ |
*/ |
AutomationUtil.getTopLevelRoot = function(node) { |
var root = node.root; |
- if (!root || root.role == RoleType.DESKTOP) |
+ if (!root || root.role == RoleType.desktop) |
return null; |
while (root && |
root.parent && |
root.parent.root && |
- root.parent.root.role != RoleType.DESKTOP) { |
+ root.parent.root.role != RoleType.desktop) { |
root = root.parent.root; |
} |
return root; |
@@ -322,8 +322,8 @@ |
if (!node) |
return ''; |
- if (node.role === RoleType.TEXT_FIELD) |
- return node.value || ''; |
+ if (node.role === RoleType.textField) |
+ return node.value; |
return node.name || ''; |
}; |