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

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

Issue 2633943002: Show IME in opt-in menu when there's one IME. (Closed)
Patch Set: Created 3 years, 11 months 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 d737e190381e2b9c3b2492983e6dfb634cd53e22..a03a41856205d1bc895c5e5a7c1ef821ab4c2cce 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);
}
@@ -319,7 +319,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