OLD | NEW |
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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 ui::TextBoundaryDirection direction); | 831 ui::TextBoundaryDirection direction); |
832 | 832 |
833 // Return a pointer to the object corresponding to the given id, | 833 // Return a pointer to the object corresponding to the given id, |
834 // does not make a new reference. | 834 // does not make a new reference. |
835 BrowserAccessibilityWin* GetFromID(int32 id); | 835 BrowserAccessibilityWin* GetFromID(int32 id); |
836 | 836 |
837 // Returns true if this is a list box option with a parent of type list box, | 837 // Returns true if this is a list box option with a parent of type list box, |
838 // or a menu list option with a parent of type menu list popup. | 838 // or a menu list option with a parent of type menu list popup. |
839 bool IsListBoxOptionOrMenuListOption(); | 839 bool IsListBoxOptionOrMenuListOption(); |
840 | 840 |
| 841 // Updates object attributes of IA2 with html attributes. |
| 842 void UpdateRequiredAttributes(); |
| 843 |
841 // Windows-specific unique ID (unique within the browser process), | 844 // Windows-specific unique ID (unique within the browser process), |
842 // used for get_accChild, NotifyWinEvent, and as the unique ID for | 845 // used for get_accChild, NotifyWinEvent, and as the unique ID for |
843 // IAccessible2 and ISimpleDOM. | 846 // IAccessible2 and ISimpleDOM. |
844 LONG unique_id_win_; | 847 LONG unique_id_win_; |
845 | 848 |
846 struct WinAttributes { | 849 struct WinAttributes { |
847 WinAttributes(); | 850 WinAttributes(); |
848 ~WinAttributes(); | 851 ~WinAttributes(); |
849 | 852 |
850 // IAccessible role and state. | 853 // IAccessible role and state. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 // Give BrowserAccessibility::Create access to our constructor. | 899 // Give BrowserAccessibility::Create access to our constructor. |
897 friend class BrowserAccessibility; | 900 friend class BrowserAccessibility; |
898 friend class BrowserAccessibilityRelation; | 901 friend class BrowserAccessibilityRelation; |
899 | 902 |
900 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); | 903 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); |
901 }; | 904 }; |
902 | 905 |
903 } // namespace content | 906 } // namespace content |
904 | 907 |
905 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 908 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
OLD | NEW |