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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "ash/system/tray/system_tray_item.h" | 12 #include "ash/system/tray/system_tray_item.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chromeos/network/network_sms_handler.h" | 15 #include "chromeos/network/network_sms_handler.h" |
16 | 16 |
17 namespace ash { | 17 namespace ash { |
18 | 18 |
19 class TraySms : public SystemTrayItem, | 19 class TraySms : public SystemTrayItem, |
20 public chromeos::NetworkSmsHandler::Observer { | 20 public chromeos::NetworkSmsHandler::Observer { |
21 public: | 21 public: |
22 explicit TraySms(SystemTray* system_tray); | 22 explicit TraySms(SystemTray* system_tray); |
23 ~TraySms() override; | 23 ~TraySms() override; |
24 | 24 |
25 // Overridden from SystemTrayItem. | 25 // Overridden from SystemTrayItem. |
26 views::View* CreateDefaultView(user::LoginStatus status) override; | 26 views::View* CreateDefaultView(LoginStatus status) override; |
27 views::View* CreateDetailedView(user::LoginStatus status) override; | 27 views::View* CreateDetailedView(LoginStatus status) override; |
28 views::View* CreateNotificationView(user::LoginStatus status) override; | 28 views::View* CreateNotificationView(LoginStatus status) override; |
29 void DestroyDefaultView() override; | 29 void DestroyDefaultView() override; |
30 void DestroyDetailedView() override; | 30 void DestroyDetailedView() override; |
31 void DestroyNotificationView() override; | 31 void DestroyNotificationView() override; |
32 | 32 |
33 // Overridden from chromeos::NetworkSmsHandler::Observer. | 33 // Overridden from chromeos::NetworkSmsHandler::Observer. |
34 void MessageReceived(const base::DictionaryValue& message) override; | 34 void MessageReceived(const base::DictionaryValue& message) override; |
35 | 35 |
36 protected: | 36 protected: |
37 class SmsDefaultView; | 37 class SmsDefaultView; |
38 class SmsDetailedView; | 38 class SmsDetailedView; |
(...skipping 18 matching lines...) Expand all Loading... |
57 SmsDetailedView* detailed_; | 57 SmsDetailedView* detailed_; |
58 SmsNotificationView* notification_; | 58 SmsNotificationView* notification_; |
59 base::ListValue messages_; | 59 base::ListValue messages_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(TraySms); | 61 DISALLOW_COPY_AND_ASSIGN(TraySms); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace ash | 64 } // namespace ash |
65 | 65 |
66 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_SMS_H | 66 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_SMS_H |
OLD | NEW |