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