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_DELEGATE_MAC_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_DELEGATE_MAC_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_DELEGATE_MAC_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_DELEGATE_MAC_H_ |
7 #pragma once | |
8 | 7 |
9 @class BrowserAccessibilityCocoa; | 8 @class BrowserAccessibilityCocoa; |
10 @class NSWindow; | 9 @class NSWindow; |
11 | 10 |
12 // This protocol is used by the BrowserAccessibility objects to pass messages | 11 // This protocol is used by the BrowserAccessibility objects to pass messages |
13 // to, or otherwise communicate with, their underlying WebAccessibility | 12 // to, or otherwise communicate with, their underlying WebAccessibility |
14 // objects over the IPC boundary. | 13 // objects over the IPC boundary. |
15 @protocol BrowserAccessibilityDelegateCocoa | 14 @protocol BrowserAccessibilityDelegateCocoa |
16 - (NSPoint)accessibilityPointInScreen:(BrowserAccessibilityCocoa*)accessibility; | 15 - (NSPoint)accessibilityPointInScreen:(BrowserAccessibilityCocoa*)accessibility; |
17 - (void)doDefaultAction:(int32)accessibilityObjectId; | 16 - (void)doDefaultAction:(int32)accessibilityObjectId; |
18 - (void)accessibilitySetTextSelection:(int32)accId | 17 - (void)accessibilitySetTextSelection:(int32)accId |
19 startOffset:(int32)startOffset | 18 startOffset:(int32)startOffset |
20 endOffset:(int32)endOffset; | 19 endOffset:(int32)endOffset; |
21 - (void)performShowMenuAction:(BrowserAccessibilityCocoa*)accessibility; | 20 - (void)performShowMenuAction:(BrowserAccessibilityCocoa*)accessibility; |
22 - (void)setAccessibilityFocus:(BOOL)focus | 21 - (void)setAccessibilityFocus:(BOOL)focus |
23 accessibilityId:(int32)accessibilityObjectId; | 22 accessibilityId:(int32)accessibilityObjectId; |
24 - (NSWindow*)window; | 23 - (NSWindow*)window; |
25 @end | 24 @end |
26 | 25 |
27 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_DELEGATE_MAC_H_ | 26 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_DELEGATE_MAC_H_ |
OLD | NEW |