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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 base::string16 description() const { return win_attributes_->description; } | 721 base::string16 description() const { return win_attributes_->description; } |
722 base::string16 help() const { return win_attributes_->help; } | 722 base::string16 help() const { return win_attributes_->help; } |
723 base::string16 value() const { return win_attributes_->value; } | 723 base::string16 value() const { return win_attributes_->value; } |
724 base::string16 hypertext() const { return win_attributes_->hypertext; } | 724 base::string16 hypertext() const { return win_attributes_->hypertext; } |
725 std::map<int32, int32>& hyperlink_offset_to_index() const { | 725 std::map<int32, int32>& hyperlink_offset_to_index() const { |
726 return win_attributes_->hyperlink_offset_to_index; | 726 return win_attributes_->hyperlink_offset_to_index; |
727 } | 727 } |
728 std::vector<int32>& hyperlinks() const { return win_attributes_->hyperlinks; } | 728 std::vector<int32>& hyperlinks() const { return win_attributes_->hyperlinks; } |
729 | 729 |
730 private: | 730 private: |
| 731 base::string16 GetTextAttributes() const; |
| 732 |
731 // Add one to the reference count and return the same object. Always | 733 // Add one to the reference count and return the same object. Always |
732 // use this method when returning a BrowserAccessibilityWin object as | 734 // use this method when returning a BrowserAccessibilityWin object as |
733 // an output parameter to a COM interface, never use it otherwise. | 735 // an output parameter to a COM interface, never use it otherwise. |
734 BrowserAccessibilityWin* NewReference(); | 736 BrowserAccessibilityWin* NewReference(); |
735 | 737 |
736 // Many MSAA methods take a var_id parameter indicating that the operation | 738 // Many MSAA methods take a var_id parameter indicating that the operation |
737 // should be performed on a particular child ID, rather than this object. | 739 // should be performed on a particular child ID, rather than this object. |
738 // This method tries to figure out the target object from |var_id| and | 740 // This method tries to figure out the target object from |var_id| and |
739 // returns a pointer to the target object if it exists, otherwise NULL. | 741 // returns a pointer to the target object if it exists, otherwise NULL. |
740 // Does not return a new reference. | 742 // Does not return a new reference. |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 // Give BrowserAccessibility::Create access to our constructor. | 863 // Give BrowserAccessibility::Create access to our constructor. |
862 friend class BrowserAccessibility; | 864 friend class BrowserAccessibility; |
863 friend class BrowserAccessibilityRelation; | 865 friend class BrowserAccessibilityRelation; |
864 | 866 |
865 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); | 867 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); |
866 }; | 868 }; |
867 | 869 |
868 } // namespace content | 870 } // namespace content |
869 | 871 |
870 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 872 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
OLD | NEW |