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