| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WIN_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
| 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 const _ATL_INTMAP_ENTRY* entries, | 715 const _ATL_INTMAP_ENTRY* entries, |
| 716 REFIID iid, | 716 REFIID iid, |
| 717 void** object); | 717 void** object); |
| 718 | 718 |
| 719 // Computes and caches the IA2 text style attributes for the text and other | 719 // Computes and caches the IA2 text style attributes for the text and other |
| 720 // embedded child objects. | 720 // embedded child objects. |
| 721 CONTENT_EXPORT void ComputeStylesIfNeeded(); | 721 CONTENT_EXPORT void ComputeStylesIfNeeded(); |
| 722 | 722 |
| 723 // |offset| could either be a text character or a child index in case of | 723 // |offset| could either be a text character or a child index in case of |
| 724 // non-text objects. | 724 // non-text objects. |
| 725 CONTENT_EXPORT AXPlatformPosition::AXPositionInstance CreatePositionAt( | 725 AXPlatformPosition::AXPositionInstance CreatePositionForSelectionAt( |
| 726 int offset) const override; | 726 int offset) const; |
| 727 | 727 |
| 728 CONTENT_EXPORT base::string16 GetText() const override; | 728 CONTENT_EXPORT base::string16 GetText() const override; |
| 729 | 729 |
| 730 // Accessors. | 730 // Accessors. |
| 731 int32_t ia_role() const { return win_attributes_->ia_role; } | 731 int32_t ia_role() const { return win_attributes_->ia_role; } |
| 732 int32_t ia_state() const { return win_attributes_->ia_state; } | 732 int32_t ia_state() const { return win_attributes_->ia_state; } |
| 733 const base::string16& role_name() const { return win_attributes_->role_name; } | 733 const base::string16& role_name() const { return win_attributes_->role_name; } |
| 734 int32_t ia2_role() const { return win_attributes_->ia2_role; } | 734 int32_t ia2_role() const { return win_attributes_->ia2_role; } |
| 735 int32_t ia2_state() const { return win_attributes_->ia2_state; } | 735 int32_t ia2_state() const { return win_attributes_->ia2_state; } |
| 736 const std::vector<base::string16>& ia2_attributes() const { | 736 const std::vector<base::string16>& ia2_attributes() const { |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 | 980 |
| 981 CONTENT_EXPORT BrowserAccessibilityWin* | 981 CONTENT_EXPORT BrowserAccessibilityWin* |
| 982 ToBrowserAccessibilityWin(BrowserAccessibility* obj); | 982 ToBrowserAccessibilityWin(BrowserAccessibility* obj); |
| 983 | 983 |
| 984 CONTENT_EXPORT const BrowserAccessibilityWin* | 984 CONTENT_EXPORT const BrowserAccessibilityWin* |
| 985 ToBrowserAccessibilityWin(const BrowserAccessibility* obj); | 985 ToBrowserAccessibilityWin(const BrowserAccessibility* obj); |
| 986 | 986 |
| 987 } // namespace content | 987 } // namespace content |
| 988 | 988 |
| 989 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 989 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
| OLD | NEW |