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

Side by Side Diff: ash/system/network/tray_sms.h

Issue 10332152: Add TraySms for SMS messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 7 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 | Annotate | Revision Log
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_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;
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;
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698