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

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

Issue 714063002: ARIA role spinbutton should expose AXRole as AXIncrementor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removing input-type number changes Created 6 years, 1 month 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 {ui::AX_ROLE_GRID, NSAccessibilityGridRole}, 59 {ui::AX_ROLE_GRID, NSAccessibilityGridRole},
60 {ui::AX_ROLE_GROUP, NSAccessibilityGroupRole}, 60 {ui::AX_ROLE_GROUP, NSAccessibilityGroupRole},
61 {ui::AX_ROLE_GROW_AREA, NSAccessibilityGrowAreaRole}, 61 {ui::AX_ROLE_GROW_AREA, NSAccessibilityGrowAreaRole},
62 {ui::AX_ROLE_HEADING, @"AXHeading"}, 62 {ui::AX_ROLE_HEADING, @"AXHeading"},
63 {ui::AX_ROLE_HELP_TAG, NSAccessibilityHelpTagRole}, 63 {ui::AX_ROLE_HELP_TAG, NSAccessibilityHelpTagRole},
64 {ui::AX_ROLE_IFRAME, NSAccessibilityGroupRole}, 64 {ui::AX_ROLE_IFRAME, NSAccessibilityGroupRole},
65 {ui::AX_ROLE_IGNORED, NSAccessibilityUnknownRole}, 65 {ui::AX_ROLE_IGNORED, NSAccessibilityUnknownRole},
66 {ui::AX_ROLE_IMAGE, NSAccessibilityImageRole}, 66 {ui::AX_ROLE_IMAGE, NSAccessibilityImageRole},
67 {ui::AX_ROLE_IMAGE_MAP, NSAccessibilityGroupRole}, 67 {ui::AX_ROLE_IMAGE_MAP, NSAccessibilityGroupRole},
68 {ui::AX_ROLE_IMAGE_MAP_LINK, NSAccessibilityLinkRole}, 68 {ui::AX_ROLE_IMAGE_MAP_LINK, NSAccessibilityLinkRole},
69 {ui::AX_ROLE_INCREMENTOR, NSAccessibilityIncrementorRole},
70 {ui::AX_ROLE_LABEL_TEXT, NSAccessibilityGroupRole}, 69 {ui::AX_ROLE_LABEL_TEXT, NSAccessibilityGroupRole},
71 {ui::AX_ROLE_LINK, NSAccessibilityLinkRole}, 70 {ui::AX_ROLE_LINK, NSAccessibilityLinkRole},
72 {ui::AX_ROLE_LIST, NSAccessibilityListRole}, 71 {ui::AX_ROLE_LIST, NSAccessibilityListRole},
73 {ui::AX_ROLE_LIST_BOX, NSAccessibilityListRole}, 72 {ui::AX_ROLE_LIST_BOX, NSAccessibilityListRole},
74 {ui::AX_ROLE_LIST_BOX_OPTION, NSAccessibilityStaticTextRole}, 73 {ui::AX_ROLE_LIST_BOX_OPTION, NSAccessibilityStaticTextRole},
75 {ui::AX_ROLE_LIST_ITEM, NSAccessibilityGroupRole}, 74 {ui::AX_ROLE_LIST_ITEM, NSAccessibilityGroupRole},
76 {ui::AX_ROLE_LIST_MARKER, @"AXListMarker"}, 75 {ui::AX_ROLE_LIST_MARKER, @"AXListMarker"},
77 {ui::AX_ROLE_LOG, NSAccessibilityGroupRole}, 76 {ui::AX_ROLE_LOG, NSAccessibilityGroupRole},
78 {ui::AX_ROLE_MAIN, NSAccessibilityGroupRole}, 77 {ui::AX_ROLE_MAIN, NSAccessibilityGroupRole},
79 {ui::AX_ROLE_MARQUEE, NSAccessibilityGroupRole}, 78 {ui::AX_ROLE_MARQUEE, NSAccessibilityGroupRole},
(...skipping 23 matching lines...) Expand all
103 {ui::AX_ROLE_ROOT_WEB_AREA, @"AXWebArea"}, 102 {ui::AX_ROLE_ROOT_WEB_AREA, @"AXWebArea"},
104 {ui::AX_ROLE_ROW, NSAccessibilityRowRole}, 103 {ui::AX_ROLE_ROW, NSAccessibilityRowRole},
105 {ui::AX_ROLE_ROW_HEADER, @"AXCell"}, 104 {ui::AX_ROLE_ROW_HEADER, @"AXCell"},
106 {ui::AX_ROLE_RULER, NSAccessibilityRulerRole}, 105 {ui::AX_ROLE_RULER, NSAccessibilityRulerRole},
107 {ui::AX_ROLE_RULER_MARKER, NSAccessibilityRulerMarkerRole}, 106 {ui::AX_ROLE_RULER_MARKER, NSAccessibilityRulerMarkerRole},
108 {ui::AX_ROLE_SCROLL_BAR, NSAccessibilityScrollBarRole}, 107 {ui::AX_ROLE_SCROLL_BAR, NSAccessibilityScrollBarRole},
109 {ui::AX_ROLE_SEARCH, NSAccessibilityGroupRole}, 108 {ui::AX_ROLE_SEARCH, NSAccessibilityGroupRole},
110 {ui::AX_ROLE_SHEET, NSAccessibilitySheetRole}, 109 {ui::AX_ROLE_SHEET, NSAccessibilitySheetRole},
111 {ui::AX_ROLE_SLIDER, NSAccessibilitySliderRole}, 110 {ui::AX_ROLE_SLIDER, NSAccessibilitySliderRole},
112 {ui::AX_ROLE_SLIDER_THUMB, NSAccessibilityValueIndicatorRole}, 111 {ui::AX_ROLE_SLIDER_THUMB, NSAccessibilityValueIndicatorRole},
113 {ui::AX_ROLE_SPIN_BUTTON, NSAccessibilitySliderRole}, 112 {ui::AX_ROLE_SPIN_BUTTON, NSAccessibilityIncrementorRole},
114 {ui::AX_ROLE_SPLITTER, NSAccessibilitySplitterRole}, 113 {ui::AX_ROLE_SPLITTER, NSAccessibilitySplitterRole},
115 {ui::AX_ROLE_SPLIT_GROUP, NSAccessibilitySplitGroupRole}, 114 {ui::AX_ROLE_SPLIT_GROUP, NSAccessibilitySplitGroupRole},
116 {ui::AX_ROLE_STATIC_TEXT, NSAccessibilityStaticTextRole}, 115 {ui::AX_ROLE_STATIC_TEXT, NSAccessibilityStaticTextRole},
117 {ui::AX_ROLE_STATUS, NSAccessibilityGroupRole}, 116 {ui::AX_ROLE_STATUS, NSAccessibilityGroupRole},
118 {ui::AX_ROLE_SVG_ROOT, NSAccessibilityGroupRole}, 117 {ui::AX_ROLE_SVG_ROOT, NSAccessibilityGroupRole},
119 {ui::AX_ROLE_SYSTEM_WIDE, NSAccessibilityUnknownRole}, 118 {ui::AX_ROLE_SYSTEM_WIDE, NSAccessibilityUnknownRole},
120 {ui::AX_ROLE_TAB, NSAccessibilityRadioButtonRole}, 119 {ui::AX_ROLE_TAB, NSAccessibilityRadioButtonRole},
121 {ui::AX_ROLE_TABLE, NSAccessibilityTableRole}, 120 {ui::AX_ROLE_TABLE, NSAccessibilityTableRole},
122 {ui::AX_ROLE_TABLE_HEADER_CONTAINER, NSAccessibilityGroupRole}, 121 {ui::AX_ROLE_TABLE_HEADER_CONTAINER, NSAccessibilityGroupRole},
123 {ui::AX_ROLE_TAB_LIST, NSAccessibilityTabGroupRole}, 122 {ui::AX_ROLE_TAB_LIST, NSAccessibilityTabGroupRole},
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 delete this; 310 delete this;
312 } 311 }
313 312
314 gfx::NativeViewAccessible AXPlatformNodeMac::GetNativeViewAccessible() { 313 gfx::NativeViewAccessible AXPlatformNodeMac::GetNativeViewAccessible() {
315 if (!native_node_) 314 if (!native_node_)
316 native_node_.reset([[AXPlatformNodeCocoa alloc] initWithNode:this]); 315 native_node_.reset([[AXPlatformNodeCocoa alloc] initWithNode:this]);
317 return native_node_.get(); 316 return native_node_.get();
318 } 317 }
319 318
320 } // namespace ui 319 } // 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