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 ia_role() const { return win_attributes_->ia_role; } | 730 int32_t ia_role() const { return win_attributes_->ia_role; } |
731 int32_t ia_state() const { return win_attributes_->ia_state; } | |
732 int32_t ia2_role() const { return win_attributes_->ia2_role; } | 731 int32_t ia2_role() const { return win_attributes_->ia2_role; } |
733 int32_t ia2_state() const { return win_attributes_->ia2_state; } | 732 int32_t ia2_state() const { return win_attributes_->ia2_state; } |
734 const std::vector<base::string16>& ia2_attributes() const { | 733 const std::vector<base::string16>& ia2_attributes() const { |
735 return win_attributes_->ia2_attributes; | 734 return win_attributes_->ia2_attributes; |
736 } | 735 } |
737 base::string16 name() const { return win_attributes_->name; } | 736 base::string16 name() const { return win_attributes_->name; } |
738 base::string16 description() const { return win_attributes_->description; } | 737 base::string16 description() const { return win_attributes_->description; } |
739 base::string16 value() const { return win_attributes_->value; } | 738 base::string16 value() const { return win_attributes_->value; } |
740 | 739 |
741 std::map<int32_t, int32_t>& hyperlink_offset_to_index() const { | 740 std::map<int32_t, int32_t>& hyperlink_offset_to_index() const { |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 | 989 |
991 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); | 990 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); |
992 }; | 991 }; |
993 | 992 |
994 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( | 993 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( |
995 BrowserAccessibility* obj); | 994 BrowserAccessibility* obj); |
996 | 995 |
997 } // namespace content | 996 } // namespace content |
998 | 997 |
999 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ | 998 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ |
OLD | NEW |