| 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/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 - (void)childrenChanged; | 34 - (void)childrenChanged; |
| 35 | 35 |
| 36 // Convenience method to get the internal, cross-platform role | 36 // Convenience method to get the internal, cross-platform role |
| 37 // from browserAccessibility_. | 37 // from browserAccessibility_. |
| 38 - (ui::AXRole)internalRole; | 38 - (ui::AXRole)internalRole; |
| 39 | 39 |
| 40 // Convenience method to get the BrowserAccessibilityDelegate from | 40 // Convenience method to get the BrowserAccessibilityDelegate from |
| 41 // the manager. | 41 // the manager. |
| 42 - (content::BrowserAccessibilityDelegate*)delegate; | 42 - (content::BrowserAccessibilityDelegate*)delegate; |
| 43 | 43 |
| 44 // Get the BrowserAccessibility that this object wraps. |
| 45 - (content::BrowserAccessibility*)browserAccessibility; |
| 46 |
| 44 // Convert the local objet's origin to a global point. | 47 // Convert the local objet's origin to a global point. |
| 45 - (NSPoint)pointInScreen:(NSPoint)origin | 48 - (NSPoint)pointInScreen:(NSPoint)origin |
| 46 size:(NSSize)size; | 49 size:(NSSize)size; |
| 47 | 50 |
| 48 // Return the method name for the given attribute. For testing only. | 51 // Return the method name for the given attribute. For testing only. |
| 49 - (NSString*)methodNameForAttribute:(NSString*)attribute; | 52 - (NSString*)methodNameForAttribute:(NSString*)attribute; |
| 50 | 53 |
| 51 // Swap the children array with the given scoped_nsobject. | 54 // Swap the children array with the given scoped_nsobject. |
| 52 - (void)swapChildren:(base::scoped_nsobject<NSMutableArray>*)other; | 55 - (void)swapChildren:(base::scoped_nsobject<NSMutableArray>*)other; |
| 53 | 56 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 @property(nonatomic, readonly) NSValue* visibleCharacterRange; | 114 @property(nonatomic, readonly) NSValue* visibleCharacterRange; |
| 112 @property(nonatomic, readonly) NSArray* visibleCells; | 115 @property(nonatomic, readonly) NSArray* visibleCells; |
| 113 @property(nonatomic, readonly) NSArray* visibleChildren; | 116 @property(nonatomic, readonly) NSArray* visibleChildren; |
| 114 @property(nonatomic, readonly) NSArray* visibleColumns; | 117 @property(nonatomic, readonly) NSArray* visibleColumns; |
| 115 @property(nonatomic, readonly) NSArray* visibleRows; | 118 @property(nonatomic, readonly) NSArray* visibleRows; |
| 116 @property(nonatomic, readonly) NSNumber* visited; | 119 @property(nonatomic, readonly) NSNumber* visited; |
| 117 @property(nonatomic, readonly) id window; | 120 @property(nonatomic, readonly) id window; |
| 118 @end | 121 @end |
| 119 | 122 |
| 120 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COCOA_H_ | 123 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COCOA_H_ |
| OLD | NEW |