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

Side by Side Diff: ui/message_center/notification.h

Issue 2337963003: Plumb through notification action types and placeholders on Android (Closed)
Patch Set: Put =default back in .cc file Created 4 years, 2 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
OLDNEW
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 11 matching lines...) Expand all
22 22
23 namespace message_center { 23 namespace message_center {
24 24
25 struct MESSAGE_CENTER_EXPORT NotificationItem { 25 struct MESSAGE_CENTER_EXPORT NotificationItem {
26 base::string16 title; 26 base::string16 title;
27 base::string16 message; 27 base::string16 message;
28 28
29 NotificationItem(const base::string16& title, const base::string16& message); 29 NotificationItem(const base::string16& title, const base::string16& message);
30 }; 30 };
31 31
32 enum class ButtonType { BUTTON, TEXT };
33
32 struct MESSAGE_CENTER_EXPORT ButtonInfo { 34 struct MESSAGE_CENTER_EXPORT ButtonInfo {
33 base::string16 title; 35 base::string16 title;
34 gfx::Image icon; 36 gfx::Image icon;
37 ButtonType type = ButtonType::BUTTON;
38 base::string16 placeholder;
35 39
36 ButtonInfo(const base::string16& title); 40 explicit ButtonInfo(const base::string16& title);
41 ButtonInfo(const ButtonInfo& other);
42 ~ButtonInfo();
43 ButtonInfo& operator=(const ButtonInfo& other);
37 }; 44 };
38 45
39 class MESSAGE_CENTER_EXPORT RichNotificationData { 46 class MESSAGE_CENTER_EXPORT RichNotificationData {
40 public: 47 public:
41 RichNotificationData(); 48 RichNotificationData();
42 RichNotificationData(const RichNotificationData& other); 49 RichNotificationData(const RichNotificationData& other);
43 ~RichNotificationData(); 50 ~RichNotificationData();
44 51
45 int priority; 52 int priority;
46 bool never_timeout; 53 bool never_timeout;
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 bool is_read_; // True if this has been seen in the message center. 292 bool is_read_; // True if this has been seen in the message center.
286 293
287 // A proxy object that allows access back to the JavaScript object that 294 // A proxy object that allows access back to the JavaScript object that
288 // represents the notification, for firing events. 295 // represents the notification, for firing events.
289 scoped_refptr<NotificationDelegate> delegate_; 296 scoped_refptr<NotificationDelegate> delegate_;
290 }; 297 };
291 298
292 } // namespace message_center 299 } // namespace message_center
293 300
294 #endif // UI_MESSAGE_CENTER_NOTIFICATION_H_ 301 #endif // UI_MESSAGE_CENTER_NOTIFICATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698