OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_BROWSER_ACCESSIBILITY_WIN_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_ACCESSIBILITY_WIN_H_ |
6 #define CHROME_BROWSER_BROWSER_ACCESSIBILITY_WIN_H_ | 6 #define CHROME_BROWSER_BROWSER_ACCESSIBILITY_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlcom.h> | 10 #include <atlcom.h> |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // deleted, and in the meantime, calls to any methods will return E_FAIL. | 64 // deleted, and in the meantime, calls to any methods will return E_FAIL. |
65 void InactivateTree(); | 65 void InactivateTree(); |
66 | 66 |
67 // Return true if this object is equal to or a descendant of |ancestor|. | 67 // Return true if this object is equal to or a descendant of |ancestor|. |
68 bool IsDescendantOf(BrowserAccessibility* ancestor); | 68 bool IsDescendantOf(BrowserAccessibility* ancestor); |
69 | 69 |
70 // Returns the parent of this object, or NULL if it's the BrowserAccessibility | 70 // Returns the parent of this object, or NULL if it's the BrowserAccessibility |
71 // root. | 71 // root. |
72 BrowserAccessibility* GetParent(); | 72 BrowserAccessibility* GetParent(); |
73 | 73 |
| 74 // Returns the number of children of this BrowserAccessibility object. |
| 75 uint32 GetChildCount(); |
| 76 |
74 // Return the previous sibling of this object, or NULL if it's the first | 77 // Return the previous sibling of this object, or NULL if it's the first |
75 // child of its parent. | 78 // child of its parent. |
76 BrowserAccessibility* GetPreviousSibling(); | 79 BrowserAccessibility* GetPreviousSibling(); |
77 | 80 |
78 // Return the next sibling of this object, or NULL if it's the last child | 81 // Return the next sibling of this object, or NULL if it's the last child |
79 // of its parent. | 82 // of its parent. |
80 BrowserAccessibility* GetNextSibling(); | 83 BrowserAccessibility* GetNextSibling(); |
81 | 84 |
82 // Replace a child BrowserAccessibility object. Used when updating the | 85 // Replace a child BrowserAccessibility object. Used when updating the |
83 // accessibility tree. | 86 // accessibility tree. |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 // and it's removed from our accessibility tree, a client may still be | 404 // and it's removed from our accessibility tree, a client may still be |
402 // holding onto a pointer to this object, so we mark it as inactive | 405 // holding onto a pointer to this object, so we mark it as inactive |
403 // so that calls to any of this object's methods immediately return | 406 // so that calls to any of this object's methods immediately return |
404 // failure. | 407 // failure. |
405 bool instance_active_; | 408 bool instance_active_; |
406 | 409 |
407 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 410 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
408 }; | 411 }; |
409 | 412 |
410 #endif // CHROME_BROWSER_BROWSER_ACCESSIBILITY_WIN_H_ | 413 #endif // CHROME_BROWSER_BROWSER_ACCESSIBILITY_WIN_H_ |
OLD | NEW |