| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // Perform platform-specific initialization. This can be called multiple times | 55 // Perform platform-specific initialization. This can be called multiple times |
| 56 // during the lifetime of this instance after the members of this base object | 56 // during the lifetime of this instance after the members of this base object |
| 57 // have been reset with new values from the renderer process. | 57 // have been reset with new values from the renderer process. |
| 58 // Child dependent initialization can be done here. | 58 // Child dependent initialization can be done here. |
| 59 virtual void PostInitialize() {} | 59 virtual void PostInitialize() {} |
| 60 | 60 |
| 61 // Returns true if this is a native platform-specific object, vs a | 61 // Returns true if this is a native platform-specific object, vs a |
| 62 // cross-platform generic object. | 62 // cross-platform generic object. |
| 63 virtual bool IsNative() const; | 63 virtual bool IsNative() const; |
| 64 | 64 |
| 65 // Returns true if this is a leaf node on this platform, meaning any |
| 66 // children should not be exposed to this platform's native accessibility |
| 67 // layer. Each platform subclass should implement this itself. |
| 68 // The definition of a leaf may vary depending on the platform, |
| 69 // but a leaf node should never have children that are focusable or |
| 70 // that might send notifications. |
| 71 virtual bool IsLeaf() const; |
| 72 |
| 65 // Initialize the tree structure of this object. | 73 // Initialize the tree structure of this object. |
| 66 void InitializeTreeStructure( | 74 void InitializeTreeStructure( |
| 67 BrowserAccessibilityManager* manager, | 75 BrowserAccessibilityManager* manager, |
| 68 BrowserAccessibility* parent, | 76 BrowserAccessibility* parent, |
| 69 int32 renderer_id, | 77 int32 renderer_id, |
| 70 int32 index_in_parent); | 78 int32 index_in_parent); |
| 71 | 79 |
| 72 // Initialize this object's data. | 80 // Initialize this object's data. |
| 73 void InitializeData(const AccessibilityNodeData& src); | 81 void InitializeData(const AccessibilityNodeData& src); |
| 74 | 82 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 // immediately return failure. | 299 // immediately return failure. |
| 292 bool instance_active_; | 300 bool instance_active_; |
| 293 | 301 |
| 294 private: | 302 private: |
| 295 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 303 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
| 296 }; | 304 }; |
| 297 | 305 |
| 298 } // namespace content | 306 } // namespace content |
| 299 | 307 |
| 300 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 308 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| OLD | NEW |