| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 // Called after an atomic update to the tree finished and this object | 59 // Called after an atomic update to the tree finished and this object |
| 60 // was created or changed in this update. | 60 // was created or changed in this update. |
| 61 virtual void OnUpdateFinished() {} | 61 virtual void OnUpdateFinished() {} |
| 62 | 62 |
| 63 // Returns true if this is a native platform-specific object, vs a | 63 // Returns true if this is a native platform-specific object, vs a |
| 64 // cross-platform generic object. | 64 // cross-platform generic object. |
| 65 virtual bool IsNative() const; | 65 virtual bool IsNative() const; |
| 66 | 66 |
| 67 // Called when the location changed. | 67 // Called when the location changed. |
| 68 virtual void OnLocationChanged() const {} | 68 virtual void OnLocationChanged() {} |
| 69 | 69 |
| 70 // Return true if this object is equal to or a descendant of |ancestor|. | 70 // Return true if this object is equal to or a descendant of |ancestor|. |
| 71 bool IsDescendantOf(BrowserAccessibility* ancestor); | 71 bool IsDescendantOf(BrowserAccessibility* ancestor); |
| 72 | 72 |
| 73 // Returns true if this is a leaf node on this platform, meaning any | 73 // Returns true if this is a leaf node on this platform, meaning any |
| 74 // children should not be exposed to this platform's native accessibility | 74 // children should not be exposed to this platform's native accessibility |
| 75 // layer. Each platform subclass should implement this itself. | 75 // layer. Each platform subclass should implement this itself. |
| 76 // The definition of a leaf may vary depending on the platform, | 76 // The definition of a leaf may vary depending on the platform, |
| 77 // but a leaf node should never have children that are focusable or | 77 // but a leaf node should never have children that are focusable or |
| 78 // that might send notifications. | 78 // that might send notifications. |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 std::string name_; | 262 std::string name_; |
| 263 std::string value_; | 263 std::string value_; |
| 264 | 264 |
| 265 private: | 265 private: |
| 266 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 266 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
| 267 }; | 267 }; |
| 268 | 268 |
| 269 } // namespace content | 269 } // namespace content |
| 270 | 270 |
| 271 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 271 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| OLD | NEW |