| 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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 return win_attributes_->offset_to_text_attributes; | 737 return win_attributes_->offset_to_text_attributes; |
| 738 } | 738 } |
| 739 std::map<int32_t, int32_t>& hyperlink_offset_to_index() const { | 739 std::map<int32_t, int32_t>& hyperlink_offset_to_index() const { |
| 740 return win_attributes_->hyperlink_offset_to_index; | 740 return win_attributes_->hyperlink_offset_to_index; |
| 741 } | 741 } |
| 742 std::vector<int32_t>& hyperlinks() const { | 742 std::vector<int32_t>& hyperlinks() const { |
| 743 return win_attributes_->hyperlinks; | 743 return win_attributes_->hyperlinks; |
| 744 } | 744 } |
| 745 | 745 |
| 746 private: | 746 private: |
| 747 // Returns the non-localized string representation of a supported action. |
| 748 // Some APIs need to return non-localized action names. |
| 749 static base::string16 ActionToUnlocalizedString( |
| 750 ui::AXSupportedAction supported_action); |
| 751 |
| 747 // Returns the IA2 text attributes for this object. | 752 // Returns the IA2 text attributes for this object. |
| 748 std::vector<base::string16> ComputeTextAttributes() const; | 753 std::vector<base::string16> ComputeTextAttributes() const; |
| 749 | 754 |
| 750 // Add one to the reference count and return the same object. Always | 755 // Add one to the reference count and return the same object. Always |
| 751 // use this method when returning a BrowserAccessibilityWin object as | 756 // use this method when returning a BrowserAccessibilityWin object as |
| 752 // an output parameter to a COM interface, never use it otherwise. | 757 // an output parameter to a COM interface, never use it otherwise. |
| 753 BrowserAccessibilityWin* NewReference(); | 758 BrowserAccessibilityWin* NewReference(); |
| 754 | 759 |
| 755 // Returns a list of IA2 attributes indicating the offsets in the text of a | 760 // Returns a list of IA2 attributes indicating the offsets in the text of a |
| 756 // leaf object, such as a text field or static text, where spelling errors are | 761 // leaf object, such as a text field or static text, where spelling errors are |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 | 973 |
| 969 CONTENT_EXPORT BrowserAccessibilityWin* | 974 CONTENT_EXPORT BrowserAccessibilityWin* |
| 970 ToBrowserAccessibilityWin(BrowserAccessibility* obj); | 975 ToBrowserAccessibilityWin(BrowserAccessibility* obj); |
| 971 | 976 |
| 972 CONTENT_EXPORT const BrowserAccessibilityWin* | 977 CONTENT_EXPORT const BrowserAccessibilityWin* |
| 973 ToBrowserAccessibilityWin(const BrowserAccessibility* obj); | 978 ToBrowserAccessibilityWin(const BrowserAccessibility* obj); |
| 974 | 979 |
| 975 } // namespace content | 980 } // namespace content |
| 976 | 981 |
| 977 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 982 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
| OLD | NEW |