Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2645)

Unified Diff: ash/common/system/chromeos/ime_menu/ime_menu_tray.cc

Issue 2601453002: Show IME in opt-in menu when there's one IME. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/ime_menu/ime_menu_tray.cc
diff --git a/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc b/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc
index 7ac33c2e3fc8dee214959c72516e581ce80f392c..2fd3d3f74625a7ff65c66fd7f1dc518d52bc18c6 100644
--- a/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc
+++ b/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc
@@ -50,7 +50,7 @@ namespace {
// Returns the height range of ImeListView.
gfx::Range GetImeListViewRange() {
const int max_items = 5;
- const int min_items = 2;
+ const int min_items = 1;
const int tray_item_height = GetTrayConstant(TRAY_POPUP_ITEM_MIN_HEIGHT);
return gfx::Range(tray_item_height * min_items, tray_item_height * max_items);
}
@@ -306,7 +306,7 @@ class ImeMenuListView : public ImeListView {
ImeMenuListView(SystemTrayItem* owner,
bool show_keyboard_toggle,
SingleImeBehavior single_ime_behavior)
- : ImeListView(owner, show_keyboard_toggle, ImeListView::HIDE_SINGLE_IME) {
+ : ImeListView(owner, show_keyboard_toggle, single_ime_behavior) {
set_should_focus_ime_after_selection_with_keyboard(true);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698