OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "chrome/browser/autocomplete/autocomplete_accessibility.h" | 5 #include "chrome/browser/autocomplete/autocomplete_accessibility.h" |
6 | 6 |
7 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 7 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
8 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" | 8 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" |
9 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 return S_FALSE; | 114 return S_FALSE; |
115 } | 115 } |
116 | 116 |
117 STDMETHODIMP AutocompleteAccessibility::get_accValue(VARIANT var_id, | 117 STDMETHODIMP AutocompleteAccessibility::get_accValue(VARIANT var_id, |
118 BSTR* value) { | 118 BSTR* value) { |
119 if (var_id.vt != VT_I4 || !value) { | 119 if (var_id.vt != VT_I4 || !value) { |
120 return E_INVALIDARG; | 120 return E_INVALIDARG; |
121 } | 121 } |
122 | 122 |
123 std::wstring temp_value; | 123 string16 temp_value; |
124 | 124 |
125 if (var_id.lVal != CHILDID_SELF) | 125 if (var_id.lVal != CHILDID_SELF) |
126 return E_INVALIDARG; | 126 return E_INVALIDARG; |
127 | 127 |
128 // Edit box has no children, only handle self. | 128 // Edit box has no children, only handle self. |
129 temp_value = edit_box_->GetText(); | 129 temp_value = edit_box_->GetText(); |
130 if (temp_value.empty()) | 130 if (temp_value.empty()) |
131 return S_FALSE; | 131 return S_FALSE; |
132 | 132 |
133 // Return value retrieved. | 133 // Return value retrieved. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 BSTR put_name) { | 253 BSTR put_name) { |
254 // Deprecated. | 254 // Deprecated. |
255 return DISP_E_MEMBERNOTFOUND; | 255 return DISP_E_MEMBERNOTFOUND; |
256 } | 256 } |
257 | 257 |
258 STDMETHODIMP AutocompleteAccessibility::put_accValue(VARIANT var_id, | 258 STDMETHODIMP AutocompleteAccessibility::put_accValue(VARIANT var_id, |
259 BSTR put_val) { | 259 BSTR put_val) { |
260 // Deprecated. | 260 // Deprecated. |
261 return DISP_E_MEMBERNOTFOUND; | 261 return DISP_E_MEMBERNOTFOUND; |
262 } | 262 } |
OLD | NEW |