| 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 "ash/ime/input_method_menu_item.h" | 9 #include "ash/ime/input_method_menu_item.h" |
| 10 #include "ash/ime/input_method_menu_manager.h" | 10 #include "ash/ime/input_method_menu_manager.h" |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/prefs/pref_service.h" | 15 #include "base/prefs/pref_service.h" |
| 16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
| 17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
| 19 #include "base/sys_info.h" | 19 #include "base/sys_info.h" |
| 20 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
| 21 #include "chrome/browser/chromeos/input_method/candidate_window_controller.h" | 21 #include "chrome/browser/chromeos/input_method/candidate_window_controller.h" |
| 22 #include "chrome/browser/chromeos/input_method/component_extension_ime_manager_i
mpl.h" | 22 #include "chrome/browser/chromeos/input_method/component_extension_ime_manager_i
mpl.h" |
| 23 #include "chrome/browser/chromeos/input_method/input_method_engine.h" | 23 #include "chrome/browser/chromeos/input_method/input_method_engine.h" |
| 24 #include "chrome/browser/chromeos/language_preferences.h" | 24 #include "chrome/browser/chromeos/language_preferences.h" |
| 25 #include "chrome/browser/chromeos/login/users/user_manager.h" | |
| 26 #include "chrome/browser/profiles/profile_manager.h" | 25 #include "chrome/browser/profiles/profile_manager.h" |
| 27 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
| 28 #include "chromeos/ime/component_extension_ime_manager.h" | 27 #include "chromeos/ime/component_extension_ime_manager.h" |
| 29 #include "chromeos/ime/extension_ime_util.h" | 28 #include "chromeos/ime/extension_ime_util.h" |
| 30 #include "chromeos/ime/fake_ime_keyboard.h" | 29 #include "chromeos/ime/fake_ime_keyboard.h" |
| 31 #include "chromeos/ime/ime_keyboard.h" | 30 #include "chromeos/ime/ime_keyboard.h" |
| 32 #include "chromeos/ime/input_method_delegate.h" | 31 #include "chromeos/ime/input_method_delegate.h" |
| 32 #include "components/user_manager/user_manager.h" |
| 33 #include "third_party/icu/source/common/unicode/uloc.h" | 33 #include "third_party/icu/source/common/unicode/uloc.h" |
| 34 #include "ui/base/accelerators/accelerator.h" | 34 #include "ui/base/accelerators/accelerator.h" |
| 35 | 35 |
| 36 namespace chromeos { | 36 namespace chromeos { |
| 37 namespace input_method { | 37 namespace input_method { |
| 38 | 38 |
| 39 namespace { | 39 namespace { |
| 40 | 40 |
| 41 bool Contains(const std::vector<std::string>& container, | 41 bool Contains(const std::vector<std::string>& container, |
| 42 const std::string& value) { | 42 const std::string& value) { |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 if (candidate_window_controller_.get()) | 893 if (candidate_window_controller_.get()) |
| 894 return; | 894 return; |
| 895 | 895 |
| 896 candidate_window_controller_.reset( | 896 candidate_window_controller_.reset( |
| 897 CandidateWindowController::CreateCandidateWindowController()); | 897 CandidateWindowController::CreateCandidateWindowController()); |
| 898 candidate_window_controller_->AddObserver(this); | 898 candidate_window_controller_->AddObserver(this); |
| 899 } | 899 } |
| 900 | 900 |
| 901 } // namespace input_method | 901 } // namespace input_method |
| 902 } // namespace chromeos | 902 } // namespace chromeos |
| OLD | NEW |