| 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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 BrowserAccessibilityWin* owner() const { return owner_; } | 647 BrowserAccessibilityWin* owner() const { return owner_; } |
| 648 void SetOwner(BrowserAccessibilityWin* owner) { owner_ = owner; } | 648 void SetOwner(BrowserAccessibilityWin* owner) { owner_ = owner; } |
| 649 | 649 |
| 650 BrowserAccessibilityManager* Manager() const; | 650 BrowserAccessibilityManager* Manager() const; |
| 651 | 651 |
| 652 // | 652 // |
| 653 // AXPlatformNode overrides | 653 // AXPlatformNode overrides |
| 654 // | 654 // |
| 655 void Destroy() override; | 655 void Destroy() override; |
| 656 void Init(ui::AXPlatformNodeDelegate* delegate) override; | 656 void Init(ui::AXPlatformNodeDelegate* delegate) override; |
| 657 AXPlatformNode* GetFromUniqueId(int32_t unique_id) override; |
| 657 | 658 |
| 658 // Returns the IA2 text attributes for this object. | 659 // Returns the IA2 text attributes for this object. |
| 659 std::vector<base::string16> ComputeTextAttributes() const; | 660 std::vector<base::string16> ComputeTextAttributes() const; |
| 660 | 661 |
| 661 // Add one to the reference count and return the same object. Always | 662 // Add one to the reference count and return the same object. Always |
| 662 // use this method when returning a BrowserAccessibilityComWin object as | 663 // use this method when returning a BrowserAccessibilityComWin object as |
| 663 // an output parameter to a COM interface, never use it otherwise. | 664 // an output parameter to a COM interface, never use it otherwise. |
| 664 BrowserAccessibilityComWin* NewReference(); | 665 BrowserAccessibilityComWin* NewReference(); |
| 665 | 666 |
| 666 // Returns a list of IA2 attributes indicating the offsets in the text of a | 667 // Returns a list of IA2 attributes indicating the offsets in the text of a |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 | 835 |
| 835 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); | 836 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); |
| 836 }; | 837 }; |
| 837 | 838 |
| 838 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( | 839 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( |
| 839 BrowserAccessibility* obj); | 840 BrowserAccessibility* obj); |
| 840 | 841 |
| 841 } // namespace content | 842 } // namespace content |
| 842 | 843 |
| 843 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ | 844 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ |
| OLD | NEW |