Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: ui/views/accessibility/native_view_accessibility_win.h

Issue 23441024: Implement put_accvalue for textfields and location bar. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Switch to WeakPtrFactory Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ 5 #ifndef UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_
6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ 6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 #include <oleacc.h> 10 #include <oleacc.h>
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 // Retrieves the IDispatch interface of the object's parent. 108 // Retrieves the IDispatch interface of the object's parent.
109 STDMETHODIMP get_accParent(IDispatch** disp_parent); 109 STDMETHODIMP get_accParent(IDispatch** disp_parent);
110 110
111 // Retrieves information describing the role of the specified object. 111 // Retrieves information describing the role of the specified object.
112 STDMETHODIMP get_accRole(VARIANT var_id, VARIANT* role); 112 STDMETHODIMP get_accRole(VARIANT var_id, VARIANT* role);
113 113
114 // Retrieves the current state of the specified object. 114 // Retrieves the current state of the specified object.
115 STDMETHODIMP get_accState(VARIANT var_id, VARIANT* state); 115 STDMETHODIMP get_accState(VARIANT var_id, VARIANT* state);
116 116
117 // Retrieves the current value associated with the specified object. 117 // Retrieve or set the string value associated with the specified object.
118 // Setting the value is not typically used by screen readers, but it's
119 // used frequently by automation software.
118 STDMETHODIMP get_accValue(VARIANT var_id, BSTR* value); 120 STDMETHODIMP get_accValue(VARIANT var_id, BSTR* value);
119 121 STDMETHODIMP put_accValue(VARIANT var_id, BSTR new_value);
120 // Non-supported IAccessible methods.
121 122
122 // Selections not applicable to views. 123 // Selections not applicable to views.
123 STDMETHODIMP get_accSelection(VARIANT* selected); 124 STDMETHODIMP get_accSelection(VARIANT* selected);
124 STDMETHODIMP accSelect(LONG flags_sel, VARIANT var_id); 125 STDMETHODIMP accSelect(LONG flags_sel, VARIANT var_id);
125 126
126 // Help functions not supported. 127 // Help functions not supported.
127 STDMETHODIMP get_accHelp(VARIANT var_id, BSTR* help); 128 STDMETHODIMP get_accHelp(VARIANT var_id, BSTR* help);
128 STDMETHODIMP get_accHelpTopic(BSTR* help_file, 129 STDMETHODIMP get_accHelpTopic(BSTR* help_file,
129 VARIANT var_id, 130 VARIANT var_id,
130 LONG* topic_id); 131 LONG* topic_id);
131 132
132 // Deprecated functions, not implemented here. 133 // Deprecated functions, not implemented here.
133 STDMETHODIMP put_accName(VARIANT var_id, BSTR put_name); 134 STDMETHODIMP put_accName(VARIANT var_id, BSTR put_name);
134 STDMETHODIMP put_accValue(VARIANT var_id, BSTR put_val);
135 135
136 // 136 //
137 // IAccessible2 137 // IAccessible2
138 // 138 //
139 139
140 STDMETHODIMP role(LONG* role); 140 STDMETHODIMP role(LONG* role);
141 141
142 STDMETHODIMP get_states(AccessibleStates* states); 142 STDMETHODIMP get_states(AccessibleStates* states);
143 143
144 STDMETHODIMP get_uniqueID(LONG* unique_id); 144 STDMETHODIMP get_uniqueID(LONG* unique_id);
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 411
412 // Next index into |view_storage_ids_| to use. 412 // Next index into |view_storage_ids_| to use.
413 static int next_view_storage_id_index_; 413 static int next_view_storage_id_index_;
414 414
415 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityWin); 415 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityWin);
416 }; 416 };
417 417
418 } // namespace views 418 } // namespace views
419 419
420 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ 420 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698