| 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 // Accessors. | 721 // Accessors. |
| 722 int32_t ia_role() const { return win_attributes_->ia_role; } | 722 int32_t ia_role() const { return win_attributes_->ia_role; } |
| 723 int32_t ia_state() const { return win_attributes_->ia_state; } | 723 int32_t ia_state() const { return win_attributes_->ia_state; } |
| 724 const base::string16& role_name() const { return win_attributes_->role_name; } | 724 const base::string16& role_name() const { return win_attributes_->role_name; } |
| 725 int32_t ia2_role() const { return win_attributes_->ia2_role; } | 725 int32_t ia2_role() const { return win_attributes_->ia2_role; } |
| 726 int32_t ia2_state() const { return win_attributes_->ia2_state; } | 726 int32_t ia2_state() const { return win_attributes_->ia2_state; } |
| 727 const std::vector<base::string16>& ia2_attributes() const { | 727 const std::vector<base::string16>& ia2_attributes() const { |
| 728 return win_attributes_->ia2_attributes; | 728 return win_attributes_->ia2_attributes; |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 984 | 984 |
| 985 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); | 985 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); |
| 986 }; | 986 }; |
| 987 | 987 |
| 988 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( | 988 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( |
| 989 BrowserAccessibility* obj); | 989 BrowserAccessibility* obj); |
| 990 | 990 |
| 991 } // namespace content | 991 } // namespace content |
| 992 | 992 |
| 993 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ | 993 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ |
| OLD | NEW |