OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
187 | 187 |
188 CONTENT_EXPORT STDMETHODIMP get_nRelations(LONG* n_relations); | 188 CONTENT_EXPORT STDMETHODIMP get_nRelations(LONG* n_relations); |
189 | 189 |
190 CONTENT_EXPORT STDMETHODIMP get_relation(LONG relation_index, | 190 CONTENT_EXPORT STDMETHODIMP get_relation(LONG relation_index, |
191 IAccessibleRelation** relation); | 191 IAccessibleRelation** relation); |
192 | 192 |
193 CONTENT_EXPORT STDMETHODIMP get_relations(LONG max_relations, | 193 CONTENT_EXPORT STDMETHODIMP get_relations(LONG max_relations, |
194 IAccessibleRelation** relations, | 194 IAccessibleRelation** relations, |
195 LONG* n_relations); | 195 LONG* n_relations); |
196 | 196 |
197 CONTENT_EXPORT STDMETHODIMP get_groupPosition(LONG* group_level, | |
198 LONG* similar_items_in_group, | |
199 LONG* position_in_group); | |
200 | |
197 // IAccessible2 methods not implemented. | 201 // IAccessible2 methods not implemented. |
198 CONTENT_EXPORT STDMETHODIMP get_extendedRole(BSTR* extended_role) { | 202 CONTENT_EXPORT STDMETHODIMP get_extendedRole(BSTR* extended_role) { |
199 return E_NOTIMPL; | 203 return E_NOTIMPL; |
200 } | 204 } |
201 CONTENT_EXPORT STDMETHODIMP scrollTo(enum IA2ScrollType scroll_type) { | 205 CONTENT_EXPORT STDMETHODIMP scrollTo(enum IA2ScrollType scroll_type) { |
202 return E_NOTIMPL; | 206 return E_NOTIMPL; |
203 } | 207 } |
204 CONTENT_EXPORT STDMETHODIMP scrollToPoint( | 208 CONTENT_EXPORT STDMETHODIMP scrollToPoint( |
205 enum IA2CoordinateType coordinate_type, | 209 enum IA2CoordinateType coordinate_type, |
206 LONG x, | 210 LONG x, |
207 LONG y) { | 211 LONG y) { |
208 return E_NOTIMPL; | 212 return E_NOTIMPL; |
209 } | 213 } |
210 CONTENT_EXPORT STDMETHODIMP get_groupPosition(LONG* group_level, | |
211 LONG* similar_items_in_group, | |
212 LONG* position_in_group) { | |
213 return E_NOTIMPL; | |
214 } | |
215 CONTENT_EXPORT STDMETHODIMP get_localizedExtendedRole( | 214 CONTENT_EXPORT STDMETHODIMP get_localizedExtendedRole( |
216 BSTR* localized_extended_role) { | 215 BSTR* localized_extended_role) { |
217 return E_NOTIMPL; | 216 return E_NOTIMPL; |
218 } | 217 } |
219 CONTENT_EXPORT STDMETHODIMP get_nExtendedStates(LONG* n_extended_states) { | 218 CONTENT_EXPORT STDMETHODIMP get_nExtendedStates(LONG* n_extended_states) { |
220 return E_NOTIMPL; | 219 return E_NOTIMPL; |
221 } | 220 } |
222 CONTENT_EXPORT STDMETHODIMP get_extendedStates(LONG max_extended_states, | 221 CONTENT_EXPORT STDMETHODIMP get_extendedStates(LONG max_extended_states, |
223 BSTR** extended_states, | 222 BSTR** extended_states, |
224 LONG* n_extended_states) { | 223 LONG* n_extended_states) { |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
715 bool first_time_; | 714 bool first_time_; |
716 | 715 |
717 // The previous text, before the last update to this object. | 716 // The previous text, before the last update to this object. |
718 string16 previous_text_; | 717 string16 previous_text_; |
719 | 718 |
720 // The old text to return in IAccessibleText::get_oldText - this is like | 719 // The old text to return in IAccessibleText::get_oldText - this is like |
721 // previous_text_ except that it's NOT updated when the object | 720 // previous_text_ except that it's NOT updated when the object |
722 // is initialized again but the text doesn't change. | 721 // is initialized again but the text doesn't change. |
723 string16 old_text_; | 722 string16 old_text_; |
724 | 723 |
724 // The previous state, used to see if there was a state change. | |
725 int32 old_ia_state_; | |
M-A Ruel
2011/11/29 20:28:32
I'd expect bitmaps to be uint32 ?
dmazzoni
2011/11/29 21:55:00
This matches the signedness of the return type of
M-A Ruel
2011/11/29 22:12:33
Right, it's to support ole scripting, I had forgot
| |
726 | |
725 // Relationships between this node and other nodes. | 727 // Relationships between this node and other nodes. |
726 std::vector<BrowserAccessibilityRelation*> relations_; | 728 std::vector<BrowserAccessibilityRelation*> relations_; |
727 | 729 |
728 // Give BrowserAccessibility::Create access to our constructor. | 730 // Give BrowserAccessibility::Create access to our constructor. |
729 friend class BrowserAccessibility; | 731 friend class BrowserAccessibility; |
730 friend class BrowserAccessibilityRelation; | 732 friend class BrowserAccessibilityRelation; |
731 | 733 |
732 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); | 734 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); |
733 }; | 735 }; |
734 | 736 |
735 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 737 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
OLD | NEW |