This source file includes following definitions.
- Get
- Initialize
- Shutdown
#include "chromeos/ime/input_method_manager.h"
#include "base/logging.h"
namespace chromeos {
namespace input_method {
namespace {
InputMethodManager* g_input_method_manager = NULL;
}
InputMethodManager* InputMethodManager::Get() {
return g_input_method_manager;
}
void InputMethodManager::Initialize(InputMethodManager* instance) {
DCHECK(!g_input_method_manager) << "Do not call Initialize() multiple times.";
g_input_method_manager = instance;
}
void InputMethodManager::Shutdown() {
DCHECK(g_input_method_manager)
<< "InputMethodManager() is not initialized.";
delete g_input_method_manager;
g_input_method_manager = NULL;
}
}
}