| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |