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

Unified Diff: chromeos/ime/input_method_manager.cc

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.h ('k') | chromeos/ime/input_method_whitelist.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/ime/input_method_manager.cc
diff --git a/chromeos/ime/input_method_manager.cc b/chromeos/ime/input_method_manager.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c620a9242b9153a2ccdcbb34bea44f8ebb06d0da
--- /dev/null
+++ b/chromeos/ime/input_method_manager.cc
@@ -0,0 +1,39 @@
+// 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.
+
+#include "chromeos/ime/input_method_manager.h"
+
+#include "base/logging.h"
+
+namespace chromeos {
+namespace input_method {
+
+namespace {
+InputMethodManager* g_input_method_manager = NULL;
+}
+
+InputMethodManager::State::~State() {
+}
+
+// static
+InputMethodManager* InputMethodManager::Get() {
+ return g_input_method_manager;
+}
+
+// static
+void InputMethodManager::Initialize(InputMethodManager* instance) {
+ DCHECK(!g_input_method_manager) << "Do not call Initialize() multiple times.";
+ g_input_method_manager = instance;
+}
+
+// static
+void InputMethodManager::Shutdown() {
+ DCHECK(g_input_method_manager)
+ << "InputMethodManager() is not initialized.";
+ delete g_input_method_manager;
+ g_input_method_manager = NULL;
+}
+
+} // namespace input_method
+} // namespace chromeos
« no previous file with comments | « chromeos/ime/input_method_manager.h ('k') | chromeos/ime/input_method_whitelist.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698