| 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_MAC_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MAC_H_ |
| 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MAC_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MAC_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "content/browser/accessibility/browser_accessibility.h" | 13 #include "content/browser/accessibility/browser_accessibility.h" |
| 14 #include "content/common/content_export.h" |
| 14 | 15 |
| 15 @class BrowserAccessibilityCocoa; | 16 @class BrowserAccessibilityCocoa; |
| 16 | 17 |
| 17 namespace content { | 18 namespace content { |
| 18 | 19 |
| 20 #if __OBJC__ |
| 21 CONTENT_EXPORT const BrowserAccessibilityCocoa* ToBrowserAccessibilityCocoa( |
| 22 const BrowserAccessibility* obj); |
| 23 CONTENT_EXPORT BrowserAccessibilityCocoa* ToBrowserAccessibilityCocoa( |
| 24 BrowserAccessibility* obj); |
| 25 #endif |
| 26 |
| 19 class BrowserAccessibilityMac : public BrowserAccessibility { | 27 class BrowserAccessibilityMac : public BrowserAccessibility { |
| 20 public: | 28 public: |
| 21 // BrowserAccessibility overrides. | 29 // BrowserAccessibility overrides. |
| 22 void NativeReleaseReference() override; | 30 void NativeReleaseReference() override; |
| 23 bool IsNative() const override; | 31 bool IsNative() const override; |
| 24 void OnDataChanged() override; | 32 void OnDataChanged() override; |
| 25 | 33 |
| 26 // The BrowserAccessibilityCocoa associated with us. | 34 // The BrowserAccessibilityCocoa associated with us. |
| 27 BrowserAccessibilityCocoa* native_view() const { | 35 BrowserAccessibilityCocoa* native_view() const { |
| 28 return browser_accessibility_cocoa_; | 36 return browser_accessibility_cocoa_; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 43 // BrowserAccessibility. | 51 // BrowserAccessibility. |
| 44 // We own this object until our manager calls ReleaseReference; | 52 // We own this object until our manager calls ReleaseReference; |
| 45 // thereafter, the cocoa object owns us. | 53 // thereafter, the cocoa object owns us. |
| 46 BrowserAccessibilityCocoa* browser_accessibility_cocoa_; | 54 BrowserAccessibilityCocoa* browser_accessibility_cocoa_; |
| 47 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityMac); | 55 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityMac); |
| 48 }; | 56 }; |
| 49 | 57 |
| 50 } // namespace content | 58 } // namespace content |
| 51 | 59 |
| 52 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MAC_H_ | 60 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MAC_H_ |
| OLD | NEW |