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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 static std::map<int32, string16> role_string_map; | 90 static std::map<int32, string16> role_string_map; |
90 static std::map<int32, string16> state_string_map; | 91 static std::map<int32, string16> state_string_map; |
91 | 92 |
92 CONTENT_EXPORT BrowserAccessibilityWin(); | 93 CONTENT_EXPORT BrowserAccessibilityWin(); |
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() OVERRIDE; |
100 CONTENT_EXPORT virtual void PostInitialize(); | 101 CONTENT_EXPORT virtual void PostInitialize() OVERRIDE; |
101 CONTENT_EXPORT virtual void NativeAddReference(); | 102 CONTENT_EXPORT virtual void NativeAddReference() OVERRIDE; |
102 CONTENT_EXPORT virtual void NativeReleaseReference(); | 103 CONTENT_EXPORT virtual void NativeReleaseReference() OVERRIDE; |
| 104 CONTENT_EXPORT virtual bool IsNative() const OVERRIDE; |
103 | 105 |
104 // | 106 // |
105 // IAccessible methods. | 107 // IAccessible methods. |
106 // | 108 // |
107 | 109 |
108 // Performs the default action on a given object. | 110 // Performs the default action on a given object. |
109 CONTENT_EXPORT STDMETHODIMP accDoDefaultAction(VARIANT var_id); | 111 CONTENT_EXPORT STDMETHODIMP accDoDefaultAction(VARIANT var_id); |
110 | 112 |
111 // Retrieves the child element or child object at a given point on the screen. | 113 // 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, | 114 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_; | 860 std::vector<int32> hyperlinks_; |
859 | 861 |
860 // Give BrowserAccessibility::Create access to our constructor. | 862 // Give BrowserAccessibility::Create access to our constructor. |
861 friend class BrowserAccessibility; | 863 friend class BrowserAccessibility; |
862 friend class BrowserAccessibilityRelation; | 864 friend class BrowserAccessibilityRelation; |
863 | 865 |
864 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); | 866 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); |
865 }; | 867 }; |
866 | 868 |
867 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 869 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
OLD | NEW |