OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ | 5 #ifndef VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ |
6 #define VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ | 6 #define VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 virtual ~ViewAccessibility(); | 42 virtual ~ViewAccessibility(); |
43 | 43 |
44 void set_view(views::View* view) { view_ = view; } | 44 void set_view(views::View* view) { view_ = view; } |
45 | 45 |
46 // Supported IAccessible methods. | 46 // Supported IAccessible methods. |
47 | 47 |
48 // Retrieves the child element or child object at a given point on the screen. | 48 // Retrieves the child element or child object at a given point on the screen. |
49 STDMETHODIMP accHitTest(LONG x_left, LONG y_top, VARIANT* child); | 49 STDMETHODIMP accHitTest(LONG x_left, LONG y_top, VARIANT* child); |
50 | 50 |
| 51 // Performs the object's default action. |
| 52 STDMETHODIMP accDoDefaultAction(VARIANT var_id); |
| 53 |
51 // Retrieves the specified object's current screen location. | 54 // Retrieves the specified object's current screen location. |
52 STDMETHODIMP accLocation(LONG* x_left, | 55 STDMETHODIMP accLocation(LONG* x_left, |
53 LONG* y_top, | 56 LONG* y_top, |
54 LONG* width, | 57 LONG* width, |
55 LONG* height, | 58 LONG* height, |
56 VARIANT var_id); | 59 VARIANT var_id); |
57 | 60 |
58 // Traverses to another UI element and retrieves the object. | 61 // Traverses to another UI element and retrieves the object. |
59 STDMETHODIMP accNavigate(LONG nav_dir, VARIANT start, VARIANT* end); | 62 STDMETHODIMP accNavigate(LONG nav_dir, VARIANT start, VARIANT* end); |
60 | 63 |
(...skipping 25 matching lines...) Expand all Loading... |
86 STDMETHODIMP get_accRole(VARIANT var_id, VARIANT* role); | 89 STDMETHODIMP get_accRole(VARIANT var_id, VARIANT* role); |
87 | 90 |
88 // Retrieves the current state of the specified object. | 91 // Retrieves the current state of the specified object. |
89 STDMETHODIMP get_accState(VARIANT var_id, VARIANT* state); | 92 STDMETHODIMP get_accState(VARIANT var_id, VARIANT* state); |
90 | 93 |
91 // Retrieves the current value associated with the specified object. | 94 // Retrieves the current value associated with the specified object. |
92 STDMETHODIMP get_accValue(VARIANT var_id, BSTR* value); | 95 STDMETHODIMP get_accValue(VARIANT var_id, BSTR* value); |
93 | 96 |
94 // Non-supported IAccessible methods. | 97 // Non-supported IAccessible methods. |
95 | 98 |
96 // Out-dated and can be safely said to be very rarely used. | |
97 STDMETHODIMP accDoDefaultAction(VARIANT var_id); | |
98 | |
99 // Selections not applicable to views. | 99 // Selections not applicable to views. |
100 STDMETHODIMP get_accSelection(VARIANT* selected); | 100 STDMETHODIMP get_accSelection(VARIANT* selected); |
101 STDMETHODIMP accSelect(LONG flags_sel, VARIANT var_id); | 101 STDMETHODIMP accSelect(LONG flags_sel, VARIANT var_id); |
102 | 102 |
103 // Help functions not supported. | 103 // Help functions not supported. |
104 STDMETHODIMP get_accHelp(VARIANT var_id, BSTR* help); | 104 STDMETHODIMP get_accHelp(VARIANT var_id, BSTR* help); |
105 STDMETHODIMP get_accHelpTopic(BSTR* help_file, | 105 STDMETHODIMP get_accHelpTopic(BSTR* help_file, |
106 VARIANT var_id, | 106 VARIANT var_id, |
107 LONG* topic_id); | 107 LONG* topic_id); |
108 | 108 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 // Member View needed for view-specific calls. | 157 // Member View needed for view-specific calls. |
158 views::View* view_; | 158 views::View* view_; |
159 | 159 |
160 DISALLOW_COPY_AND_ASSIGN(ViewAccessibility); | 160 DISALLOW_COPY_AND_ASSIGN(ViewAccessibility); |
161 }; | 161 }; |
162 | 162 |
163 extern const char kViewsNativeHostPropForAccessibility[]; | 163 extern const char kViewsNativeHostPropForAccessibility[]; |
164 | 164 |
165 #endif // VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ | 165 #endif // VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_H_ |
OLD | NEW |