OLD | NEW |
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_CHROMEOS_NETWORK_TRAY_SMS_H | 5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_SMS_H |
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_SMS_H | 6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_SMS_H |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/system/tray/system_tray_item.h" | 10 #include "ash/system/tray/system_tray_item.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chromeos/network/network_sms_handler.h" | 12 #include "chromeos/network/network_sms_handler.h" |
13 | 13 |
14 namespace ash { | 14 namespace ash { |
15 namespace internal { | |
16 | 15 |
17 class TraySms : public SystemTrayItem, | 16 class TraySms : public SystemTrayItem, |
18 public chromeos::NetworkSmsHandler::Observer { | 17 public chromeos::NetworkSmsHandler::Observer { |
19 public: | 18 public: |
20 explicit TraySms(SystemTray* system_tray); | 19 explicit TraySms(SystemTray* system_tray); |
21 virtual ~TraySms(); | 20 virtual ~TraySms(); |
22 | 21 |
23 // Overridden from SystemTrayItem. | 22 // Overridden from SystemTrayItem. |
24 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; | 23 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; |
25 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; | 24 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; |
(...skipping 27 matching lines...) Expand all Loading... |
53 | 52 |
54 private: | 53 private: |
55 SmsDefaultView* default_; | 54 SmsDefaultView* default_; |
56 SmsDetailedView* detailed_; | 55 SmsDetailedView* detailed_; |
57 SmsNotificationView* notification_; | 56 SmsNotificationView* notification_; |
58 base::ListValue messages_; | 57 base::ListValue messages_; |
59 | 58 |
60 DISALLOW_COPY_AND_ASSIGN(TraySms); | 59 DISALLOW_COPY_AND_ASSIGN(TraySms); |
61 }; | 60 }; |
62 | 61 |
63 } // namespace internal | |
64 } // namespace ash | 62 } // namespace ash |
65 | 63 |
66 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_SMS_H | 64 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_SMS_H |
OLD | NEW |