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

Unified Diff: chromeos/ime/input_method_whitelist.h

Issue 750353004: Revert of Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « chromeos/ime/input_method_manager.cc ('k') | chromeos/ime/input_method_whitelist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/ime/input_method_whitelist.h
diff --git a/chromeos/ime/input_method_whitelist.h b/chromeos/ime/input_method_whitelist.h
new file mode 100644
index 0000000000000000000000000000000000000000..3a224936183d67c02c6e23417de1aa0381dcf468
--- /dev/null
+++ b/chromeos/ime/input_method_whitelist.h
@@ -0,0 +1,46 @@
+// Copyright 2013 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 CHROMEOS_IME_INPUT_METHOD_WHITELIST_H_
+#define CHROMEOS_IME_INPUT_METHOD_WHITELIST_H_
+
+#include <set>
+#include <string>
+#include <vector>
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "chromeos/chromeos_export.h"
+
+namespace chromeos {
+namespace input_method {
+
+class InputMethodDescriptor;
+typedef std::vector<InputMethodDescriptor> InputMethodDescriptors;
+
+// A class which has white listed input method list. The list is generated by
+// gen_input_methods.py from input_methods.txt.
+class CHROMEOS_EXPORT InputMethodWhitelist {
+ public:
+ InputMethodWhitelist();
+ ~InputMethodWhitelist();
+
+ // Returns true if |input_method_id| is whitelisted.
+ bool InputMethodIdIsWhitelisted(const std::string& input_method_id) const;
+
+ // Returns all input methods that are supported, including ones not active.
+ // This function never returns NULL. Note that input method extensions are not
+ // included in the result.
+ scoped_ptr<InputMethodDescriptors> GetSupportedInputMethods() const;
+
+ private:
+ std::set<std::string> supported_input_methods_;
+
+ DISALLOW_COPY_AND_ASSIGN(InputMethodWhitelist);
+};
+
+} // namespace input_method
+} // namespace chromeos
+
+#endif // CHROMEOS_IME_INPUT_METHOD_WHITELIST_H_
« no previous file with comments | « chromeos/ime/input_method_manager.cc ('k') | chromeos/ime/input_method_whitelist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698