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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_config.h

Issue 9701095: cleanup: Split ibus_controller.h into 5 headers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 8 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_CONFIG_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_CONFIG_H_
7 #pragma once
8
9 #include <string>
10 #include <vector>
11
12 namespace chromeos {
13 namespace input_method {
14
15 // A structure which represents a value of an input method configuration item.
16 // This struct is used by SetInputMethodConfig().
17 struct InputMethodConfigValue {
18 InputMethodConfigValue();
19 ~InputMethodConfigValue();
20
21 // Debug print function.
22 std::string ToString() const;
23
24 enum ValueType {
25 kValueTypeString = 0,
26 kValueTypeInt,
27 kValueTypeBool,
28 kValueTypeStringList,
29 };
30
31 // A value is stored on |string_value| member if |type| is kValueTypeString.
32 // The same is true for other enum values.
33 ValueType type;
34
35 std::string string_value;
36 int int_value;
37 bool bool_value;
38 std::vector<std::string> string_list_value;
39 };
40
41 } // namespace input_method
42 } // namespace chromeos
43
44 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698