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

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

Issue 683473005: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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/system/date/tray_date.h ('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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_SYSTEM_IME_TRAY_IME_H_ 5 #ifndef ASH_SYSTEM_IME_TRAY_IME_H_
6 #define ASH_SYSTEM_IME_TRAY_IME_H_ 6 #define ASH_SYSTEM_IME_TRAY_IME_H_
7 7
8 #include "ash/system/ime/ime_observer.h" 8 #include "ash/system/ime/ime_observer.h"
9 #include "ash/system/tray/system_tray_item.h" 9 #include "ash/system/tray/system_tray_item.h"
10 10
11 namespace views { 11 namespace views {
12 class Label; 12 class Label;
13 } 13 }
14 14
15 namespace ash { 15 namespace ash {
16 struct IMEInfo; 16 struct IMEInfo;
17 17
18 namespace tray { 18 namespace tray {
19 class IMEDefaultView; 19 class IMEDefaultView;
20 class IMEDetailedView; 20 class IMEDetailedView;
21 class IMENotificationView; 21 class IMENotificationView;
22 } 22 }
23 23
24 class TrayItemView; 24 class TrayItemView;
25 25
26 class TrayIME : public SystemTrayItem, 26 class TrayIME : public SystemTrayItem,
27 public IMEObserver { 27 public IMEObserver {
28 public: 28 public:
29 explicit TrayIME(SystemTray* system_tray); 29 explicit TrayIME(SystemTray* system_tray);
30 virtual ~TrayIME(); 30 ~TrayIME() override;
31 31
32 private: 32 private:
33 void UpdateTrayLabel(const IMEInfo& info, size_t count); 33 void UpdateTrayLabel(const IMEInfo& info, size_t count);
34 34
35 // Overridden from SystemTrayItem. 35 // Overridden from SystemTrayItem.
36 virtual views::View* CreateTrayView(user::LoginStatus status) override; 36 views::View* CreateTrayView(user::LoginStatus status) override;
37 virtual views::View* CreateDefaultView(user::LoginStatus status) override; 37 views::View* CreateDefaultView(user::LoginStatus status) override;
38 virtual views::View* CreateDetailedView(user::LoginStatus status) override; 38 views::View* CreateDetailedView(user::LoginStatus status) override;
39 virtual void DestroyTrayView() override; 39 void DestroyTrayView() override;
40 virtual void DestroyDefaultView() override; 40 void DestroyDefaultView() override;
41 virtual void DestroyDetailedView() override; 41 void DestroyDetailedView() override;
42 virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) override; 42 void UpdateAfterLoginStatusChange(user::LoginStatus status) override;
43 virtual void UpdateAfterShelfAlignmentChange( 43 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override;
44 ShelfAlignment alignment) override;
45 44
46 // Overridden from IMEObserver. 45 // Overridden from IMEObserver.
47 virtual void OnIMERefresh() override; 46 void OnIMERefresh() override;
48 47
49 TrayItemView* tray_label_; 48 TrayItemView* tray_label_;
50 tray::IMEDefaultView* default_; 49 tray::IMEDefaultView* default_;
51 tray::IMEDetailedView* detailed_; 50 tray::IMEDetailedView* detailed_;
52 51
53 DISALLOW_COPY_AND_ASSIGN(TrayIME); 52 DISALLOW_COPY_AND_ASSIGN(TrayIME);
54 }; 53 };
55 54
56 } // namespace ash 55 } // namespace ash
57 56
58 #endif // ASH_SYSTEM_IME_TRAY_IME_H_ 57 #endif // ASH_SYSTEM_IME_TRAY_IME_H_
OLDNEW
« no previous file with comments | « ash/system/date/tray_date.h ('k') | ash/system/ime/tray_ime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698