| 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" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "chromeos/ime/input_method_delegate.h" | 25 #include "chromeos/ime/input_method_delegate.h" |
| 26 #include "chromeos/ime/xkeyboard.h" | 26 #include "chromeos/ime/xkeyboard.h" |
| 27 #include "third_party/icu/source/common/unicode/uloc.h" | 27 #include "third_party/icu/source/common/unicode/uloc.h" |
| 28 #include "ui/base/accelerators/accelerator.h" | 28 #include "ui/base/accelerators/accelerator.h" |
| 29 | 29 |
| 30 namespace chromeos { | 30 namespace chromeos { |
| 31 namespace input_method { | 31 namespace input_method { |
| 32 | 32 |
| 33 namespace { | 33 namespace { |
| 34 | 34 |
| 35 const char nacl_mozc_us_id[] = | |
| 36 "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_us"; | |
| 37 const char nacl_mozc_jp_id[] = | 35 const char nacl_mozc_jp_id[] = |
| 38 "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_jp"; | 36 "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_jp"; |
| 39 | 37 |
| 40 bool Contains(const std::vector<std::string>& container, | 38 bool Contains(const std::vector<std::string>& container, |
| 41 const std::string& value) { | 39 const std::string& value) { |
| 42 return std::find(container.begin(), container.end(), value) != | 40 return std::find(container.begin(), container.end(), value) != |
| 43 container.end(); | 41 container.end(); |
| 44 } | 42 } |
| 45 | 43 |
| 46 } // namespace | 44 } // namespace |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 else | 862 else |
| 865 DVLOG(1) << "Failed to initialize the candidate window controller"; | 863 DVLOG(1) << "Failed to initialize the candidate window controller"; |
| 866 } | 864 } |
| 867 | 865 |
| 868 bool InputMethodManagerImpl::IsIBusConnectionAlive() { | 866 bool InputMethodManagerImpl::IsIBusConnectionAlive() { |
| 869 return DBusThreadManager::Get() && DBusThreadManager::Get()->GetIBusClient(); | 867 return DBusThreadManager::Get() && DBusThreadManager::Get()->GetIBusClient(); |
| 870 } | 868 } |
| 871 | 869 |
| 872 } // namespace input_method | 870 } // namespace input_method |
| 873 } // namespace chromeos | 871 } // namespace chromeos |
| OLD | NEW |