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

Side by Side Diff: ash/system/tray/tray_empty.h

Issue 11415014: Stop using shell::GetInstance()->system_tray() in system tray items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified CL to provide TrayItems and Tray*Views with parent pointers instead. Created 8 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 | Annotate | Revision Log
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_TRAY_TRAY_EMPTY_H_ 5 #ifndef ASH_SYSTEM_TRAY_TRAY_EMPTY_H_
6 #define ASH_SYSTEM_TRAY_TRAY_EMPTY_H_ 6 #define ASH_SYSTEM_TRAY_TRAY_EMPTY_H_
7 7
8 #include "ash/system/tray/system_tray_item.h" 8 #include "ash/system/tray/system_tray_item.h"
9 9
10 namespace ash { 10 namespace ash {
11
12 class SystemTray;
13
11 namespace internal { 14 namespace internal {
12 15
13 class TrayEmpty : public SystemTrayItem { 16 class TrayEmpty : public SystemTrayItem {
14 public: 17 public:
15 TrayEmpty(); 18 explicit TrayEmpty(SystemTray* system_tray);
16 virtual ~TrayEmpty(); 19 virtual ~TrayEmpty();
17 20
18 private: 21 private:
19 // Overridden from SystemTrayItem. 22 // Overridden from SystemTrayItem.
20 virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE; 23 virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE;
21 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; 24 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
22 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; 25 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
23 virtual void DestroyTrayView() OVERRIDE; 26 virtual void DestroyTrayView() OVERRIDE;
24 virtual void DestroyDefaultView() OVERRIDE; 27 virtual void DestroyDefaultView() OVERRIDE;
25 virtual void DestroyDetailedView() OVERRIDE; 28 virtual void DestroyDetailedView() OVERRIDE;
26 virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) OVERRIDE; 29 virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) OVERRIDE;
27 30
28 DISALLOW_COPY_AND_ASSIGN(TrayEmpty); 31 DISALLOW_COPY_AND_ASSIGN(TrayEmpty);
29 }; 32 };
30 33
31 } // namespace internal 34 } // namespace internal
32 } // namespace ash 35 } // namespace ash
33 36
34 #endif // ASH_SYSTEM_TRAY_TRAY_EMPTY_H_ 37 #endif // ASH_SYSTEM_TRAY_TRAY_EMPTY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698