| 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_WIN_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
| 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // | 27 // |
| 28 // BrowserAccessibility methods. | 28 // BrowserAccessibility methods. |
| 29 // | 29 // |
| 30 void OnSubtreeWillBeDeleted() override; | 30 void OnSubtreeWillBeDeleted() override; |
| 31 bool IsNative() const override; | 31 bool IsNative() const override; |
| 32 void OnLocationChanged() override; | 32 void OnLocationChanged() override; |
| 33 base::string16 GetText() const override; | 33 base::string16 GetText() const override; |
| 34 | 34 |
| 35 gfx::NativeViewAccessible GetNativeViewAccessible() override; | 35 gfx::NativeViewAccessible GetNativeViewAccessible() override; |
| 36 ui::AXPlatformNode* GetFromNodeID(int32_t id) override; |
| 36 | 37 |
| 37 class BrowserAccessibilityComWin* GetCOM() const; | 38 class BrowserAccessibilityComWin* GetCOM() const; |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 CComObject<BrowserAccessibilityComWin>* browser_accessibility_com_; | 41 CComObject<BrowserAccessibilityComWin>* browser_accessibility_com_; |
| 41 // Give BrowserAccessibility::Create access to our constructor. | 42 // Give BrowserAccessibility::Create access to our constructor. |
| 42 friend class BrowserAccessibility; | 43 friend class BrowserAccessibility; |
| 43 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); | 44 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 CONTENT_EXPORT BrowserAccessibilityWin* | 47 CONTENT_EXPORT BrowserAccessibilityWin* |
| 47 ToBrowserAccessibilityWin(BrowserAccessibility* obj); | 48 ToBrowserAccessibilityWin(BrowserAccessibility* obj); |
| 48 | 49 |
| 49 CONTENT_EXPORT const BrowserAccessibilityWin* | 50 CONTENT_EXPORT const BrowserAccessibilityWin* |
| 50 ToBrowserAccessibilityWin(const BrowserAccessibility* obj); | 51 ToBrowserAccessibilityWin(const BrowserAccessibility* obj); |
| 51 | 52 |
| 52 } // namespace content | 53 } // namespace content |
| 53 | 54 |
| 54 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 55 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
| OLD | NEW |