| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/status/input_method_menu.h" | 5 #include "chrome/browser/chromeos/status/input_method_menu.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| 11 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
| 12 #include "base/string_split.h" | 12 #include "base/string_split.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/time.h" | 14 #include "base/time.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/chromeos/cros/cros_library.h" | 17 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 18 #include "chrome/browser/chromeos/cros/keyboard_library.h" | 18 #include "chrome/browser/chromeos/cros/keyboard_library.h" |
| 19 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 19 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
| 20 #include "chrome/browser/chromeos/language_preferences.h" | 20 #include "chrome/browser/chromeos/language_preferences.h" |
| 21 #include "chrome/browser/metrics/user_metrics.h" | 21 #include "chrome/browser/metrics/user_metrics.h" |
| 22 #include "chrome/browser/prefs/pref_service.h" | 22 #include "chrome/browser/prefs/pref_service.h" |
| 23 #include "chrome/common/notification_service.h" |
| 23 #include "chrome/common/pref_names.h" | 24 #include "chrome/common/pref_names.h" |
| 24 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
| 25 #include "grit/theme_resources.h" | 26 #include "grit/theme_resources.h" |
| 26 | 27 |
| 27 // The language menu consists of 3 parts (in this order): | 28 // The language menu consists of 3 parts (in this order): |
| 28 // | 29 // |
| 29 // (1) input method names. The size of the list is always >= 1. | 30 // (1) input method names. The size of the list is always >= 1. |
| 30 // (2) input method properties. This list might be empty. | 31 // (2) input method properties. This list might be empty. |
| 31 // (3) "Customize language and input..." button. | 32 // (3) "Customize language and input..." button. |
| 32 // | 33 // |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 logged_in_ = true; | 612 logged_in_ = true; |
| 612 } | 613 } |
| 613 } | 614 } |
| 614 | 615 |
| 615 void InputMethodMenu::SetMinimumWidth(int width) { | 616 void InputMethodMenu::SetMinimumWidth(int width) { |
| 616 // On the OOBE network selection screen, fixed width menu would be preferable. | 617 // On the OOBE network selection screen, fixed width menu would be preferable. |
| 617 minimum_input_method_menu_width_ = width; | 618 minimum_input_method_menu_width_ = width; |
| 618 } | 619 } |
| 619 | 620 |
| 620 } // namespace chromeos | 621 } // namespace chromeos |
| OLD | NEW |