| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 BrowserAccessibility* GetChild(uint32 child_index); | 90 BrowserAccessibility* GetChild(uint32 child_index); |
| 91 | 91 |
| 92 // Return the previous sibling of this object, or NULL if it's the first | 92 // Return the previous sibling of this object, or NULL if it's the first |
| 93 // child of its parent. | 93 // child of its parent. |
| 94 BrowserAccessibility* GetPreviousSibling(); | 94 BrowserAccessibility* GetPreviousSibling(); |
| 95 | 95 |
| 96 // Return the next sibling of this object, or NULL if it's the last child | 96 // Return the next sibling of this object, or NULL if it's the last child |
| 97 // of its parent. | 97 // of its parent. |
| 98 BrowserAccessibility* GetNextSibling(); | 98 BrowserAccessibility* GetNextSibling(); |
| 99 | 99 |
| 100 // Returns the bounds of this object in coordinates relative to the |
| 101 // top-left corner of the overall web area. |
| 102 gfx::Rect GetLocalBoundsRect(); |
| 103 |
| 100 // Returns the bounds of this object in screen coordinates. | 104 // Returns the bounds of this object in screen coordinates. |
| 101 gfx::Rect GetBoundsRect(); | 105 gfx::Rect GetGlobalBoundsRect(); |
| 102 | 106 |
| 103 // Returns the deepest descendant that contains the specified point. | 107 // Returns the deepest descendant that contains the specified point |
| 108 // (in global screen coordinates). |
| 104 BrowserAccessibility* BrowserAccessibilityForPoint(const gfx::Point& point); | 109 BrowserAccessibility* BrowserAccessibilityForPoint(const gfx::Point& point); |
| 105 | 110 |
| 106 // | 111 // |
| 107 // Reference counting | 112 // Reference counting |
| 108 // | 113 // |
| 109 // Each object has an internal reference count and many platform | 114 // Each object has an internal reference count and many platform |
| 110 // implementations may also use native reference counting. | 115 // implementations may also use native reference counting. |
| 111 // | 116 // |
| 112 // The internal reference counting is used because sometimes | 117 // The internal reference counting is used because sometimes |
| 113 // multiple references to the same object exist temporarily during | 118 // multiple references to the same object exist temporarily during |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 // tree, a client may still be holding onto a pointer to this object, so | 275 // tree, a client may still be holding onto a pointer to this object, so |
| 271 // we mark it as inactive so that calls to any of this object's methods | 276 // we mark it as inactive so that calls to any of this object's methods |
| 272 // immediately return failure. | 277 // immediately return failure. |
| 273 bool instance_active_; | 278 bool instance_active_; |
| 274 | 279 |
| 275 private: | 280 private: |
| 276 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 281 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
| 277 }; | 282 }; |
| 278 | 283 |
| 279 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 284 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| OLD | NEW |