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

Unified Diff: ui/base/ime/input_method_initializer.cc

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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
« no previous file with comments | « ui/base/ime/input_method_initializer.h ('k') | ui/base/ime/input_method_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_initializer.cc
diff --git a/ui/base/ime/input_method_initializer.cc b/ui/base/ime/input_method_initializer.cc
deleted file mode 100644
index 2fca46cff47ab73c2d41d84c0f7675bd1732cfab..0000000000000000000000000000000000000000
--- a/ui/base/ime/input_method_initializer.cc
+++ /dev/null
@@ -1,66 +0,0 @@
-// 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 "ui/base/ime/input_method_initializer.h"
-
-#if defined(OS_CHROMEOS)
-#include "ui/base/ime/chromeos/ime_bridge.h"
-#elif defined(USE_AURA) && defined(OS_LINUX)
-#include "base/logging.h"
-#include "ui/base/ime/linux/fake_input_method_context_factory.h"
-#endif
-
-namespace {
-
-#if !defined(OS_CHROMEOS) && defined(USE_AURA) && defined(OS_LINUX)
-const ui::LinuxInputMethodContextFactory* g_linux_input_method_context_factory;
-#endif
-
-} // namespace
-
-namespace ui {
-
-void InitializeInputMethod() {
-#if defined(OS_CHROMEOS)
- chromeos::IMEBridge::Initialize();
-#endif
-}
-
-void ShutdownInputMethod() {
-#if defined(OS_CHROMEOS)
- chromeos::IMEBridge::Shutdown();
-#endif
-}
-
-void InitializeInputMethodForTesting() {
-#if defined(OS_CHROMEOS)
- chromeos::IMEBridge::Initialize();
-#elif defined(USE_AURA) && defined(OS_LINUX)
- if (!g_linux_input_method_context_factory)
- g_linux_input_method_context_factory = new FakeInputMethodContextFactory();
- const LinuxInputMethodContextFactory* factory =
- LinuxInputMethodContextFactory::instance();
- CHECK(!factory || factory == g_linux_input_method_context_factory)
- << "LinuxInputMethodContextFactory was already initialized somewhere "
- << "else.";
- LinuxInputMethodContextFactory::SetInstance(
- g_linux_input_method_context_factory);
-#endif
-}
-
-void ShutdownInputMethodForTesting() {
-#if defined(OS_CHROMEOS)
- chromeos::IMEBridge::Shutdown();
-#elif defined(USE_AURA) && defined(OS_LINUX)
- const LinuxInputMethodContextFactory* factory =
- LinuxInputMethodContextFactory::instance();
- CHECK(!factory || factory == g_linux_input_method_context_factory)
- << "An unknown LinuxInputMethodContextFactory was set.";
- LinuxInputMethodContextFactory::SetInstance(NULL);
- delete g_linux_input_method_context_factory;
- g_linux_input_method_context_factory = NULL;
-#endif
-}
-
-} // namespace ui
« no previous file with comments | « ui/base/ime/input_method_initializer.h ('k') | ui/base/ime/input_method_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698