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

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

Issue 2287433003: Get rid of remaining uses of AXObject::elementRect (Closed)
Patch Set: Rebase Created 4 years, 3 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 | « third_party/WebKit/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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 BLINK_EXPORT WebAXAriaCurrentState ariaCurrentState() const; 145 BLINK_EXPORT WebAXAriaCurrentState ariaCurrentState() const;
146 BLINK_EXPORT bool ariaFlowTo(WebVector<WebAXObject>& flowToElements) const; 146 BLINK_EXPORT bool ariaFlowTo(WebVector<WebAXObject>& flowToElements) const;
147 BLINK_EXPORT bool ariaHasPopup() const; 147 BLINK_EXPORT bool ariaHasPopup() const;
148 BLINK_EXPORT bool isEditable() const; 148 BLINK_EXPORT bool isEditable() const;
149 BLINK_EXPORT bool isMultiline() const; 149 BLINK_EXPORT bool isMultiline() const;
150 BLINK_EXPORT bool isRichlyEditable() const; 150 BLINK_EXPORT bool isRichlyEditable() const;
151 BLINK_EXPORT bool ariaOwns(WebVector<WebAXObject>& ownsElements) const; 151 BLINK_EXPORT bool ariaOwns(WebVector<WebAXObject>& ownsElements) const;
152 BLINK_EXPORT WebString fontFamily() const; 152 BLINK_EXPORT WebString fontFamily() const;
153 BLINK_EXPORT float fontSize() const; 153 BLINK_EXPORT float fontSize() const;
154 BLINK_EXPORT bool canvasHasFallbackContent() const; 154 BLINK_EXPORT bool canvasHasFallbackContent() const;
155 BLINK_EXPORT WebPoint clickPoint() const;
156 BLINK_EXPORT WebAXInvalidState invalidState() const; 155 BLINK_EXPORT WebAXInvalidState invalidState() const;
157 // Only used when invalidState() returns WebAXInvalidStateOther. 156 // Only used when invalidState() returns WebAXInvalidStateOther.
158 BLINK_EXPORT WebString ariaInvalidValue() const; 157 BLINK_EXPORT WebString ariaInvalidValue() const;
159 BLINK_EXPORT double estimatedLoadingProgress() const; 158 BLINK_EXPORT double estimatedLoadingProgress() const;
160 BLINK_EXPORT int headingLevel() const; 159 BLINK_EXPORT int headingLevel() const;
161 BLINK_EXPORT int hierarchicalLevel() const; 160 BLINK_EXPORT int hierarchicalLevel() const;
162 BLINK_EXPORT WebAXObject hitTest(const WebPoint&) const; 161 BLINK_EXPORT WebAXObject hitTest(const WebPoint&) const;
163 BLINK_EXPORT WebString keyboardShortcut() const; 162 BLINK_EXPORT WebString keyboardShortcut() const;
164 BLINK_EXPORT WebString language() const; 163 BLINK_EXPORT WebString language() const;
165 BLINK_EXPORT WebAXOrientation orientation() const; 164 BLINK_EXPORT WebAXOrientation orientation() const;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 BLINK_EXPORT void characterOffsets(WebVector<int>&) const; 286 BLINK_EXPORT void characterOffsets(WebVector<int>&) const;
288 BLINK_EXPORT void wordBoundaries(WebVector<int>& starts, WebVector<int>& end s) const; 287 BLINK_EXPORT void wordBoundaries(WebVector<int>& starts, WebVector<int>& end s) const;
289 288
290 // Scrollable containers. 289 // Scrollable containers.
291 BLINK_EXPORT bool isScrollableContainer() const; 290 BLINK_EXPORT bool isScrollableContainer() const;
292 BLINK_EXPORT WebPoint scrollOffset() const; 291 BLINK_EXPORT WebPoint scrollOffset() const;
293 BLINK_EXPORT WebPoint minimumScrollOffset() const; 292 BLINK_EXPORT WebPoint minimumScrollOffset() const;
294 BLINK_EXPORT WebPoint maximumScrollOffset() const; 293 BLINK_EXPORT WebPoint maximumScrollOffset() const;
295 BLINK_EXPORT void setScrollOffset(const WebPoint&) const; 294 BLINK_EXPORT void setScrollOffset(const WebPoint&) const;
296 295
297 // Old bounds calculation interface. DEPRECATED, to be replaced with getRela tiveBounds. 296 // Every object's bounding box is returned relative to a
298 BLINK_EXPORT WebRect boundingBoxRect() const; 297 // container object (which is guaranteed to be an ancestor) and
299
300 // NEW bounds calculation interface. Every object's bounding box is returned
301 // relative to a container object (which is guaranteed to be an ancestor) an d
302 // optionally a transformation matrix that needs to be applied too. 298 // optionally a transformation matrix that needs to be applied too.
303 // To compute the absolute bounding box of an element, start with its 299 // To compute the absolute bounding box of an element, start with its
304 // boundsInContainer and apply the transform. Then as long as its container is 300 // boundsInContainer and apply the transform. Then as long as its container is
305 // not null, walk up to its container and offset by the container's offset f rom 301 // not null, walk up to its container and offset by the container's offset f rom
306 // origin, the container's scroll position if any, and apply the container's transform. 302 // origin, the container's scroll position if any, and apply the container's transform.
307 // Do this until you reach the root of the tree. 303 // Do this until you reach the root of the tree.
308 BLINK_EXPORT void getRelativeBounds(WebAXObject& offsetContainer, WebFloatRe ct& boundsInContainer, SkMatrix44& containerTransform) const; 304 BLINK_EXPORT void getRelativeBounds(WebAXObject& offsetContainer, WebFloatRe ct& boundsInContainer, SkMatrix44& containerTransform) const;
309 305
310 // Transformation relative to the parent frame, if local (otherwise returns identity).
311 // DEPRECATED, to be replaced with getRelativeBounds.
312 BLINK_EXPORT SkMatrix44 transformFromLocalParentFrame() const;
313
314 // Make this object visible by scrolling as many nested scrollable views as needed. 306 // Make this object visible by scrolling as many nested scrollable views as needed.
315 BLINK_EXPORT void scrollToMakeVisible() const; 307 BLINK_EXPORT void scrollToMakeVisible() const;
316 // Same, but if the whole object can't be made visible, try for this subrect , in local coordinates. 308 // Same, but if the whole object can't be made visible, try for this subrect , in local coordinates.
317 BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const; 309 BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const;
318 // Scroll this object to a given point in global coordinates of the top-leve l window. 310 // Scroll this object to a given point in global coordinates of the top-leve l window.
319 BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const; 311 BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const;
320 312
321 #if BLINK_IMPLEMENTATION 313 #if BLINK_IMPLEMENTATION
322 WebAXObject(AXObject*); 314 WebAXObject(AXObject*);
323 WebAXObject& operator=(AXObject*); 315 WebAXObject& operator=(AXObject*);
324 operator AXObject*() const; 316 operator AXObject*() const;
325 #endif 317 #endif
326 318
327 private: 319 private:
328 WebPrivatePtr<AXObject> m_private; 320 WebPrivatePtr<AXObject> m_private;
329 }; 321 };
330 322
331 } // namespace blink 323 } // namespace blink
332 324
333 #endif 325 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebAXObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698