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

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

Issue 2388103002: reflow comments in public/web (Closed)
Patch Set: Created 4 years, 2 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 | third_party/WebKit/public/web/WebAutofillClient.h » ('j') | 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 BLINK_EXPORT void reset(); 89 BLINK_EXPORT void reset();
90 BLINK_EXPORT void assign(const WebAXObject&); 90 BLINK_EXPORT void assign(const WebAXObject&);
91 BLINK_EXPORT bool equals(const WebAXObject&) const; 91 BLINK_EXPORT bool equals(const WebAXObject&) const;
92 92
93 bool isNull() const { return m_private.isNull(); } 93 bool isNull() const { return m_private.isNull(); }
94 // isDetached also checks for null, so it's safe to just call isDetached. 94 // isDetached also checks for null, so it's safe to just call isDetached.
95 BLINK_EXPORT bool isDetached() const; 95 BLINK_EXPORT bool isDetached() const;
96 96
97 BLINK_EXPORT int axID() const; 97 BLINK_EXPORT int axID() const;
98 98
99 // Get a new AXID that's not used by any accessibility node in this process, f or when the 99 // Get a new AXID that's not used by any accessibility node in this process,
100 // client needs to insert additional nodes into the accessibility tree. 100 // for when the client needs to insert additional nodes into the accessibility
101 // tree.
101 BLINK_EXPORT int generateAXID() const; 102 BLINK_EXPORT int generateAXID() const;
102 103
103 // Update layout on the underlying tree, and return true if this object is 104 // Update layout on the underlying tree, and return true if this object is
104 // still valid (not detached). Note that calling this method 105 // still valid (not detached). Note that calling this method
105 // can cause other WebAXObjects to become invalid, too, 106 // can cause other WebAXObjects to become invalid, too,
106 // so always call isDetached if any other WebCore code has run. 107 // so always call isDetached if any other WebCore code has run.
107 BLINK_EXPORT bool updateLayoutAndCheckValidity(); 108 BLINK_EXPORT bool updateLayoutAndCheckValidity();
108 109
109 BLINK_EXPORT unsigned childCount() const; 110 BLINK_EXPORT unsigned childCount() const;
110 111
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 BLINK_EXPORT WebAXObject hitTest(const WebPoint&) const; 165 BLINK_EXPORT WebAXObject hitTest(const WebPoint&) const;
165 BLINK_EXPORT WebString keyboardShortcut() const; 166 BLINK_EXPORT WebString keyboardShortcut() const;
166 BLINK_EXPORT WebString language() const; 167 BLINK_EXPORT WebString language() const;
167 BLINK_EXPORT WebAXOrientation orientation() const; 168 BLINK_EXPORT WebAXOrientation orientation() const;
168 BLINK_EXPORT WebAXRole role() const; 169 BLINK_EXPORT WebAXRole role() const;
169 BLINK_EXPORT WebString stringValue() const; 170 BLINK_EXPORT WebString stringValue() const;
170 BLINK_EXPORT WebAXTextDirection textDirection() const; 171 BLINK_EXPORT WebAXTextDirection textDirection() const;
171 BLINK_EXPORT WebAXTextStyle textStyle() const; 172 BLINK_EXPORT WebAXTextStyle textStyle() const;
172 BLINK_EXPORT WebURL url() const; 173 BLINK_EXPORT WebURL url() const;
173 174
174 // Retrieves the accessible name of the object, an enum indicating where the n ame 175 // Retrieves the accessible name of the object, an enum indicating where the
175 // was derived from, and a list of related objects that were used to derive th e name, if any. 176 // name was derived from, and a list of related objects that were used to
177 // derive the name, if any.
176 BLINK_EXPORT WebString name(WebAXNameFrom&, 178 BLINK_EXPORT WebString name(WebAXNameFrom&,
177 WebVector<WebAXObject>& nameObjects) const; 179 WebVector<WebAXObject>& nameObjects) const;
178 // Simplified version of |name| when nameFrom and nameObjects aren't needed. 180 // Simplified version of |name| when nameFrom and nameObjects aren't needed.
179 BLINK_EXPORT WebString name() const; 181 BLINK_EXPORT WebString name() const;
180 // Takes the result of nameFrom from calling |name|, above, and retrieves the 182 // Takes the result of nameFrom from calling |name|, above, and retrieves the
181 // accessible description of the object, which is secondary to |name|, an enum indicating 183 // accessible description of the object, which is secondary to |name|, an enum
182 // where the description was derived from, and a list of objects that were use d to 184 // indicating where the description was derived from, and a list of objects
183 // derive the description, if any. 185 // that were used to derive the description, if any.
184 BLINK_EXPORT WebString 186 BLINK_EXPORT WebString
185 description(WebAXNameFrom, 187 description(WebAXNameFrom,
186 WebAXDescriptionFrom&, 188 WebAXDescriptionFrom&,
187 WebVector<WebAXObject>& descriptionObjects) const; 189 WebVector<WebAXObject>& descriptionObjects) const;
188 // Takes the result of nameFrom and descriptionFrom from calling |name| and |d escription|, 190 // Takes the result of nameFrom and descriptionFrom from calling |name| and
189 // above, and retrieves the placeholder of the object, if present and if it wa sn't already 191 // |description|, above, and retrieves the placeholder of the object, if
190 // exposed by one of the two functions above. 192 // present and if it wasn't already exposed by one of the two functions above.
191 BLINK_EXPORT WebString placeholder(WebAXNameFrom, WebAXDescriptionFrom) const; 193 BLINK_EXPORT WebString placeholder(WebAXNameFrom, WebAXDescriptionFrom) const;
192 194
193 // The following selection functions get or set the global document 195 // The following selection functions get or set the global document
194 // selection and can be called on any object in the tree. 196 // selection and can be called on any object in the tree.
195 BLINK_EXPORT void selection(WebAXObject& anchorObject, 197 BLINK_EXPORT void selection(WebAXObject& anchorObject,
196 int& anchorOffset, 198 int& anchorOffset,
197 WebAXTextAffinity& anchorAffinity, 199 WebAXTextAffinity& anchorAffinity,
198 WebAXObject& focusObject, 200 WebAXObject& focusObject,
199 int& focusOffset, 201 int& focusOffset,
200 WebAXTextAffinity& focusAffinity) const; 202 WebAXTextAffinity& focusAffinity) const;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 BLINK_EXPORT WebPoint scrollOffset() const; 309 BLINK_EXPORT WebPoint scrollOffset() const;
308 BLINK_EXPORT WebPoint minimumScrollOffset() const; 310 BLINK_EXPORT WebPoint minimumScrollOffset() const;
309 BLINK_EXPORT WebPoint maximumScrollOffset() const; 311 BLINK_EXPORT WebPoint maximumScrollOffset() const;
310 BLINK_EXPORT void setScrollOffset(const WebPoint&) const; 312 BLINK_EXPORT void setScrollOffset(const WebPoint&) const;
311 313
312 // Every object's bounding box is returned relative to a 314 // Every object's bounding box is returned relative to a
313 // container object (which is guaranteed to be an ancestor) and 315 // container object (which is guaranteed to be an ancestor) and
314 // optionally a transformation matrix that needs to be applied too. 316 // optionally a transformation matrix that needs to be applied too.
315 // To compute the absolute bounding box of an element, start with its 317 // To compute the absolute bounding box of an element, start with its
316 // boundsInContainer and apply the transform. Then as long as its container is 318 // boundsInContainer and apply the transform. Then as long as its container is
317 // not null, walk up to its container and offset by the container's offset fro m 319 // not null, walk up to its container and offset by the container's offset
318 // origin, the container's scroll position if any, and apply the container's t ransform. 320 // from origin, the container's scroll position if any, and apply the
319 // Do this until you reach the root of the tree. 321 // container's transform. Do this until you reach the root of the tree.
320 BLINK_EXPORT void getRelativeBounds(WebAXObject& offsetContainer, 322 BLINK_EXPORT void getRelativeBounds(WebAXObject& offsetContainer,
321 WebFloatRect& boundsInContainer, 323 WebFloatRect& boundsInContainer,
322 SkMatrix44& containerTransform) const; 324 SkMatrix44& containerTransform) const;
323 325
324 // Make this object visible by scrolling as many nested scrollable views as ne eded. 326 // Make this object visible by scrolling as many nested scrollable views as
327 // needed.
325 BLINK_EXPORT void scrollToMakeVisible() const; 328 BLINK_EXPORT void scrollToMakeVisible() const;
326 // Same, but if the whole object can't be made visible, try for this subrect, in local coordinates. 329 // Same, but if the whole object can't be made visible, try for this subrect,
330 // in local coordinates.
327 BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const; 331 BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const;
328 // Scroll this object to a given point in global coordinates of the top-level window. 332 // Scroll this object to a given point in global coordinates of the top-level
333 // window.
329 BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const; 334 BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const;
330 335
331 #if BLINK_IMPLEMENTATION 336 #if BLINK_IMPLEMENTATION
332 WebAXObject(AXObject*); 337 WebAXObject(AXObject*);
333 WebAXObject& operator=(AXObject*); 338 WebAXObject& operator=(AXObject*);
334 operator AXObject*() const; 339 operator AXObject*() const;
335 #endif 340 #endif
336 341
337 private: 342 private:
338 WebPrivatePtr<AXObject> m_private; 343 WebPrivatePtr<AXObject> m_private;
339 }; 344 };
340 345
341 } // namespace blink 346 } // namespace blink
342 347
343 #endif 348 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/public/web/WebAutofillClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698