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

Side by Side Diff: ui/accessibility/platform/ax_platform_node_mac.mm

Issue 607053002: Add conversion rule for WebAXRoleDescriptionList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add dl role handling in automation.idl Created 6 years, 2 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
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #import "ui/accessibility/platform/ax_platform_node_mac.h" 5 #import "ui/accessibility/platform/ax_platform_node_mac.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #import "ui/accessibility/platform/ax_platform_node_delegate.h" 10 #import "ui/accessibility/platform/ax_platform_node_delegate.h"
(...skipping 23 matching lines...) Expand all
34 {ui::AX_ROLE_CELL, @"AXCell"}, 34 {ui::AX_ROLE_CELL, @"AXCell"},
35 {ui::AX_ROLE_CHECK_BOX, NSAccessibilityCheckBoxRole}, 35 {ui::AX_ROLE_CHECK_BOX, NSAccessibilityCheckBoxRole},
36 {ui::AX_ROLE_COLOR_WELL, NSAccessibilityColorWellRole}, 36 {ui::AX_ROLE_COLOR_WELL, NSAccessibilityColorWellRole},
37 {ui::AX_ROLE_COLUMN, NSAccessibilityColumnRole}, 37 {ui::AX_ROLE_COLUMN, NSAccessibilityColumnRole},
38 {ui::AX_ROLE_COLUMN_HEADER, @"AXCell"}, 38 {ui::AX_ROLE_COLUMN_HEADER, @"AXCell"},
39 {ui::AX_ROLE_COMBO_BOX, NSAccessibilityComboBoxRole}, 39 {ui::AX_ROLE_COMBO_BOX, NSAccessibilityComboBoxRole},
40 {ui::AX_ROLE_COMPLEMENTARY, NSAccessibilityGroupRole}, 40 {ui::AX_ROLE_COMPLEMENTARY, NSAccessibilityGroupRole},
41 {ui::AX_ROLE_CONTENT_INFO, NSAccessibilityGroupRole}, 41 {ui::AX_ROLE_CONTENT_INFO, NSAccessibilityGroupRole},
42 {ui::AX_ROLE_DEFINITION, NSAccessibilityGroupRole}, 42 {ui::AX_ROLE_DEFINITION, NSAccessibilityGroupRole},
43 {ui::AX_ROLE_DESCRIPTION_LIST_DETAIL, NSAccessibilityGroupRole}, 43 {ui::AX_ROLE_DESCRIPTION_LIST_DETAIL, NSAccessibilityGroupRole},
44 {ui::AX_ROLE_DESCRIPTION_LIST, NSAccessibilityListRole},
44 {ui::AX_ROLE_DESCRIPTION_LIST_TERM, NSAccessibilityGroupRole}, 45 {ui::AX_ROLE_DESCRIPTION_LIST_TERM, NSAccessibilityGroupRole},
45 {ui::AX_ROLE_DIALOG, NSAccessibilityGroupRole}, 46 {ui::AX_ROLE_DIALOG, NSAccessibilityGroupRole},
46 {ui::AX_ROLE_DETAILS, NSAccessibilityGroupRole}, 47 {ui::AX_ROLE_DETAILS, NSAccessibilityGroupRole},
47 {ui::AX_ROLE_DIRECTORY, NSAccessibilityListRole}, 48 {ui::AX_ROLE_DIRECTORY, NSAccessibilityListRole},
48 {ui::AX_ROLE_DISCLOSURE_TRIANGLE, NSAccessibilityDisclosureTriangleRole}, 49 {ui::AX_ROLE_DISCLOSURE_TRIANGLE, NSAccessibilityDisclosureTriangleRole},
49 {ui::AX_ROLE_DIV, NSAccessibilityGroupRole}, 50 {ui::AX_ROLE_DIV, NSAccessibilityGroupRole},
50 {ui::AX_ROLE_DOCUMENT, NSAccessibilityGroupRole}, 51 {ui::AX_ROLE_DOCUMENT, NSAccessibilityGroupRole},
51 {ui::AX_ROLE_DRAWER, NSAccessibilityDrawerRole}, 52 {ui::AX_ROLE_DRAWER, NSAccessibilityDrawerRole},
52 {ui::AX_ROLE_EDITABLE_TEXT, NSAccessibilityTextFieldRole}, 53 {ui::AX_ROLE_EDITABLE_TEXT, NSAccessibilityTextFieldRole},
53 {ui::AX_ROLE_FIGCAPTION, NSAccessibilityGroupRole}, 54 {ui::AX_ROLE_FIGCAPTION, NSAccessibilityGroupRole},
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 delete this; 307 delete this;
307 } 308 }
308 309
309 gfx::NativeViewAccessible AXPlatformNodeMac::GetNativeViewAccessible() { 310 gfx::NativeViewAccessible AXPlatformNodeMac::GetNativeViewAccessible() {
310 if (!native_node_) 311 if (!native_node_)
311 native_node_.reset([[AXPlatformNodeCocoa alloc] initWithNode:this]); 312 native_node_.reset([[AXPlatformNodeCocoa alloc] initWithNode:this]);
312 return native_node_.get(); 313 return native_node_.get();
313 } 314 }
314 315
315 } // namespace ui 316 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698