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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #import "content/browser/accessibility/browser_accessibility_mac.h" | 7 #import "content/browser/accessibility/browser_accessibility_mac.h" |
8 | 8 |
9 #import "content/browser/accessibility/browser_accessibility_cocoa.h" | 9 #import "content/browser/accessibility/browser_accessibility_cocoa.h" |
10 #import "content/browser/accessibility/browser_accessibility_delegate_mac.h" | 10 #import "content/browser/accessibility/browser_accessibility_delegate_mac.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 // Relinquish ownership of the cocoa obj. | 40 // Relinquish ownership of the cocoa obj. |
41 [temp release]; | 41 [temp release]; |
42 // At this point, other processes may have a reference to | 42 // At this point, other processes may have a reference to |
43 // the cocoa object. When the retain count hits zero, it will | 43 // the cocoa object. When the retain count hits zero, it will |
44 // destroy us in dealloc. | 44 // destroy us in dealloc. |
45 // For that reason, do *not* make any more calls here after | 45 // For that reason, do *not* make any more calls here after |
46 // as we might have been deleted. | 46 // as we might have been deleted. |
47 } | 47 } |
48 } | 48 } |
49 | 49 |
| 50 bool BrowserAccessibilityMac::IsNative() const { |
| 51 return true; |
| 52 } |
| 53 |
50 void BrowserAccessibilityMac::DetachTree( | 54 void BrowserAccessibilityMac::DetachTree( |
51 std::vector<BrowserAccessibility*>* nodes) { | 55 std::vector<BrowserAccessibility*>* nodes) { |
52 [browser_accessibility_cocoa_ childrenChanged]; | 56 [browser_accessibility_cocoa_ childrenChanged]; |
53 BrowserAccessibility::DetachTree(nodes); | 57 BrowserAccessibility::DetachTree(nodes); |
54 } | 58 } |
55 | 59 |
56 BrowserAccessibilityCocoa* BrowserAccessibility::toBrowserAccessibilityCocoa() { | 60 BrowserAccessibilityCocoa* BrowserAccessibility::ToBrowserAccessibilityCocoa() { |
57 return static_cast<BrowserAccessibilityMac*>(this)-> | 61 return static_cast<BrowserAccessibilityMac*>(this)-> |
58 native_view(); | 62 native_view(); |
59 } | 63 } |
OLD | NEW |