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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 | 740 |
741 // | 741 // |
742 // CComObjectRootEx methods. | 742 // CComObjectRootEx methods. |
743 // | 743 // |
744 | 744 |
745 CONTENT_EXPORT HRESULT WINAPI InternalQueryInterface(void* this_ptr, | 745 CONTENT_EXPORT HRESULT WINAPI InternalQueryInterface(void* this_ptr, |
746 const _ATL_INTMAP_ENTRY* entries, | 746 const _ATL_INTMAP_ENTRY* entries, |
747 REFIID iid, | 747 REFIID iid, |
748 void** object); | 748 void** object); |
749 | 749 |
750 // Accessors to IA2 role and state. | 750 // Accessors. |
751 int32 ia2_role() { return ia2_role_; } | 751 int32 ia_role() const { return ia_role_; } |
752 int32 ia2_state() { return ia2_state_; } | 752 int32 ia_state() const { return ia_state_; } |
| 753 int32 ia2_role() const { return ia2_role_; } |
| 754 int32 ia2_state() const { return ia2_state_; } |
| 755 const std::vector<string16>& ia2_attributes() const { |
| 756 return ia2_attributes_;\ |
| 757 } |
753 | 758 |
754 private: | 759 private: |
755 // Add one to the reference count and return the same object. Always | 760 // Add one to the reference count and return the same object. Always |
756 // use this method when returning a BrowserAccessibilityWin object as | 761 // use this method when returning a BrowserAccessibilityWin object as |
757 // an output parameter to a COM interface, never use it otherwise. | 762 // an output parameter to a COM interface, never use it otherwise. |
758 BrowserAccessibilityWin* NewReference(); | 763 BrowserAccessibilityWin* NewReference(); |
759 | 764 |
760 // Many MSAA methods take a var_id parameter indicating that the operation | 765 // Many MSAA methods take a var_id parameter indicating that the operation |
761 // should be performed on a particular child ID, rather than this object. | 766 // should be performed on a particular child ID, rather than this object. |
762 // This method tries to figure out the target object from |var_id| and | 767 // This method tries to figure out the target object from |var_id| and |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 std::vector<int32> hyperlinks_; | 862 std::vector<int32> hyperlinks_; |
858 | 863 |
859 // Give BrowserAccessibility::Create access to our constructor. | 864 // Give BrowserAccessibility::Create access to our constructor. |
860 friend class BrowserAccessibility; | 865 friend class BrowserAccessibility; |
861 friend class BrowserAccessibilityRelation; | 866 friend class BrowserAccessibilityRelation; |
862 | 867 |
863 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); | 868 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); |
864 }; | 869 }; |
865 | 870 |
866 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 871 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
OLD | NEW |