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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 // Public accessors (these do not have COM accessible accessors) | 721 // Public accessors (these do not have COM accessible accessors) |
722 const base::string16& role_name() const { return win_attributes_->role_name; } | 722 const base::string16& role_name() const { return win_attributes_->role_name; } |
723 const std::map<int, std::vector<base::string16>>& offset_to_text_attributes() | 723 const std::map<int, std::vector<base::string16>>& offset_to_text_attributes() |
724 const { | 724 const { |
725 return win_attributes_->offset_to_text_attributes; | 725 return win_attributes_->offset_to_text_attributes; |
726 } | 726 } |
727 | 727 |
728 private: | 728 private: |
729 // Private accessors. | 729 // Private accessors. |
730 int32_t ia2_role() const { return win_attributes_->ia2_role; } | 730 int32_t ia2_role() const { return win_attributes_->ia2_role; } |
731 int32_t ia2_state() const { return win_attributes_->ia2_state; } | 731 |
732 const std::vector<base::string16>& ia2_attributes() const { | 732 const std::vector<base::string16>& ia2_attributes() const { |
733 return win_attributes_->ia2_attributes; | 733 return win_attributes_->ia2_attributes; |
734 } | 734 } |
735 base::string16 name() const { return win_attributes_->name; } | 735 base::string16 name() const { return win_attributes_->name; } |
736 base::string16 description() const { return win_attributes_->description; } | 736 base::string16 description() const { return win_attributes_->description; } |
737 base::string16 value() const { return win_attributes_->value; } | 737 base::string16 value() const { return win_attributes_->value; } |
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 } |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 | 985 |
986 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); | 986 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); |
987 }; | 987 }; |
988 | 988 |
989 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( | 989 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( |
990 BrowserAccessibility* obj); | 990 BrowserAccessibility* obj); |
991 | 991 |
992 } // namespace content | 992 } // namespace content |
993 | 993 |
994 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ | 994 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ |
OLD | NEW |