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

Side by Side Diff: ash/system/ime/tray_ime.h

Issue 843603004: Moves smart deploy UI into the IME tray. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unsplit. Remove IME tray in Linux. Created 5 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 unified diff | Download patch
« no previous file with comments | « ash/ash_chromeos_strings.grdp ('k') | ash/system/ime/tray_ime.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_SYSTEM_IME_TRAY_IME_H_
6 #define ASH_SYSTEM_IME_TRAY_IME_H_
7
8 #include "ash/system/ime/ime_observer.h"
9 #include "ash/system/tray/system_tray_item.h"
10
11 namespace views {
12 class Label;
13 }
14
15 namespace ash {
16 struct IMEInfo;
17
18 namespace tray {
19 class IMEDefaultView;
20 class IMEDetailedView;
21 class IMENotificationView;
22 }
23
24 class TrayItemView;
25
26 class TrayIME : public SystemTrayItem,
27 public IMEObserver {
28 public:
29 explicit TrayIME(SystemTray* system_tray);
30 ~TrayIME() override;
31
32 private:
33 void UpdateTrayLabel(const IMEInfo& info, size_t count);
34
35 // Overridden from SystemTrayItem.
36 views::View* CreateTrayView(user::LoginStatus status) override;
37 views::View* CreateDefaultView(user::LoginStatus status) override;
38 views::View* CreateDetailedView(user::LoginStatus status) override;
39 void DestroyTrayView() override;
40 void DestroyDefaultView() override;
41 void DestroyDetailedView() override;
42 void UpdateAfterLoginStatusChange(user::LoginStatus status) override;
43 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override;
44
45 // Overridden from IMEObserver.
46 void OnIMERefresh() override;
47
48 TrayItemView* tray_label_;
49 tray::IMEDefaultView* default_;
50 tray::IMEDetailedView* detailed_;
51
52 DISALLOW_COPY_AND_ASSIGN(TrayIME);
53 };
54
55 } // namespace ash
56
57 #endif // ASH_SYSTEM_IME_TRAY_IME_H_
OLDNEW
« no previous file with comments | « ash/ash_chromeos_strings.grdp ('k') | ash/system/ime/tray_ime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698