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

Side by Side Diff: ash/common/system/chromeos/ime_menu/ime_list_view.h

Issue 2254453002: Sets the max height of ImeMenuTray. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Defines const int max_items. Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | ash/common/system/chromeos/ime_menu/ime_menu_tray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_LIST_VIEW_H_ 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_LIST_VIEW_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_LIST_VIEW_H_ 6 #define ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_LIST_VIEW_H_
7 7
8 #include "ash/common/system/tray/ime_info.h"
8 #include "ash/common/system/tray/tray_details_view.h" 9 #include "ash/common/system/tray/tray_details_view.h"
9 #include "ash/common/system/tray/view_click_listener.h" 10 #include "ash/common/system/tray/view_click_listener.h"
10 11
11 namespace ash { 12 namespace ash {
12 struct IMEInfo;
13 struct IMEPropertyInfo;
14
15 using IMEInfoList = std::vector<IMEInfo>;
16 using IMEPropertyInfoList = std::vector<IMEPropertyInfo>;
17
18 // The detailed view for showing IME list. 13 // The detailed view for showing IME list.
19 class ImeListView : public TrayDetailsView, public ViewClickListener { 14 class ImeListView : public TrayDetailsView, public ViewClickListener {
20 public: 15 public:
21 enum SingleImeBehavior { 16 enum SingleImeBehavior {
22 // Shows the IME menu if there's only one IME in system. 17 // Shows the IME menu if there's only one IME in system.
23 SHOW_SINGLE_IME, 18 SHOW_SINGLE_IME,
24 // Hides the IME menu if there's only one IME in system. 19 // Hides the IME menu if there's only one IME in system.
25 HIDE_SINGLE_IME 20 HIDE_SINGLE_IME
26 }; 21 };
27 22
(...skipping 27 matching lines...) Expand all
55 std::map<views::View*, std::string> ime_map_; 50 std::map<views::View*, std::string> ime_map_;
56 std::map<views::View*, std::string> property_map_; 51 std::map<views::View*, std::string> property_map_;
57 views::View* keyboard_status_; 52 views::View* keyboard_status_;
58 53
59 DISALLOW_COPY_AND_ASSIGN(ImeListView); 54 DISALLOW_COPY_AND_ASSIGN(ImeListView);
60 }; 55 };
61 56
62 } // namespace ash 57 } // namespace ash
63 58
64 #endif // ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_LIST_VIEW_H_ 59 #endif // ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_LIST_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ash/common/system/chromeos/ime_menu/ime_menu_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698