| 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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 const _ATL_INTMAP_ENTRY* entries, | 708 const _ATL_INTMAP_ENTRY* entries, |
| 709 REFIID iid, | 709 REFIID iid, |
| 710 void** object); | 710 void** object); |
| 711 | 711 |
| 712 // Computes and caches the IA2 text style attributes for the text and other | 712 // Computes and caches the IA2 text style attributes for the text and other |
| 713 // embedded child objects. | 713 // embedded child objects. |
| 714 CONTENT_EXPORT void ComputeStylesIfNeeded(); | 714 CONTENT_EXPORT void ComputeStylesIfNeeded(); |
| 715 | 715 |
| 716 // |offset| could either be a text character or a child index in case of | 716 // |offset| could either be a text character or a child index in case of |
| 717 // non-text objects. | 717 // non-text objects. |
| 718 AXPlatformPosition::AXPositionInstance CreatePositionForSelectionAt( | 718 AXPlatformPosition::ConcreteInstance CreatePositionForSelectionAt( |
| 719 int offset) const; | 719 int offset) const; |
| 720 | 720 |
| 721 // Public accessors (these do not have COM accessible accessors) | 721 // Public accessors (these do not have COM accessible accessors) |
| 722 const base::string16& role_name() const { return win_attributes_->role_name; } | 722 const base::string16& role_name() const { return win_attributes_->role_name; } |
| 723 const std::map<int, std::vector<base::string16>>& offset_to_text_attributes() | 723 const std::map<int, std::vector<base::string16>>& offset_to_text_attributes() |
| 724 const { | 724 const { |
| 725 return win_attributes_->offset_to_text_attributes; | 725 return win_attributes_->offset_to_text_attributes; |
| 726 } | 726 } |
| 727 | 727 |
| 728 private: | 728 private: |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 990 | 990 |
| 991 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); | 991 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); |
| 992 }; | 992 }; |
| 993 | 993 |
| 994 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( | 994 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( |
| 995 BrowserAccessibility* obj); | 995 BrowserAccessibility* obj); |
| 996 | 996 |
| 997 } // namespace content | 997 } // namespace content |
| 998 | 998 |
| 999 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ | 999 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ |
| OLD | NEW |