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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_accessibility.cc

Issue 6258015: Remove wstring from autocomplete.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
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 "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "chrome/browser/autocomplete/autocomplete_edit.h" 8 #include "chrome/browser/autocomplete/autocomplete_edit.h"
9 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" 9 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h"
10 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698