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

Side by Side Diff: webkit/glue/glue_accessibility_object.cc

Issue 173488: Adds support for WAI-ARIA role option, by adding exposure of MSAA role ROLE_S... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_accessibility.cc ('k') | webkit/glue/webaccessibility.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 "config.h" 5 #include "config.h"
6 6
7 #include "AccessibilityObject.h" 7 #include "AccessibilityObject.h"
8 #include "EventHandler.h" 8 #include "EventHandler.h"
9 #include "FrameView.h" 9 #include "FrameView.h"
10 #include "PlatformKeyboardEvent.h" 10 #include "PlatformKeyboardEvent.h"
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 case WebCore::RadioGroupRole: 384 case WebCore::RadioGroupRole:
385 case WebCore::GroupRole: 385 case WebCore::GroupRole:
386 return WebAccessibility::ROLE_GROUPING; 386 return WebAccessibility::ROLE_GROUPING;
387 case WebCore::LinkRole: 387 case WebCore::LinkRole:
388 case WebCore::WebCoreLinkRole: 388 case WebCore::WebCoreLinkRole:
389 return WebAccessibility::ROLE_LINK; 389 return WebAccessibility::ROLE_LINK;
390 case WebCore::ListRole: 390 case WebCore::ListRole:
391 return WebAccessibility::ROLE_LIST; 391 return WebAccessibility::ROLE_LIST;
392 case WebCore::ListBoxRole: 392 case WebCore::ListBoxRole:
393 return WebAccessibility::ROLE_LISTBOX; 393 return WebAccessibility::ROLE_LISTBOX;
394 case WebCore::ListBoxOptionRole:
395 return WebAccessibility::ROLE_LISTITEM;
394 case WebCore::MenuBarRole: 396 case WebCore::MenuBarRole:
395 return WebAccessibility::ROLE_MENUBAR; 397 return WebAccessibility::ROLE_MENUBAR;
396 case WebCore::MenuButtonRole: 398 case WebCore::MenuButtonRole:
397 case WebCore::MenuItemRole: 399 case WebCore::MenuItemRole:
398 return WebAccessibility::ROLE_MENUITEM; 400 return WebAccessibility::ROLE_MENUITEM;
399 case WebCore::MenuRole: 401 case WebCore::MenuRole:
400 return WebAccessibility::ROLE_MENUPOPUP; 402 return WebAccessibility::ROLE_MENUPOPUP;
401 case WebCore::OutlineRole: 403 case WebCore::OutlineRole:
402 return WebAccessibility::ROLE_OUTLINE; 404 return WebAccessibility::ROLE_OUTLINE;
403 case WebCore::TabGroupRole: 405 case WebCore::TabGroupRole:
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 if (!obj) 472 if (!obj)
471 return NULL; 473 return NULL;
472 474
473 GlueAccessibilityObject* result = 475 GlueAccessibilityObject* result =
474 static_cast<GlueAccessibilityObject*>(obj->wrapper()); 476 static_cast<GlueAccessibilityObject*>(obj->wrapper());
475 if (!result) 477 if (!result)
476 result = CreateInstance(obj); 478 result = CreateInstance(obj);
477 479
478 return result; 480 return result;
479 } 481 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_accessibility.cc ('k') | webkit/glue/webaccessibility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698