| 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_COCOA_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COCOA_H_ |
| 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COCOA_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COCOA_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #import "base/memory/scoped_nsobject.h" | 10 #import "base/memory/scoped_nsobject.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 id<BrowserAccessibilityDelegateCocoa> delegate_; | 23 id<BrowserAccessibilityDelegateCocoa> delegate_; |
| 24 } | 24 } |
| 25 | 25 |
| 26 // This creates a cocoa browser accessibility object around | 26 // This creates a cocoa browser accessibility object around |
| 27 // the cross platform BrowserAccessibility object. The delegate is | 27 // the cross platform BrowserAccessibility object. The delegate is |
| 28 // used to communicate with the host renderer. None of these | 28 // used to communicate with the host renderer. None of these |
| 29 // parameters can be null. | 29 // parameters can be null. |
| 30 - (id)initWithObject:(content::BrowserAccessibility*)accessibility | 30 - (id)initWithObject:(content::BrowserAccessibility*)accessibility |
| 31 delegate:(id<BrowserAccessibilityDelegateCocoa>)delegate; | 31 delegate:(id<BrowserAccessibilityDelegateCocoa>)delegate; |
| 32 | 32 |
| 33 // Clear this object's pointer to the wrapped BrowserAccessibility object |
| 34 // because the wrapped object has been deleted, but this object may |
| 35 // persist if the system still has references to it. |
| 36 - (void)detach; |
| 37 |
| 33 // Invalidate children for a non-ignored ancestor (including self). | 38 // Invalidate children for a non-ignored ancestor (including self). |
| 34 - (void)childrenChanged; | 39 - (void)childrenChanged; |
| 35 | 40 |
| 36 // Convenience method to get the internal, cross-platform role | 41 // Convenience method to get the internal, cross-platform role |
| 37 // from browserAccessibility_. | 42 // from browserAccessibility_. |
| 38 - (content::AccessibilityNodeData::Role)internalRole; | 43 - (content::AccessibilityNodeData::Role)internalRole; |
| 39 | 44 |
| 40 // Return the method name for the given attribute. For testing only. | 45 // Return the method name for the given attribute. For testing only. |
| 41 - (NSString*)methodNameForAttribute:(NSString*)attribute; | 46 - (NSString*)methodNameForAttribute:(NSString*)attribute; |
| 42 | 47 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 @property(nonatomic, readonly) NSString* valueDescription; | 103 @property(nonatomic, readonly) NSString* valueDescription; |
| 99 @property(nonatomic, readonly) NSValue* visibleCharacterRange; | 104 @property(nonatomic, readonly) NSValue* visibleCharacterRange; |
| 100 @property(nonatomic, readonly) NSArray* visibleCells; | 105 @property(nonatomic, readonly) NSArray* visibleCells; |
| 101 @property(nonatomic, readonly) NSArray* visibleColumns; | 106 @property(nonatomic, readonly) NSArray* visibleColumns; |
| 102 @property(nonatomic, readonly) NSArray* visibleRows; | 107 @property(nonatomic, readonly) NSArray* visibleRows; |
| 103 @property(nonatomic, readonly) NSNumber* visited; | 108 @property(nonatomic, readonly) NSNumber* visited; |
| 104 @property(nonatomic, readonly) id window; | 109 @property(nonatomic, readonly) id window; |
| 105 @end | 110 @end |
| 106 | 111 |
| 107 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COCOA_H_ | 112 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COCOA_H_ |
| OLD | NEW |