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

Side by Side Diff: public/web/WebAXObject.h

Issue 797223002: Provides an API to cope with table headers in Accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 | « Source/web/WebAXObject.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // For a table column 198 // For a table column
199 BLINK_EXPORT unsigned columnIndex() const; 199 BLINK_EXPORT unsigned columnIndex() const;
200 BLINK_EXPORT WebAXObject columnHeader() const; 200 BLINK_EXPORT WebAXObject columnHeader() const;
201 201
202 // For a table cell 202 // For a table cell
203 BLINK_EXPORT unsigned cellColumnIndex() const; 203 BLINK_EXPORT unsigned cellColumnIndex() const;
204 BLINK_EXPORT unsigned cellColumnSpan() const; 204 BLINK_EXPORT unsigned cellColumnSpan() const;
205 BLINK_EXPORT unsigned cellRowIndex() const; 205 BLINK_EXPORT unsigned cellRowIndex() const;
206 BLINK_EXPORT unsigned cellRowSpan() const; 206 BLINK_EXPORT unsigned cellRowSpan() const;
207 207
208 BLINK_EXPORT void tableHeaders(WebVector<WebAXObject>&, bool) const;
dmazzoni 2014/12/17 01:05:57 You need to name parameters when they're non-obvio
209
208 // Load inline text boxes for just this subtree, even if 210 // Load inline text boxes for just this subtree, even if
209 // settings->inlineTextBoxAccessibilityEnabled() is false. 211 // settings->inlineTextBoxAccessibilityEnabled() is false.
210 BLINK_EXPORT void loadInlineTextBoxes() const; 212 BLINK_EXPORT void loadInlineTextBoxes() const;
211 213
212 // For an inline text box. 214 // For an inline text box.
213 BLINK_EXPORT WebAXTextDirection textDirection() const; 215 BLINK_EXPORT WebAXTextDirection textDirection() const;
214 BLINK_EXPORT void characterOffsets(WebVector<int>&) const; 216 BLINK_EXPORT void characterOffsets(WebVector<int>&) const;
215 BLINK_EXPORT void wordBoundaries(WebVector<int>& starts, WebVector<int>& end s) const; 217 BLINK_EXPORT void wordBoundaries(WebVector<int>& starts, WebVector<int>& end s) const;
216 218
217 // Make this object visible by scrolling as many nested scrollable views as needed. 219 // Make this object visible by scrolling as many nested scrollable views as needed.
218 BLINK_EXPORT void scrollToMakeVisible() const; 220 BLINK_EXPORT void scrollToMakeVisible() const;
219 // Same, but if the whole object can't be made visible, try for this subrect , in local coordinates. 221 // Same, but if the whole object can't be made visible, try for this subrect , in local coordinates.
220 BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const; 222 BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const;
221 // Scroll this object to a given point in global coordinates of the top-leve l window. 223 // Scroll this object to a given point in global coordinates of the top-leve l window.
222 BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const; 224 BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const;
223 225
224 #if BLINK_IMPLEMENTATION 226 #if BLINK_IMPLEMENTATION
225 WebAXObject(const WTF::PassRefPtr<AXObject>&); 227 WebAXObject(const WTF::PassRefPtr<AXObject>&);
226 WebAXObject& operator=(const WTF::PassRefPtr<AXObject>&); 228 WebAXObject& operator=(const WTF::PassRefPtr<AXObject>&);
227 operator WTF::PassRefPtr<AXObject>() const; 229 operator WTF::PassRefPtr<AXObject>() const;
228 #endif 230 #endif
229 231
230 private: 232 private:
231 WebPrivatePtr<AXObject> m_private; 233 WebPrivatePtr<AXObject> m_private;
232 }; 234 };
233 235
234 } // namespace blink 236 } // namespace blink
235 237
236 #endif 238 #endif
OLDNEW
« no previous file with comments | « Source/web/WebAXObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698