Commit 29de5ce3 authored by Shahriar Rostami Dovom's avatar Shahriar Rostami Dovom Committed by Commit Bot

Removed unused accessibility role kLocationBar.

Bug: 841836
TBR=tsepez@chromium.org

Change-Id: I443affb8c929525df4c9c08bb00969414bd711d8
Reviewed-on: https://chromium-review.googlesource.com/1091956
Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570887}
parent def824e9
...@@ -187,7 +187,6 @@ ...@@ -187,7 +187,6 @@
listBoxOption, listBoxOption,
listItem, listItem,
listMarker, listMarker,
locationBar,
log, log,
main, main,
mark, mark,
......
...@@ -793,9 +793,6 @@ base::string16 BrowserAccessibilityAndroid::GetRoleDescription() const { ...@@ -793,9 +793,6 @@ base::string16 BrowserAccessibilityAndroid::GetRoleDescription() const {
case ax::mojom::Role::kList: case ax::mojom::Role::kList:
// No role description. // No role description.
break; break;
case ax::mojom::Role::kLocationBar:
// No role description.
break;
case ax::mojom::Role::kLog: case ax::mojom::Role::kLog:
message_id = IDS_AX_ROLE_LOG; message_id = IDS_AX_ROLE_LOG;
break; break;
......
...@@ -188,7 +188,6 @@ chrome.automation.RoleType = { ...@@ -188,7 +188,6 @@ chrome.automation.RoleType = {
LIST_BOX_OPTION: 'listBoxOption', LIST_BOX_OPTION: 'listBoxOption',
LIST_ITEM: 'listItem', LIST_ITEM: 'listItem',
LIST_MARKER: 'listMarker', LIST_MARKER: 'listMarker',
LOCATION_BAR: 'locationBar',
LOG: 'log', LOG: 'log',
MAIN: 'main', MAIN: 'main',
MARK: 'mark', MARK: 'mark',
...@@ -1567,7 +1566,6 @@ chrome.automation.AutomationNode.prototype.matches = function(params) {}; ...@@ -1567,7 +1566,6 @@ chrome.automation.AutomationNode.prototype.matches = function(params) {};
*/ */
chrome.automation.AutomationNode.prototype.getNextTextMatch = function(searchStr, backward) {}; chrome.automation.AutomationNode.prototype.getNextTextMatch = function(searchStr, backward) {};
/** /**
* Get the automation tree for the tab with the given tabId, or the current tab * Get the automation tree for the tab with the given tabId, or the current tab
* if no tabID is given, enabling automation if necessary. Returns a tree with a * if no tabID is given, enabling automation if necessary. Returns a tree with a
......
...@@ -441,8 +441,6 @@ const char* ToString(ax::mojom::Role role) { ...@@ -441,8 +441,6 @@ const char* ToString(ax::mojom::Role role) {
return "listMarker"; return "listMarker";
case ax::mojom::Role::kList: case ax::mojom::Role::kList:
return "list"; return "list";
case ax::mojom::Role::kLocationBar:
return "locationBar";
case ax::mojom::Role::kLog: case ax::mojom::Role::kLog:
return "log"; return "log";
case ax::mojom::Role::kMain: case ax::mojom::Role::kMain:
...@@ -713,8 +711,6 @@ ax::mojom::Role ParseRole(const char* role) { ...@@ -713,8 +711,6 @@ ax::mojom::Role ParseRole(const char* role) {
return ax::mojom::Role::kListMarker; return ax::mojom::Role::kListMarker;
if (0 == strcmp(role, "list")) if (0 == strcmp(role, "list"))
return ax::mojom::Role::kList; return ax::mojom::Role::kList;
if (0 == strcmp(role, "locationBar"))
return ax::mojom::Role::kLocationBar;
if (0 == strcmp(role, "log")) if (0 == strcmp(role, "log"))
return ax::mojom::Role::kLog; return ax::mojom::Role::kLog;
if (0 == strcmp(role, "main")) if (0 == strcmp(role, "main"))
......
...@@ -209,7 +209,6 @@ enum Role { ...@@ -209,7 +209,6 @@ enum Role {
kListBoxOption, kListBoxOption,
kListItem, kListItem,
kListMarker, kListMarker,
kLocationBar,
kLog, kLog,
kMain, kMain,
kMark, kMark,
......
...@@ -1246,7 +1246,6 @@ AtkRole AXPlatformNodeAuraLinux::GetAtkRole() { ...@@ -1246,7 +1246,6 @@ AtkRole AXPlatformNodeAuraLinux::GetAtkRole() {
case ax::mojom::Role::kTitleBar: case ax::mojom::Role::kTitleBar:
return ATK_ROLE_TITLE_BAR; return ATK_ROLE_TITLE_BAR;
case ax::mojom::Role::kInlineTextBox: case ax::mojom::Role::kInlineTextBox:
case ax::mojom::Role::kLocationBar:
case ax::mojom::Role::kTextField: case ax::mojom::Role::kTextField:
case ax::mojom::Role::kSearchBox: case ax::mojom::Role::kSearchBox:
if (!GetStringAttribute(ax::mojom::StringAttribute::kAutoComplete) if (!GetStringAttribute(ax::mojom::StringAttribute::kAutoComplete)
......
...@@ -3286,10 +3286,6 @@ int AXPlatformNodeWin::MSAARole() { ...@@ -3286,10 +3286,6 @@ int AXPlatformNodeWin::MSAARole() {
case ax::mojom::Role::kListItem: case ax::mojom::Role::kListItem:
return ROLE_SYSTEM_LISTITEM; return ROLE_SYSTEM_LISTITEM;
case ax::mojom::Role::kLocationBar: // TODO(accessibility) Remove.
NOTREACHED();
return ROLE_SYSTEM_TEXT;
case ax::mojom::Role::kLog: case ax::mojom::Role::kLog:
return ROLE_SYSTEM_CLIENT; return ROLE_SYSTEM_CLIENT;
...@@ -4359,10 +4355,6 @@ base::string16 AXPlatformNodeWin::UIAAriaRole() { ...@@ -4359,10 +4355,6 @@ base::string16 AXPlatformNodeWin::UIAAriaRole() {
case ax::mojom::Role::kListBoxOption: case ax::mojom::Role::kListBoxOption:
return L"option"; return L"option";
case ax::mojom::Role::kLocationBar: // TODO(accessibility) Remove.
NOTREACHED();
return L"textbox";
case ax::mojom::Role::kLog: case ax::mojom::Role::kLog:
return L"log"; return L"log";
...@@ -4981,10 +4973,6 @@ long AXPlatformNodeWin::ComputeUIAControlType() { ...@@ -4981,10 +4973,6 @@ long AXPlatformNodeWin::ComputeUIAControlType() {
case ax::mojom::Role::kListBoxOption: case ax::mojom::Role::kListBoxOption:
return UIA_ListItemControlTypeId; return UIA_ListItemControlTypeId;
case ax::mojom::Role::kLocationBar: // TODO(accessibility) Remove.
NOTREACHED();
return UIA_DocumentControlTypeId;
case ax::mojom::Role::kLog: case ax::mojom::Role::kLog:
return UIA_GroupControlTypeId; return UIA_GroupControlTypeId;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment