Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / base / ime / linux / linux_input_method_context_factory.cc
blob4ba275022842338358c1fbaba6ac552edb2a2054
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/base/ime/linux/linux_input_method_context_factory.h"
7 namespace {
9 const ui::LinuxInputMethodContextFactory* g_linux_input_method_context_factory =
10 NULL;
12 } // namespace
14 namespace ui {
16 // static
17 const LinuxInputMethodContextFactory*
18 LinuxInputMethodContextFactory::instance() {
19 return g_linux_input_method_context_factory;
22 // static
23 void LinuxInputMethodContextFactory::SetInstance(
24 const LinuxInputMethodContextFactory* instance) {
25 g_linux_input_method_context_factory = instance;
28 } // namespace ui