OLD | NEW |
---|---|
(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_NETWORK_TRAY_SMS_H | |
6 #define ASH_SYSTEM_NETWORK_TRAY_SMS_H | |
7 #pragma once | |
8 | |
9 #include "ash/system/tray/tray_image_item.h" | |
10 #include "base/memory/scoped_ptr.h" | |
11 | |
12 namespace ash { | |
13 namespace internal { | |
14 | |
15 class TraySms : public TrayImageItem { | |
16 public: | |
17 TraySms(); | |
18 virtual ~TraySms(); | |
19 | |
20 // Overridden from SystemTrayItem. | |
21 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; | |
22 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; | |
23 virtual views::View* CreateNotificationView(user::LoginStatus status) | |
24 OVERRIDE; | |
sadrul
2012/05/15 15:10:50
OVERRIDE shouldn't be in its own line. You can mov
stevenjb
2012/05/15 16:55:20
Done.
| |
25 virtual void DestroyDefaultView() OVERRIDE; | |
26 virtual void DestroyDetailedView() OVERRIDE; | |
27 virtual void DestroyNotificationView() OVERRIDE; | |
28 | |
29 // Overridden from TrayImageItem. | |
30 virtual bool GetInitialVisibility() OVERRIDE; | |
31 | |
32 protected: | |
33 class SmsDefaultView; | |
sadrul
2012/05/15 15:10:50
This is OK. But I wanted to point out that the res
stevenjb
2012/05/15 16:55:20
That works fine too, but in this case most of thes
| |
34 class SmsDetailedView; | |
35 class SmsMessageView; | |
36 class SmsNotificationView; | |
37 class SmsObserver; | |
38 | |
39 // Called when sms messages have changed (by tray::SmsObserver). | |
40 void Update(bool notify); | |
41 | |
42 SmsObserver* sms_observer() const { return sms_observer_.get(); } | |
43 | |
44 private: | |
45 SmsDefaultView* default_; | |
46 SmsDetailedView* detailed_; | |
47 SmsNotificationView* notification_; | |
48 scoped_ptr<SmsObserver> sms_observer_; | |
49 | |
50 DISALLOW_COPY_AND_ASSIGN(TraySms); | |
51 }; | |
52 | |
53 } // namespace internal | |
54 } // namespace ash | |
55 | |
56 #endif // ASH_SYSTEM_NETWORK_TRAY_SMS_H | |
OLD | NEW |