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/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/strings/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" |
25 #include "chromeos/ime/xkeyboard.h" | 25 #include "chromeos/ime/xkeyboard.h" |
26 #include "third_party/icu/public/common/unicode/uloc.h" | 26 #include "third_party/icu/source/common/unicode/uloc.h" |
27 #include "ui/base/accelerators/accelerator.h" | 27 #include "ui/base/accelerators/accelerator.h" |
28 | 28 |
29 namespace chromeos { | 29 namespace chromeos { |
30 namespace input_method { | 30 namespace input_method { |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 const char nacl_mozc_us_id[] = | 34 const char nacl_mozc_us_id[] = |
35 "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_us"; | 35 "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_us"; |
36 const char nacl_mozc_jp_id[] = | 36 const char nacl_mozc_jp_id[] = |
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 else | 938 else |
939 DVLOG(1) << "Failed to initialize the candidate window controller"; | 939 DVLOG(1) << "Failed to initialize the candidate window controller"; |
940 } | 940 } |
941 | 941 |
942 bool InputMethodManagerImpl::IsIBusConnectionAlive() { | 942 bool InputMethodManagerImpl::IsIBusConnectionAlive() { |
943 return DBusThreadManager::Get() && DBusThreadManager::Get()->GetIBusClient(); | 943 return DBusThreadManager::Get() && DBusThreadManager::Get()->GetIBusClient(); |
944 } | 944 } |
945 | 945 |
946 } // namespace input_method | 946 } // namespace input_method |
947 } // namespace chromeos | 947 } // namespace chromeos |
OLD | NEW |