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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/input_method/input_method_config.h
diff --git a/chrome/browser/chromeos/input_method/input_method_config.h b/chrome/browser/chromeos/input_method/input_method_config.h
new file mode 100644
index 0000000000000000000000000000000000000000..8bb7c2a6166e1731e47ecb6f59e4691ed4ec5391
--- /dev/null
+++ b/chrome/browser/chromeos/input_method/input_method_config.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_CONFIG_H_
+#define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_CONFIG_H_
+#pragma once
+
+#include <string>
+#include <vector>
+
+namespace chromeos {
+namespace input_method {
+
+// A structure which represents a value of an input method configuration item.
+// This struct is used by SetInputMethodConfig().
+struct InputMethodConfigValue {
+ InputMethodConfigValue();
+ ~InputMethodConfigValue();
+
+ // Debug print function.
+ std::string ToString() const;
+
+ enum ValueType {
+ kValueTypeString = 0,
+ kValueTypeInt,
+ kValueTypeBool,
+ kValueTypeStringList,
+ };
+
+ // A value is stored on |string_value| member if |type| is kValueTypeString.
+ // The same is true for other enum values.
+ ValueType type;
+
+ std::string string_value;
+ int int_value;
+ bool bool_value;
+ std::vector<std::string> string_list_value;
+};
+
+} // namespace input_method
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_CONFIG_H_

Powered by Google App Engine
This is Rietveld 408576698