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

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

Issue 692643005: ARIA state/property(aria-relevant,aria-busy) are not exposed correctly on MAC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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_manager_win.h" 5 #include "content/browser/accessibility/browser_accessibility_manager_win.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/win/scoped_comptr.h" 8 #include "base/win/scoped_comptr.h"
9 #include "base/win/windows_version.h" 9 #include "base/win/windows_version.h"
10 #include "content/browser/accessibility/browser_accessibility_state_impl.h" 10 #include "content/browser/accessibility/browser_accessibility_state_impl.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 case ui::AX_EVENT_CHILDREN_CHANGED: 189 case ui::AX_EVENT_CHILDREN_CHANGED:
190 event_id = EVENT_OBJECT_REORDER; 190 event_id = EVENT_OBJECT_REORDER;
191 break; 191 break;
192 case ui::AX_EVENT_FOCUS: 192 case ui::AX_EVENT_FOCUS:
193 event_id = EVENT_OBJECT_FOCUS; 193 event_id = EVENT_OBJECT_FOCUS;
194 break; 194 break;
195 case ui::AX_EVENT_INVALID_STATUS_CHANGED: 195 case ui::AX_EVENT_INVALID_STATUS_CHANGED:
196 event_id = EVENT_OBJECT_STATECHANGE; 196 event_id = EVENT_OBJECT_STATECHANGE;
197 break; 197 break;
198 case ui::AX_EVENT_LIVE_REGION_CHANGED: 198 case ui::AX_EVENT_LIVE_REGION_CHANGED:
199 if (node->GetBoolAttribute(ui::AX_ATTR_CONTAINER_LIVE_BUSY))
dmazzoni 2014/11/19 17:17:27 I don't think you should delete this. We don't wa
200 return;
201 event_id = EVENT_OBJECT_LIVEREGIONCHANGED; 199 event_id = EVENT_OBJECT_LIVEREGIONCHANGED;
202 break; 200 break;
203 case ui::AX_EVENT_LOAD_COMPLETE: 201 case ui::AX_EVENT_LOAD_COMPLETE:
204 event_id = IA2_EVENT_DOCUMENT_LOAD_COMPLETE; 202 event_id = IA2_EVENT_DOCUMENT_LOAD_COMPLETE;
205 break; 203 break;
206 case ui::AX_EVENT_MENU_LIST_ITEM_SELECTED: 204 case ui::AX_EVENT_MENU_LIST_ITEM_SELECTED:
207 event_id = EVENT_OBJECT_FOCUS; 205 event_id = EVENT_OBJECT_FOCUS;
208 break; 206 break;
209 case ui::AX_EVENT_MENU_LIST_VALUE_CHANGED: 207 case ui::AX_EVENT_MENU_LIST_VALUE_CHANGED:
210 event_id = EVENT_OBJECT_VALUECHANGE; 208 event_id = EVENT_OBJECT_VALUECHANGE;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 unique_id_to_ax_id_map_.find(unique_id_win); 280 unique_id_to_ax_id_map_.find(unique_id_win);
283 if (iter != unique_id_to_ax_id_map_.end()) { 281 if (iter != unique_id_to_ax_id_map_.end()) {
284 BrowserAccessibility* result = GetFromID(iter->second); 282 BrowserAccessibility* result = GetFromID(iter->second);
285 if (result) 283 if (result)
286 return result->ToBrowserAccessibilityWin(); 284 return result->ToBrowserAccessibilityWin();
287 } 285 }
288 return NULL; 286 return NULL;
289 } 287 }
290 288
291 } // namespace content 289 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698