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

Side by Side Diff: chrome/browser/accessibility/accessibility_events.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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
« no previous file with comments | « chrome/browser/about_flags_unittest.cc ('k') | chrome/browser/autofill/autofill_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/accessibility/accessibility_events.h" 5 #include "chrome/browser/accessibility/accessibility_events.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 8
9 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h" 9 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 dict->SetString(keys::kValueKey, value_); 159 dict->SetString(keys::kValueKey, value_);
160 dict->SetInteger(keys::kItemIndexKey, item_index_); 160 dict->SetInteger(keys::kItemIndexKey, item_index_);
161 dict->SetInteger(keys::kItemCountKey, item_count_); 161 dict->SetInteger(keys::kItemCountKey, item_count_);
162 } 162 }
163 163
164 AccessibilityTextBoxInfo::AccessibilityTextBoxInfo(Profile* profile, 164 AccessibilityTextBoxInfo::AccessibilityTextBoxInfo(Profile* profile,
165 const std::string& name, 165 const std::string& name,
166 const std::string& context, 166 const std::string& context,
167 bool password) 167 bool password)
168 : AccessibilityControlInfo(profile, name), 168 : AccessibilityControlInfo(profile, name),
169 value_(""),
170 password_(password), 169 password_(password),
171 selection_start_(0), 170 selection_start_(0),
172 selection_end_(0) { 171 selection_end_(0) {
173 set_context(context); 172 set_context(context);
174 } 173 }
175 174
176 const char* AccessibilityTextBoxInfo::type() const { 175 const char* AccessibilityTextBoxInfo::type() const {
177 return keys::kTypeTextBox; 176 return keys::kTypeTextBox;
178 } 177 }
179 178
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 } 251 }
253 252
254 const char* AccessibilitySliderInfo::type() const { 253 const char* AccessibilitySliderInfo::type() const {
255 return keys::kTypeSlider; 254 return keys::kTypeSlider;
256 } 255 }
257 256
258 void AccessibilitySliderInfo::SerializeToDict(DictionaryValue *dict) const { 257 void AccessibilitySliderInfo::SerializeToDict(DictionaryValue *dict) const {
259 AccessibilityControlInfo::SerializeToDict(dict); 258 AccessibilityControlInfo::SerializeToDict(dict);
260 dict->SetString(keys::kStringValueKey, value_); 259 dict->SetString(keys::kStringValueKey, value_);
261 } 260 }
OLDNEW
« no previous file with comments | « chrome/browser/about_flags_unittest.cc ('k') | chrome/browser/autofill/autofill_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698