Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: content/browser/accessibility/browser_accessibility_win.h

Issue 2040523002: Improves computation of IAccessible2 Hypertext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment to header file about unique IDs. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 // Hypertext. 921 // Hypertext.
922 base::string16 hypertext; 922 base::string16 hypertext;
923 923
924 // Maps each style span to its start offset in hypertext. 924 // Maps each style span to its start offset in hypertext.
925 std::map<int, std::vector<base::string16>> offset_to_text_attributes; 925 std::map<int, std::vector<base::string16>> offset_to_text_attributes;
926 926
927 // Maps the |hypertext_| embedded character offset to an index in 927 // Maps the |hypertext_| embedded character offset to an index in
928 // |hyperlinks_|. 928 // |hyperlinks_|.
929 std::map<int32_t, int32_t> hyperlink_offset_to_index; 929 std::map<int32_t, int32_t> hyperlink_offset_to_index;
930 930
931 // The id of a BrowserAccessibilityWin for each hyperlink. 931 // The unique id of a BrowserAccessibilityWin for each hyperlink.
932 // TODO(nektar): Replace object IDs with child indices. 932 // TODO(nektar): Replace object IDs with child indices.
dmazzoni 2016/06/07 15:45:54 Does this todo still apply? Unique ids seem fine
933 std::vector<int32_t> hyperlinks; 933 std::vector<int32_t> hyperlinks;
934 }; 934 };
935 935
936 std::unique_ptr<WinAttributes> win_attributes_; 936 std::unique_ptr<WinAttributes> win_attributes_;
937 937
938 // Only valid during the scope of a IA2_EVENT_TEXT_REMOVED or 938 // Only valid during the scope of a IA2_EVENT_TEXT_REMOVED or
939 // IA2_EVENT_TEXT_INSERTED event. 939 // IA2_EVENT_TEXT_INSERTED event.
940 std::unique_ptr<WinAttributes> old_win_attributes_; 940 std::unique_ptr<WinAttributes> old_win_attributes_;
941 941
942 // Relationships between this node and other nodes. 942 // Relationships between this node and other nodes.
(...skipping 12 matching lines...) Expand all
955 955
956 CONTENT_EXPORT BrowserAccessibilityWin* 956 CONTENT_EXPORT BrowserAccessibilityWin*
957 ToBrowserAccessibilityWin(BrowserAccessibility* obj); 957 ToBrowserAccessibilityWin(BrowserAccessibility* obj);
958 958
959 CONTENT_EXPORT const BrowserAccessibilityWin* 959 CONTENT_EXPORT const BrowserAccessibilityWin*
960 ToBrowserAccessibilityWin(const BrowserAccessibility* obj); 960 ToBrowserAccessibilityWin(const BrowserAccessibility* obj);
961 961
962 } // namespace content 962 } // namespace content
963 963
964 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 964 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698