OLD | NEW |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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_COM_WIN_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_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 return win_attributes_->hyperlinks; | 740 return win_attributes_->hyperlinks; |
741 } | 741 } |
742 | 742 |
743 private: | 743 private: |
744 // Setter and getter for the browser accessibility owner | 744 // Setter and getter for the browser accessibility owner |
745 BrowserAccessibilityWin* GetOwner() const { return owner_; } | 745 BrowserAccessibilityWin* GetOwner() const { return owner_; } |
746 void SetOwner(BrowserAccessibilityWin* owner) { owner_ = owner; } | 746 void SetOwner(BrowserAccessibilityWin* owner) { owner_ = owner; } |
747 | 747 |
748 BrowserAccessibilityManager* Manager() const; | 748 BrowserAccessibilityManager* Manager() const; |
749 | 749 |
| 750 // |
| 751 // AXPlatformNode overrides |
| 752 // |
| 753 void Destroy() override; |
| 754 |
750 // Returns the IA2 text attributes for this object. | 755 // Returns the IA2 text attributes for this object. |
751 std::vector<base::string16> ComputeTextAttributes() const; | 756 std::vector<base::string16> ComputeTextAttributes() const; |
752 | 757 |
753 // Add one to the reference count and return the same object. Always | 758 // Add one to the reference count and return the same object. Always |
754 // use this method when returning a BrowserAccessibilityComWin object as | 759 // use this method when returning a BrowserAccessibilityComWin object as |
755 // an output parameter to a COM interface, never use it otherwise. | 760 // an output parameter to a COM interface, never use it otherwise. |
756 BrowserAccessibilityComWin* NewReference(); | 761 BrowserAccessibilityComWin* NewReference(); |
757 | 762 |
758 // Returns a list of IA2 attributes indicating the offsets in the text of a | 763 // Returns a list of IA2 attributes indicating the offsets in the text of a |
759 // leaf object, such as a text field or static text, where spelling errors are | 764 // leaf object, such as a text field or static text, where spelling errors are |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 | 978 |
974 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); | 979 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); |
975 }; | 980 }; |
976 | 981 |
977 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( | 982 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( |
978 BrowserAccessibility* obj); | 983 BrowserAccessibility* obj); |
979 | 984 |
980 } // namespace content | 985 } // namespace content |
981 | 986 |
982 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ | 987 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ |
OLD | NEW |