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

Side by Side Diff: content/browser/accessibility/browser_accessibility_win.h

Issue 1057083002: Fix menu list and list box screen reader accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac test Created 5 years, 8 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
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 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 #include <oleacc.h> 10 #include <oleacc.h>
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 // return the offset of that boundary. 866 // return the offset of that boundary.
867 LONG FindBoundary(const base::string16& text, 867 LONG FindBoundary(const base::string16& text,
868 IA2TextBoundaryType ia2_boundary, 868 IA2TextBoundaryType ia2_boundary,
869 LONG start_offset, 869 LONG start_offset,
870 ui::TextBoundaryDirection direction); 870 ui::TextBoundaryDirection direction);
871 871
872 // Return a pointer to the object corresponding to the given id, 872 // Return a pointer to the object corresponding to the given id,
873 // does not make a new reference. 873 // does not make a new reference.
874 BrowserAccessibilityWin* GetFromID(int32 id); 874 BrowserAccessibilityWin* GetFromID(int32 id);
875 875
876 // Returns true if this is a list box option with a parent of type list box,
877 // or a menu list option with a parent of type menu list popup.
878 bool IsListBoxOptionOrMenuListOption();
879
876 // Windows-specific unique ID (unique within the browser process), 880 // Windows-specific unique ID (unique within the browser process),
877 // used for get_accChild, NotifyWinEvent, and as the unique ID for 881 // used for get_accChild, NotifyWinEvent, and as the unique ID for
878 // IAccessible2 and ISimpleDOM. 882 // IAccessible2 and ISimpleDOM.
879 LONG unique_id_win_; 883 LONG unique_id_win_;
880 884
881 struct WinAttributes { 885 struct WinAttributes {
882 WinAttributes(); 886 WinAttributes();
883 887
884 // IAccessible role and state. 888 // IAccessible role and state.
885 int32 ia_role; 889 int32 ia_role;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 // Give BrowserAccessibility::Create access to our constructor. 933 // Give BrowserAccessibility::Create access to our constructor.
930 friend class BrowserAccessibility; 934 friend class BrowserAccessibility;
931 friend class BrowserAccessibilityRelation; 935 friend class BrowserAccessibilityRelation;
932 936
933 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); 937 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin);
934 }; 938 };
935 939
936 } // namespace content 940 } // namespace content
937 941
938 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 942 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698