Home | History | Annotate | Download | only in linux
      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.
      4 
      5 #include "ui/base/ime/linux/linux_input_method_context_factory.h"
      6 
      7 namespace {
      8 
      9 const ui::LinuxInputMethodContextFactory* g_linux_input_method_context_factory =
     10     NULL;
     11 
     12 }  // namespace
     13 
     14 namespace ui {
     15 
     16 // static
     17 const LinuxInputMethodContextFactory*
     18 LinuxInputMethodContextFactory::instance() {
     19   return g_linux_input_method_context_factory;
     20 }
     21 
     22 // static
     23 void LinuxInputMethodContextFactory::SetInstance(
     24     const LinuxInputMethodContextFactory* instance) {
     25   g_linux_input_method_context_factory = instance;
     26 }
     27 
     28 }  // namespace ui
     29