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

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

Issue 25987002: Accessible boundsForRange common impl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // of its parent. 105 // of its parent.
106 BrowserAccessibility* GetNextSibling(); 106 BrowserAccessibility* GetNextSibling();
107 107
108 // Returns the bounds of this object in coordinates relative to the 108 // Returns the bounds of this object in coordinates relative to the
109 // top-left corner of the overall web area. 109 // top-left corner of the overall web area.
110 gfx::Rect GetLocalBoundsRect() const; 110 gfx::Rect GetLocalBoundsRect() const;
111 111
112 // Returns the bounds of this object in screen coordinates. 112 // Returns the bounds of this object in screen coordinates.
113 gfx::Rect GetGlobalBoundsRect() const; 113 gfx::Rect GetGlobalBoundsRect() const;
114 114
115 // Returns the bounds of the given range in coordinates relative to the
116 // top-left corner of the overall web area. Only valid when the
David Tseng 2013/10/17 21:32:02 Are you thinking about supporting this for non-sta
dmazzoni 2013/10/21 17:25:38 Sounds good - but for now, this is strictly only s
117 // role is WebAXRoleStaticText.
aboxhall 2013/10/04 18:53:07 There's no chance this could be called on an inlin
dmazzoni 2013/10/21 17:25:38 No. The inline text boxes are not exposed to the p
118 gfx::Rect GetLocalBoundsForRange(int start, int len) const;
David Tseng 2013/10/17 21:32:02 If the above were true, then perhaps this should b
dmazzoni 2013/10/21 17:25:38 I think we'd want a higher-level function that tak
119
120 // Same as GetLocalBoundsForRange, in screen coordinates.
121 gfx::Rect GetGlobalBoundsForRange(int start, int len) const;
David Tseng 2013/10/17 21:32:02 Is this also only available for static text?
dmazzoni 2013/10/21 17:25:38 Yes. Updated the comment.
122
115 // Returns the deepest descendant that contains the specified point 123 // Returns the deepest descendant that contains the specified point
116 // (in global screen coordinates). 124 // (in global screen coordinates).
117 BrowserAccessibility* BrowserAccessibilityForPoint(const gfx::Point& point); 125 BrowserAccessibility* BrowserAccessibilityForPoint(const gfx::Point& point);
118 126
119 // Marks this object for deletion, releases our reference to it, and 127 // Marks this object for deletion, releases our reference to it, and
120 // recursively calls Destroy() on its children. May not delete 128 // recursively calls Destroy() on its children. May not delete
121 // immediately due to reference counting. 129 // immediately due to reference counting.
122 // 130 //
123 // Reference counting is used on some platforms because the 131 // Reference counting is used on some platforms because the
124 // operating system may hold onto a reference to a BrowserAccessibility 132 // operating system may hold onto a reference to a BrowserAccessibility
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 // immediately return failure. 304 // immediately return failure.
297 bool instance_active_; 305 bool instance_active_;
298 306
299 private: 307 private:
300 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 308 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
301 }; 309 };
302 310
303 } // namespace content 311 } // namespace content
304 312
305 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 313 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698