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. | 750 // Accessors to IA2 role and state. |
751 int32 ia_role() const { return ia_role_; } | 751 int32 ia2_role() { return ia2_role_; } |
752 int32 ia_state() const { return ia_state_; } | 752 int32 ia2_state() { return ia2_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 } | |
758 | 753 |
759 private: | 754 private: |
760 // Add one to the reference count and return the same object. Always | 755 // Add one to the reference count and return the same object. Always |
761 // use this method when returning a BrowserAccessibilityWin object as | 756 // use this method when returning a BrowserAccessibilityWin object as |
762 // an output parameter to a COM interface, never use it otherwise. | 757 // an output parameter to a COM interface, never use it otherwise. |
763 BrowserAccessibilityWin* NewReference(); | 758 BrowserAccessibilityWin* NewReference(); |
764 | 759 |
765 // Many MSAA methods take a var_id parameter indicating that the operation | 760 // Many MSAA methods take a var_id parameter indicating that the operation |
766 // should be performed on a particular child ID, rather than this object. | 761 // should be performed on a particular child ID, rather than this object. |
767 // This method tries to figure out the target object from |var_id| and | 762 // 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... |
862 std::vector<int32> hyperlinks_; | 857 std::vector<int32> hyperlinks_; |
863 | 858 |
864 // Give BrowserAccessibility::Create access to our constructor. | 859 // Give BrowserAccessibility::Create access to our constructor. |
865 friend class BrowserAccessibility; | 860 friend class BrowserAccessibility; |
866 friend class BrowserAccessibilityRelation; | 861 friend class BrowserAccessibilityRelation; |
867 | 862 |
868 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); | 863 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); |
869 }; | 864 }; |
870 | 865 |
871 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 866 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
OLD | NEW |