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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
718 int32_t ia_state() const { return win_attributes_->ia_state; } | 718 int32_t ia_state() const { return win_attributes_->ia_state; } |
719 const base::string16& role_name() const { return win_attributes_->role_name; } | 719 const base::string16& role_name() const { return win_attributes_->role_name; } |
720 int32_t ia2_role() const { return win_attributes_->ia2_role; } | 720 int32_t ia2_role() const { return win_attributes_->ia2_role; } |
721 int32_t ia2_state() const { return win_attributes_->ia2_state; } | 721 int32_t ia2_state() const { return win_attributes_->ia2_state; } |
722 const std::vector<base::string16>& ia2_attributes() const { | 722 const std::vector<base::string16>& ia2_attributes() const { |
723 return win_attributes_->ia2_attributes; | 723 return win_attributes_->ia2_attributes; |
724 } | 724 } |
725 base::string16 name() const { return win_attributes_->name; } | 725 base::string16 name() const { return win_attributes_->name; } |
726 base::string16 description() const { return win_attributes_->description; } | 726 base::string16 description() const { return win_attributes_->description; } |
727 base::string16 value() const { return win_attributes_->value; } | 727 base::string16 value() const { return win_attributes_->value; } |
728 base::string16 hypertext() const { return win_attributes_->hypertext; } | 728 base::string16 GetText() const override { return win_attributes_->hypertext; } |
dmazzoni
2016/01/20 01:10:43
Since this is an inline accessor, it should be low
| |
729 std::map<int32_t, int32_t>& hyperlink_offset_to_index() const { | 729 std::map<int32_t, int32_t>& hyperlink_offset_to_index() const { |
730 return win_attributes_->hyperlink_offset_to_index; | 730 return win_attributes_->hyperlink_offset_to_index; |
731 } | 731 } |
732 std::vector<int32_t>& hyperlinks() const { | 732 std::vector<int32_t>& hyperlinks() const { |
733 return win_attributes_->hyperlinks; | 733 return win_attributes_->hyperlinks; |
734 } | 734 } |
735 | 735 |
736 private: | 736 private: |
737 // Add one to the reference count and return the same object. Always | 737 // Add one to the reference count and return the same object. Always |
738 // use this method when returning a BrowserAccessibilityWin object as | 738 // use this method when returning a BrowserAccessibilityWin object as |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
923 // Give BrowserAccessibility::Create access to our constructor. | 923 // Give BrowserAccessibility::Create access to our constructor. |
924 friend class BrowserAccessibility; | 924 friend class BrowserAccessibility; |
925 friend class BrowserAccessibilityRelation; | 925 friend class BrowserAccessibilityRelation; |
926 | 926 |
927 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); | 927 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); |
928 }; | 928 }; |
929 | 929 |
930 } // namespace content | 930 } // namespace content |
931 | 931 |
932 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 932 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
OLD | NEW |