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

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: Rebase Created 7 years, 1 month 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.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) 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // of its parent. 113 // of its parent.
114 BrowserAccessibility* GetNextSibling(); 114 BrowserAccessibility* GetNextSibling();
115 115
116 // Returns the bounds of this object in coordinates relative to the 116 // Returns the bounds of this object in coordinates relative to the
117 // top-left corner of the overall web area. 117 // top-left corner of the overall web area.
118 gfx::Rect GetLocalBoundsRect() const; 118 gfx::Rect GetLocalBoundsRect() const;
119 119
120 // Returns the bounds of this object in screen coordinates. 120 // Returns the bounds of this object in screen coordinates.
121 gfx::Rect GetGlobalBoundsRect() const; 121 gfx::Rect GetGlobalBoundsRect() const;
122 122
123 // Returns the bounds of the given range in coordinates relative to the
124 // top-left corner of the overall web area. Only valid when the
125 // role is WebAXRoleStaticText.
126 gfx::Rect GetLocalBoundsForRange(int start, int len) const;
127
128 // Same as GetLocalBoundsForRange, in screen coordinates. Only valid when
129 // the role is WebAXRoleStaticText.
130 gfx::Rect GetGlobalBoundsForRange(int start, int len) const;
131
123 // Returns the deepest descendant that contains the specified point 132 // Returns the deepest descendant that contains the specified point
124 // (in global screen coordinates). 133 // (in global screen coordinates).
125 BrowserAccessibility* BrowserAccessibilityForPoint(const gfx::Point& point); 134 BrowserAccessibility* BrowserAccessibilityForPoint(const gfx::Point& point);
126 135
127 // Marks this object for deletion, releases our reference to it, and 136 // Marks this object for deletion, releases our reference to it, and
128 // recursively calls Destroy() on its children. May not delete 137 // recursively calls Destroy() on its children. May not delete
129 // immediately due to reference counting. 138 // immediately due to reference counting.
130 // 139 //
131 // Reference counting is used on some platforms because the 140 // Reference counting is used on some platforms because the
132 // operating system may hold onto a reference to a BrowserAccessibility 141 // operating system may hold onto a reference to a BrowserAccessibility
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // immediately return failure. 313 // immediately return failure.
305 bool instance_active_; 314 bool instance_active_;
306 315
307 private: 316 private:
308 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 317 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
309 }; 318 };
310 319
311 } // namespace content 320 } // namespace content
312 321
313 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 322 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698