| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/input_method/input_method_manager_impl.h" | 5 #include "chrome/browser/chromeos/input_method/input_method_manager_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> // std::find | 7 #include <algorithm> // std::find |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 #include "base/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 15 #include "chrome/browser/chromeos/input_method/candidate_window_controller.h" | 15 #include "chrome/browser/chromeos/input_method/candidate_window_controller.h" |
| 16 #include "chrome/browser/chromeos/input_method/component_extension_ime_manager_i
mpl.h" | 16 #include "chrome/browser/chromeos/input_method/component_extension_ime_manager_i
mpl.h" |
| 17 #include "chrome/browser/chromeos/input_method/input_method_engine_ibus.h" | 17 #include "chrome/browser/chromeos/input_method/input_method_engine_ibus.h" |
| 18 #include "chrome/browser/chromeos/language_preferences.h" | 18 #include "chrome/browser/chromeos/language_preferences.h" |
| 19 #include "chromeos/dbus/dbus_thread_manager.h" | 19 #include "chromeos/dbus/dbus_thread_manager.h" |
| 20 #include "chromeos/dbus/ibus/ibus_client.h" | 20 #include "chromeos/dbus/ibus/ibus_client.h" |
| 21 #include "chromeos/dbus/ibus/ibus_input_context_client.h" | 21 #include "chromeos/dbus/ibus/ibus_input_context_client.h" |
| 22 #include "chromeos/ime/component_extension_ime_manager.h" | 22 #include "chromeos/ime/component_extension_ime_manager.h" |
| 23 #include "chromeos/ime/extension_ime_util.h" | 23 #include "chromeos/ime/extension_ime_util.h" |
| 24 #include "chromeos/ime/input_method_delegate.h" | 24 #include "chromeos/ime/input_method_delegate.h" |
| (...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 862 else | 862 else |
| 863 DVLOG(1) << "Failed to initialize the candidate window controller"; | 863 DVLOG(1) << "Failed to initialize the candidate window controller"; |
| 864 } | 864 } |
| 865 | 865 |
| 866 bool InputMethodManagerImpl::IsIBusConnectionAlive() { | 866 bool InputMethodManagerImpl::IsIBusConnectionAlive() { |
| 867 return DBusThreadManager::Get() && DBusThreadManager::Get()->GetIBusClient(); | 867 return DBusThreadManager::Get() && DBusThreadManager::Get()->GetIBusClient(); |
| 868 } | 868 } |
| 869 | 869 |
| 870 } // namespace input_method | 870 } // namespace input_method |
| 871 } // namespace chromeos | 871 } // namespace chromeos |
| OLD | NEW |