| 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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 BrowserAccessibilityWin* owner() const { return owner_; } | 746 BrowserAccessibilityWin* owner() const { return owner_; } |
| 747 void SetOwner(BrowserAccessibilityWin* owner) { owner_ = owner; } | 747 void SetOwner(BrowserAccessibilityWin* owner) { owner_ = owner; } |
| 748 | 748 |
| 749 BrowserAccessibilityManager* Manager() const; | 749 BrowserAccessibilityManager* Manager() const; |
| 750 | 750 |
| 751 // | 751 // |
| 752 // AXPlatformNode overrides | 752 // AXPlatformNode overrides |
| 753 // | 753 // |
| 754 void Destroy() override; | 754 void Destroy() override; |
| 755 void Init(ui::AXPlatformNodeDelegate* delegate) override; | 755 void Init(ui::AXPlatformNodeDelegate* delegate) override; |
| 756 AXPlatformNode* GetFromUniqueId(int32_t unique_id) override; |
| 756 | 757 |
| 757 // Returns the IA2 text attributes for this object. | 758 // Returns the IA2 text attributes for this object. |
| 758 std::vector<base::string16> ComputeTextAttributes() const; | 759 std::vector<base::string16> ComputeTextAttributes() const; |
| 759 | 760 |
| 760 // Add one to the reference count and return the same object. Always | 761 // Add one to the reference count and return the same object. Always |
| 761 // use this method when returning a BrowserAccessibilityComWin object as | 762 // use this method when returning a BrowserAccessibilityComWin object as |
| 762 // an output parameter to a COM interface, never use it otherwise. | 763 // an output parameter to a COM interface, never use it otherwise. |
| 763 BrowserAccessibilityComWin* NewReference(); | 764 BrowserAccessibilityComWin* NewReference(); |
| 764 | 765 |
| 765 // Returns a list of IA2 attributes indicating the offsets in the text of a | 766 // Returns a list of IA2 attributes indicating the offsets in the text of a |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 | 981 |
| 981 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); | 982 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); |
| 982 }; | 983 }; |
| 983 | 984 |
| 984 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( | 985 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( |
| 985 BrowserAccessibility* obj); | 986 BrowserAccessibility* obj); |
| 986 | 987 |
| 987 } // namespace content | 988 } // namespace content |
| 988 | 989 |
| 989 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ | 990 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ |
| OLD | NEW |