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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlcom.h> | 10 #include <atlcom.h> |
11 #include <oleacc.h> | 11 #include <oleacc.h> |
12 #include <UIAutomationCore.h> | 12 #include <UIAutomationCore.h> |
13 | 13 |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
| 16 #include "base/compiler_specific.h" |
16 #include "content/browser/accessibility/browser_accessibility.h" | 17 #include "content/browser/accessibility/browser_accessibility.h" |
17 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
18 #include "third_party/iaccessible2/ia2_api_all.h" | 19 #include "third_party/iaccessible2/ia2_api_all.h" |
19 #include "third_party/isimpledom/ISimpleDOMDocument.h" | 20 #include "third_party/isimpledom/ISimpleDOMDocument.h" |
20 #include "third_party/isimpledom/ISimpleDOMNode.h" | 21 #include "third_party/isimpledom/ISimpleDOMNode.h" |
21 #include "third_party/isimpledom/ISimpleDOMText.h" | 22 #include "third_party/isimpledom/ISimpleDOMText.h" |
22 #include "webkit/glue/webaccessibility.h" | 23 #include "webkit/glue/webaccessibility.h" |
23 | 24 |
24 class BrowserAccessibilityRelation; | 25 class BrowserAccessibilityRelation; |
25 | 26 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 94 |
94 CONTENT_EXPORT virtual ~BrowserAccessibilityWin(); | 95 CONTENT_EXPORT virtual ~BrowserAccessibilityWin(); |
95 | 96 |
96 // | 97 // |
97 // BrowserAccessibility methods. | 98 // BrowserAccessibility methods. |
98 // | 99 // |
99 CONTENT_EXPORT virtual void PreInitialize(); | 100 CONTENT_EXPORT virtual void PreInitialize(); |
100 CONTENT_EXPORT virtual void PostInitialize(); | 101 CONTENT_EXPORT virtual void PostInitialize(); |
101 CONTENT_EXPORT virtual void NativeAddReference(); | 102 CONTENT_EXPORT virtual void NativeAddReference(); |
102 CONTENT_EXPORT virtual void NativeReleaseReference(); | 103 CONTENT_EXPORT virtual void NativeReleaseReference(); |
| 104 CONTENT_EXPORT virtual BrowserAccessibilityWin* ToBrowserAccessibilityWin() |
| 105 OVERRIDE; |
103 | 106 |
104 // | 107 // |
105 // IAccessible methods. | 108 // IAccessible methods. |
106 // | 109 // |
107 | 110 |
108 // Performs the default action on a given object. | 111 // Performs the default action on a given object. |
109 CONTENT_EXPORT STDMETHODIMP accDoDefaultAction(VARIANT var_id); | 112 CONTENT_EXPORT STDMETHODIMP accDoDefaultAction(VARIANT var_id); |
110 | 113 |
111 // Retrieves the child element or child object at a given point on the screen. | 114 // Retrieves the child element or child object at a given point on the screen. |
112 CONTENT_EXPORT STDMETHODIMP accHitTest(LONG x_left, LONG y_top, | 115 CONTENT_EXPORT STDMETHODIMP accHitTest(LONG x_left, LONG y_top, |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 std::vector<int32> hyperlinks_; | 861 std::vector<int32> hyperlinks_; |
859 | 862 |
860 // Give BrowserAccessibility::Create access to our constructor. | 863 // Give BrowserAccessibility::Create access to our constructor. |
861 friend class BrowserAccessibility; | 864 friend class BrowserAccessibility; |
862 friend class BrowserAccessibilityRelation; | 865 friend class BrowserAccessibilityRelation; |
863 | 866 |
864 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); | 867 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); |
865 }; | 868 }; |
866 | 869 |
867 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 870 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
OLD | NEW |