OLD | NEW |
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 // Called only once, immediately after construction. The constructor doesn't | 52 // Called only once, immediately after construction. The constructor doesn't |
53 // take any arguments because in the Windows subclass we use a special | 53 // take any arguments because in the Windows subclass we use a special |
54 // function to construct a COM object. | 54 // function to construct a COM object. |
55 virtual void Init(BrowserAccessibilityManager* manager, ui::AXNode* node); | 55 virtual void Init(BrowserAccessibilityManager* manager, ui::AXNode* node); |
56 | 56 |
57 // Called after the object is first initialized and again every time | 57 // Called after the object is first initialized and again every time |
58 // its data changes. | 58 // its data changes. |
59 virtual void OnDataChanged() {} | 59 virtual void OnDataChanged() {} |
60 | 60 |
61 // Called after an atomic update to the tree finished and this object | |
62 // was created or changed in this update. | |
63 virtual void OnUpdateFinished() {} | |
64 | |
65 virtual void OnSubtreeWillBeDeleted() {} | 61 virtual void OnSubtreeWillBeDeleted() {} |
66 | 62 |
67 virtual void OnSubtreeCreationFinished() {} | |
68 | |
69 // Called when the location changed. | 63 // Called when the location changed. |
70 virtual void OnLocationChanged() {} | 64 virtual void OnLocationChanged() {} |
71 | 65 |
72 // Return true if this object is equal to or a descendant of |ancestor|. | 66 // Return true if this object is equal to or a descendant of |ancestor|. |
73 bool IsDescendantOf(BrowserAccessibility* ancestor); | 67 bool IsDescendantOf(BrowserAccessibility* ancestor); |
74 | 68 |
75 // Returns true if this is a leaf node on this platform, meaning any | 69 // Returns true if this is a leaf node on this platform, meaning any |
76 // children should not be exposed to this platform's native accessibility | 70 // children should not be exposed to this platform's native accessibility |
77 // layer. Each platform subclass should implement this itself. | 71 // layer. Each platform subclass should implement this itself. |
78 // The definition of a leaf may vary depending on the platform, | 72 // The definition of a leaf may vary depending on the platform, |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // subtree rather than skipping over them - because they contain important | 266 // subtree rather than skipping over them - because they contain important |
273 // bounds offsets. | 267 // bounds offsets. |
274 BrowserAccessibility* GetParentForBoundsCalculation() const; | 268 BrowserAccessibility* GetParentForBoundsCalculation() const; |
275 | 269 |
276 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 270 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
277 }; | 271 }; |
278 | 272 |
279 } // namespace content | 273 } // namespace content |
280 | 274 |
281 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 275 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
OLD | NEW |