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

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

Issue 2271483003: Updates the IME list when the IME has refreshed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix patch failure. Created 4 years, 3 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.h » ('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/ime_info.h"
9 #include "ash/common/system/tray/tray_details_view.h" 9 #include "ash/common/system/tray/tray_details_view.h"
10 #include "ash/common/system/tray/view_click_listener.h" 10 #include "ash/common/system/tray/view_click_listener.h"
(...skipping 19 matching lines...) Expand all
30 virtual void Update(const IMEInfoList& list, 30 virtual void Update(const IMEInfoList& list,
31 const IMEPropertyInfoList& property_list, 31 const IMEPropertyInfoList& property_list,
32 bool show_keyboard_toggle, 32 bool show_keyboard_toggle,
33 SingleImeBehavior single_ime_behavior); 33 SingleImeBehavior single_ime_behavior);
34 34
35 protected: 35 protected:
36 // ViewClickListener: 36 // ViewClickListener:
37 void OnViewClicked(views::View* sender) override; 37 void OnViewClicked(views::View* sender) override;
38 38
39 private: 39 private:
40 // To allow the test class to access |ime_map_|.
41 friend class ImeMenuTrayTest;
42
40 // Appends the IMEs to the scrollable area of the detailed view. 43 // Appends the IMEs to the scrollable area of the detailed view.
41 void AppendIMEList(const IMEInfoList& list); 44 void AppendIMEList(const IMEInfoList& list);
42 45
43 // Appends the IME listed to the scrollable area of the detailed view. 46 // Appends the IME listed to the scrollable area of the detailed view.
44 void AppendIMEProperties(const IMEPropertyInfoList& property_list); 47 void AppendIMEProperties(const IMEPropertyInfoList& property_list);
45 48
46 // Appends the on-screen keyboard status to the last area of the detailed 49 // Appends the on-screen keyboard status to the last area of the detailed
47 // view. 50 // view.
48 void AppendKeyboardStatus(); 51 void AppendKeyboardStatus();
49 52
50 std::map<views::View*, std::string> ime_map_; 53 std::map<views::View*, std::string> ime_map_;
51 std::map<views::View*, std::string> property_map_; 54 std::map<views::View*, std::string> property_map_;
52 views::View* keyboard_status_; 55 views::View* keyboard_status_;
53 56
54 DISALLOW_COPY_AND_ASSIGN(ImeListView); 57 DISALLOW_COPY_AND_ASSIGN(ImeListView);
55 }; 58 };
56 59
57 } // namespace ash 60 } // namespace ash
58 61
59 #endif // ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_LIST_VIEW_H_ 62 #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.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698