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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 } | 735 } |
736 std::map<int32_t, int32_t>& hyperlink_offset_to_index() const { | 736 std::map<int32_t, int32_t>& hyperlink_offset_to_index() const { |
737 return win_attributes_->hyperlink_offset_to_index; | 737 return win_attributes_->hyperlink_offset_to_index; |
738 } | 738 } |
739 std::vector<int32_t>& hyperlinks() const { | 739 std::vector<int32_t>& hyperlinks() const { |
740 return win_attributes_->hyperlinks; | 740 return win_attributes_->hyperlinks; |
741 } | 741 } |
742 | 742 |
743 private: | 743 private: |
744 // Setter and getter for the browser accessibility owner | 744 // Setter and getter for the browser accessibility owner |
745 BrowserAccessibilityWin* GetOwner() const { return owner_; } | 745 BrowserAccessibilityWin* owner() const { return owner_; } |
746 void SetOwner(BrowserAccessibilityWin* owner) { owner_ = owner; } | 746 void SetOwner(BrowserAccessibilityWin* owner) { owner_ = owner; } |
747 | 747 |
748 BrowserAccessibilityManager* Manager() const; | 748 BrowserAccessibilityManager* Manager() const; |
749 | 749 |
750 // Called when BrowserAccessibilityWin is about to go away. | 750 // Called when BrowserAccessibilityWin is about to go away. |
751 // At this point, we detach from it. | 751 // At this point, we detach from it. |
752 void detach() { | 752 void detach() { |
753 owner_ = nullptr; | 753 owner_ = nullptr; |
754 delegate_ = nullptr; | 754 delegate_ = nullptr; |
755 } | 755 } |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 | 980 |
981 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); | 981 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); |
982 }; | 982 }; |
983 | 983 |
984 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( | 984 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( |
985 BrowserAccessibility* obj); | 985 BrowserAccessibility* obj); |
986 | 986 |
987 } // namespace content | 987 } // namespace content |
988 | 988 |
989 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ | 989 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ |
OLD | NEW |