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

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

Issue 2981053002: Remove methods from BrowserAccessibilityComWin which aren't needed. (Closed)
Patch Set: rebase Created 3 years, 5 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_com_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // BrowserAccessibilityManagerWin::OnAtomicUpdateFinished for more 96 // BrowserAccessibilityManagerWin::OnAtomicUpdateFinished for more
97 // details on what these do. 97 // details on what these do.
98 CONTENT_EXPORT void UpdateStep1ComputeWinAttributes(); 98 CONTENT_EXPORT void UpdateStep1ComputeWinAttributes();
99 CONTENT_EXPORT void UpdateStep2ComputeHypertext(); 99 CONTENT_EXPORT void UpdateStep2ComputeHypertext();
100 CONTENT_EXPORT void UpdateStep3FireEvents(bool is_subtree_creation); 100 CONTENT_EXPORT void UpdateStep3FireEvents(bool is_subtree_creation);
101 101
102 // 102 //
103 // IAccessible methods. 103 // IAccessible methods.
104 // 104 //
105 105
106 // Performs the default action on a given object.
107 CONTENT_EXPORT STDMETHODIMP accDoDefaultAction(VARIANT var_id) override;
108
109 // Retrieves the child element or child object at a given point on the screen.
110 CONTENT_EXPORT STDMETHODIMP accHitTest(LONG x_left,
111 LONG y_top,
112 VARIANT* child) override;
113
114 // Retrieves the specified object's current screen location.
115 CONTENT_EXPORT STDMETHODIMP accLocation(LONG* x_left,
116 LONG* y_top,
117 LONG* width,
118 LONG* height,
119 VARIANT var_id) override;
120
121 // Traverses to another UI element and retrieves the object.
122 CONTENT_EXPORT STDMETHODIMP accNavigate(LONG nav_dir,
123 VARIANT start,
124 VARIANT* end) override;
125
126 // Retrieves an IDispatch interface pointer for the specified child.
127 CONTENT_EXPORT STDMETHODIMP get_accChild(VARIANT var_child,
128 IDispatch** disp_child) override;
129
130 // Retrieves the number of accessible children.
131 CONTENT_EXPORT STDMETHODIMP get_accChildCount(LONG* child_count) override;
132
133 // Retrieves a string that describes the object's default action. 106 // Retrieves a string that describes the object's default action.
134 CONTENT_EXPORT STDMETHODIMP 107 CONTENT_EXPORT STDMETHODIMP
135 get_accDefaultAction(VARIANT var_id, BSTR* default_action) override; 108 get_accDefaultAction(VARIANT var_id, BSTR* default_action) override;
136 109
137 // Retrieves the object's description.
138 CONTENT_EXPORT STDMETHODIMP get_accDescription(VARIANT var_id,
139 BSTR* desc) override;
140
141 // Retrieves the object that has the keyboard focus.
142 CONTENT_EXPORT STDMETHODIMP get_accFocus(VARIANT* focus_child) override;
143
144 // Retrieves the help information associated with the object.
145 CONTENT_EXPORT STDMETHODIMP get_accHelp(VARIANT var_id, BSTR* heflp) override;
146
147 // Retrieves the specified object's shortcut.
148 CONTENT_EXPORT STDMETHODIMP
149 get_accKeyboardShortcut(VARIANT var_id, BSTR* access_key) override;
150
151 // Retrieves the name of the specified object.
152 CONTENT_EXPORT STDMETHODIMP get_accName(VARIANT var_id, BSTR* name) override;
153
154 // Retrieves the IDispatch interface of the object's parent.
155 CONTENT_EXPORT STDMETHODIMP get_accParent(IDispatch** disp_parent) override;
156
157 // Retrieves information describing the role of the specified object.
158 CONTENT_EXPORT STDMETHODIMP get_accRole(VARIANT var_id,
159 VARIANT* role) override;
160
161 // Retrieves the current state of the specified object.
162 CONTENT_EXPORT STDMETHODIMP get_accState(VARIANT var_id,
163 VARIANT* state) override;
164
165 // Returns the value associated with the object.
166 CONTENT_EXPORT STDMETHODIMP get_accValue(VARIANT var_id,
167 BSTR* value) override;
168
169 // Make an object take focus or extend the selection.
170 CONTENT_EXPORT STDMETHODIMP accSelect(LONG flags_sel,
171 VARIANT var_id) override;
172
173 CONTENT_EXPORT STDMETHODIMP get_accHelpTopic(BSTR* help_file,
174 VARIANT var_id,
175 LONG* topic_id) override;
176
177 CONTENT_EXPORT STDMETHODIMP get_accSelection(VARIANT* selected) override;
178
179 // Deprecated methods, not implemented.
180 CONTENT_EXPORT STDMETHODIMP put_accName(VARIANT var_id,
181 BSTR put_name) override;
182 CONTENT_EXPORT STDMETHODIMP put_accValue(VARIANT var_id,
183 BSTR put_val) override;
184
185 // 110 //
186 // IAccessible2 methods. 111 // IAccessible2 methods.
187 // 112 //
188 113
189 // Returns role from a longer list of possible roles.
190 CONTENT_EXPORT STDMETHODIMP role(LONG* role) override;
191
192 // Returns the state bitmask from a larger set of possible states. 114 // Returns the state bitmask from a larger set of possible states.
193 CONTENT_EXPORT STDMETHODIMP get_states(AccessibleStates* states) override; 115 CONTENT_EXPORT STDMETHODIMP get_states(AccessibleStates* states) override;
194 116
195 // Returns the attributes specific to this IAccessible2 object, 117 // Returns the attributes specific to this IAccessible2 object,
196 // such as a cell's formula. 118 // such as a cell's formula.
197 CONTENT_EXPORT STDMETHODIMP get_attributes(BSTR* attributes) override; 119 CONTENT_EXPORT STDMETHODIMP get_attributes(BSTR* attributes) override;
198 120
199 // Get the unique ID of this object so that the client knows if it's 121 // Get the unique ID of this object so that the client knows if it's
200 // been encountered previously. 122 // been encountered previously.
201 CONTENT_EXPORT STDMETHODIMP get_uniqueID(LONG* unique_id) override; 123 CONTENT_EXPORT STDMETHODIMP get_uniqueID(LONG* unique_id) override;
(...skipping 22 matching lines...) Expand all
224 146
225 CONTENT_EXPORT STDMETHODIMP 147 CONTENT_EXPORT STDMETHODIMP
226 get_groupPosition(LONG* group_level, 148 get_groupPosition(LONG* group_level,
227 LONG* similar_items_in_group, 149 LONG* similar_items_in_group,
228 LONG* position_in_group) override; 150 LONG* position_in_group) override;
229 151
230 CONTENT_EXPORT STDMETHODIMP 152 CONTENT_EXPORT STDMETHODIMP
231 get_localizedExtendedRole(BSTR* localized_extended_role) override; 153 get_localizedExtendedRole(BSTR* localized_extended_role) override;
232 154
233 // 155 //
234 // IAccessible2 methods not implemented.
235 //
236 CONTENT_EXPORT STDMETHODIMP get_extendedRole(BSTR* extended_role) override;
237 CONTENT_EXPORT STDMETHODIMP
238 get_nExtendedStates(LONG* n_extended_states) override;
239 CONTENT_EXPORT STDMETHODIMP
240 get_extendedStates(LONG max_extended_states,
241 BSTR** extended_states,
242 LONG* n_extended_states) override;
243 CONTENT_EXPORT STDMETHODIMP
244 get_localizedExtendedStates(LONG max_localized_extended_states,
245 BSTR** localized_extended_states,
246 LONG* n_localized_extended_states) override;
247 CONTENT_EXPORT STDMETHODIMP get_locale(IA2Locale* locale) override;
248
249 //
250 // IAccessibleApplication methods. 156 // IAccessibleApplication methods.
251 // 157 //
252 CONTENT_EXPORT STDMETHODIMP get_appName(BSTR* app_name) override; 158 CONTENT_EXPORT STDMETHODIMP get_appName(BSTR* app_name) override;
253 159
254 CONTENT_EXPORT STDMETHODIMP get_appVersion(BSTR* app_version) override; 160 CONTENT_EXPORT STDMETHODIMP get_appVersion(BSTR* app_version) override;
255 161
256 CONTENT_EXPORT STDMETHODIMP get_toolkitName(BSTR* toolkit_name) override; 162 CONTENT_EXPORT STDMETHODIMP get_toolkitName(BSTR* toolkit_name) override;
257 163
258 CONTENT_EXPORT STDMETHODIMP 164 CONTENT_EXPORT STDMETHODIMP
259 get_toolkitVersion(BSTR* toolkit_version) override; 165 get_toolkitVersion(BSTR* toolkit_version) override;
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 859
954 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); 860 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin);
955 }; 861 };
956 862
957 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( 863 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin(
958 BrowserAccessibility* obj); 864 BrowserAccessibility* obj);
959 865
960 } // namespace content 866 } // namespace content
961 867
962 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ 868 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_com_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698