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

Side by Side Diff: chrome/browser/browser_accessibility.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, 4 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 | « no previous file | webkit/glue/glue_accessibility_object.cc » ('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-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/browser/browser_accessibility.h" 5 #include "chrome/browser/browser_accessibility.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/browser_accessibility_manager.h" 8 #include "chrome/browser/browser_accessibility_manager.h"
9 9
10 using webkit_glue::WebAccessibility; 10 using webkit_glue::WebAccessibility;
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 return ROLE_SYSTEM_DOCUMENT; 573 return ROLE_SYSTEM_DOCUMENT;
574 case WebAccessibility::ROLE_GRAPHIC: 574 case WebAccessibility::ROLE_GRAPHIC:
575 return ROLE_SYSTEM_GRAPHIC; 575 return ROLE_SYSTEM_GRAPHIC;
576 case WebAccessibility::ROLE_GROUPING: 576 case WebAccessibility::ROLE_GROUPING:
577 return ROLE_SYSTEM_GROUPING; 577 return ROLE_SYSTEM_GROUPING;
578 case WebAccessibility::ROLE_LINK: 578 case WebAccessibility::ROLE_LINK:
579 return ROLE_SYSTEM_LINK; 579 return ROLE_SYSTEM_LINK;
580 case WebAccessibility::ROLE_LIST: 580 case WebAccessibility::ROLE_LIST:
581 case WebAccessibility::ROLE_LISTBOX: 581 case WebAccessibility::ROLE_LISTBOX:
582 return ROLE_SYSTEM_LIST; 582 return ROLE_SYSTEM_LIST;
583 case WebAccessibility::ROLE_LISTITEM:
584 return ROLE_SYSTEM_LISTITEM;
583 case WebAccessibility::ROLE_MENUBAR: 585 case WebAccessibility::ROLE_MENUBAR:
584 return ROLE_SYSTEM_MENUBAR; 586 return ROLE_SYSTEM_MENUBAR;
585 case WebAccessibility::ROLE_MENUITEM: 587 case WebAccessibility::ROLE_MENUITEM:
586 return ROLE_SYSTEM_MENUITEM; 588 return ROLE_SYSTEM_MENUITEM;
587 case WebAccessibility::ROLE_MENUPOPUP: 589 case WebAccessibility::ROLE_MENUPOPUP:
588 return ROLE_SYSTEM_MENUPOPUP; 590 return ROLE_SYSTEM_MENUPOPUP;
589 case WebAccessibility::ROLE_OUTLINE: 591 case WebAccessibility::ROLE_OUTLINE:
590 return ROLE_SYSTEM_OUTLINE; 592 return ROLE_SYSTEM_OUTLINE;
591 case WebAccessibility::ROLE_PAGETABLIST: 593 case WebAccessibility::ROLE_PAGETABLIST:
592 return ROLE_SYSTEM_PAGETABLIST; 594 return ROLE_SYSTEM_PAGETABLIST;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 state |= STATE_SYSTEM_READONLY; 666 state |= STATE_SYSTEM_READONLY;
665 667
666 if ((browser_accessibility_state >> WebAccessibility::STATE_TRAVERSED) & 1) 668 if ((browser_accessibility_state >> WebAccessibility::STATE_TRAVERSED) & 1)
667 state |= STATE_SYSTEM_TRAVERSED; 669 state |= STATE_SYSTEM_TRAVERSED;
668 670
669 if ((browser_accessibility_state >> WebAccessibility::STATE_UNAVAILABLE) & 1) 671 if ((browser_accessibility_state >> WebAccessibility::STATE_UNAVAILABLE) & 1)
670 state |= STATE_SYSTEM_UNAVAILABLE; 672 state |= STATE_SYSTEM_UNAVAILABLE;
671 673
672 return state; 674 return state;
673 } 675 }
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/glue_accessibility_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698