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

Side by Side Diff: content/browser/accessibility/browser_accessibility.cc

Issue 2799413002: Views a11y: Add AXNodeData.actions bitfield to indicate supported actions by UI. (Closed)
Patch Set: Fix tests broken from rebase. 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/accessibility/browser_accessibility.h" 5 #include "content/browser/accessibility/browser_accessibility.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <iterator> 10 #include <iterator>
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 } 888 }
889 889
890 base::string16 BrowserAccessibility::GetText() const { 890 base::string16 BrowserAccessibility::GetText() const {
891 return GetInnerText(); 891 return GetInnerText();
892 } 892 }
893 893
894 bool BrowserAccessibility::HasState(ui::AXState state_enum) const { 894 bool BrowserAccessibility::HasState(ui::AXState state_enum) const {
895 return GetData().HasState(state_enum); 895 return GetData().HasState(state_enum);
896 } 896 }
897 897
898 bool BrowserAccessibility::HasAction(ui::AXAction action_enum) const {
899 return GetData().HasAction(action_enum);
900 }
901
898 bool BrowserAccessibility::IsCellOrTableHeaderRole() const { 902 bool BrowserAccessibility::IsCellOrTableHeaderRole() const {
899 return (GetRole() == ui::AX_ROLE_CELL || 903 return (GetRole() == ui::AX_ROLE_CELL ||
900 GetRole() == ui::AX_ROLE_COLUMN_HEADER || 904 GetRole() == ui::AX_ROLE_COLUMN_HEADER ||
901 GetRole() == ui::AX_ROLE_ROW_HEADER); 905 GetRole() == ui::AX_ROLE_ROW_HEADER);
902 } 906 }
903 907
904 bool BrowserAccessibility::IsTableLikeRole() const { 908 bool BrowserAccessibility::IsTableLikeRole() const {
905 return (GetRole() == ui::AX_ROLE_TABLE || 909 return (GetRole() == ui::AX_ROLE_TABLE ||
906 GetRole() == ui::AX_ROLE_GRID || 910 GetRole() == ui::AX_ROLE_GRID ||
907 GetRole() == ui::AX_ROLE_TREE_GRID); 911 GetRole() == ui::AX_ROLE_TREE_GRID);
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 return gfx::kNullAcceleratedWidget; 1203 return gfx::kNullAcceleratedWidget;
1200 } 1204 }
1201 1205
1202 bool BrowserAccessibility::AccessibilityPerformAction( 1206 bool BrowserAccessibility::AccessibilityPerformAction(
1203 const ui::AXActionData& data) { 1207 const ui::AXActionData& data) {
1204 NOTREACHED(); 1208 NOTREACHED();
1205 return false; 1209 return false;
1206 } 1210 }
1207 1211
1208 } // namespace content 1212 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698