OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 UI_MESSAGE_CENTER_NOTIFICATION_H_ | 5 #ifndef UI_MESSAGE_CENTER_NOTIFICATION_H_ |
6 #define UI_MESSAGE_CENTER_NOTIFICATION_H_ | 6 #define UI_MESSAGE_CENTER_NOTIFICATION_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 ui::notifications::NotificationType type; | 29 ui::notifications::NotificationType type; |
30 std::string id; | 30 std::string id; |
31 string16 title; | 31 string16 title; |
32 string16 message; | 32 string16 message; |
33 string16 display_source; | 33 string16 display_source; |
34 std::string extension_id; | 34 std::string extension_id; |
35 | 35 |
36 // Begin unpacked values from optional_fields | 36 // Begin unpacked values from optional_fields |
37 int priority; | 37 int priority; |
38 base::Time timestamp; | 38 base::Time timestamp; |
39 int unread_count; | |
40 std::vector<string16> button_titles; | 39 std::vector<string16> button_titles; |
41 string16 expanded_message; | 40 string16 expanded_message; |
42 std::vector<NotificationItem> items; | 41 std::vector<NotificationItem> items; |
43 // End unpacked values | 42 // End unpacked values |
44 | 43 |
45 // Images fetched asynchronously | 44 // Images fetched asynchronously |
46 gfx::ImageSkia primary_icon; | 45 gfx::ImageSkia primary_icon; |
47 gfx::ImageSkia image; | 46 gfx::ImageSkia image; |
48 std::vector<gfx::ImageSkia> button_icons; | 47 std::vector<gfx::ImageSkia> button_icons; |
49 | 48 |
50 bool is_read; // True if this has been seen in the message center | 49 bool is_read; // True if this has been seen in the message center |
51 bool shown_as_popup; // True if this has been shown as a popup notification | 50 bool shown_as_popup; // True if this has been shown as a popup notification |
52 }; | 51 }; |
53 | 52 |
54 } // namespace message_center | 53 } // namespace message_center |
55 | 54 |
56 #endif // UI_MESSAGE_CENTER_NOTIFICATION_H_ | 55 #endif // UI_MESSAGE_CENTER_NOTIFICATION_H_ |
OLD | NEW |