1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chromeos/ime/input_method_config.h"
9 #include "base/logging.h"
12 namespace input_method
{
14 InputMethodConfigValue::InputMethodConfigValue()
15 : type(kValueTypeString
),
20 InputMethodConfigValue::~InputMethodConfigValue() {
23 std::string
InputMethodConfigValue::ToString() const {
24 std::stringstream stream
;
25 stream
<< "type=" << type
;
27 case kValueTypeString
:
28 stream
<< ", string_value=" << string_value
;
31 stream
<< ", int_value=" << int_value
;
34 stream
<< ", bool_value=" << (bool_value
? "true" : "false");
36 case kValueTypeStringList
:
37 stream
<< ", string_list_value=";
38 for (size_t i
= 0; i
< string_list_value
.size(); ++i
) {
41 stream
<< string_list_value
[i
];
48 } // namespace input_method
49 } // namespace chromeos