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

Unified Diff: chromeos/ime/ibus_bridge.cc

Issue 11956041: Introduce IBusBridge for ibus-less implementation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Change TLS to Singleton. Created 7 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
« chromeos/ime/ibus_bridge.h ('K') | « chromeos/ime/ibus_bridge.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/ime/ibus_bridge.cc
diff --git a/chromeos/ime/ibus_bridge.cc b/chromeos/ime/ibus_bridge.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9f9f3b81b1711a57f48e21380b2773c089c732e7
--- /dev/null
+++ b/chromeos/ime/ibus_bridge.cc
@@ -0,0 +1,24 @@
+// 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.
+
+#include "chromeos/ime/ibus_bridge.h"
+
+#include "base/logging.h"
+#include "base/memory/singleton.h"
+
+namespace chromeos {
+
+IBusBridge::IBusBridge()
+ : input_context_handler_(NULL),
+ engine_handler_(NULL),
+ candidate_window_handler_(NULL),
+ panel_handler_(NULL) {
+}
+
+// static
+IBusBridge* IBusBridge::GetInstance() {
+ return Singleton<IBusBridge>::get();
+}
+
+} // namespace chromeos
« chromeos/ime/ibus_bridge.h ('K') | « chromeos/ime/ibus_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698