OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |