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

Side by Side Diff: chrome/browser/notifications/notification.h

Issue 1395093002: Fix system notifications incorrectly marked as type WEB_PAGE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timeout
Patch Set: Fix typo Created 5 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) 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 CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/notifications/notification_delegate.h" 14 #include "chrome/browser/notifications/notification_delegate.h"
15 #include "ui/message_center/notification.h" 15 #include "ui/message_center/notification.h"
16 #include "ui/message_center/notification_types.h" 16 #include "ui/message_center/notification_types.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 namespace gfx { 19 namespace gfx {
20 class Image; 20 class Image;
21 } 21 }
22 22
23 // Representation of a notification to be shown to the user. 23 // Representation of a notification to be shown to the user.
24 class Notification : public message_center::Notification { 24 class Notification : public message_center::Notification {
25 public: 25 public:
26 Notification(const GURL& origin_url,
27 const base::string16& title,
28 const base::string16& body,
29 const gfx::Image& icon,
30 const base::string16& display_source,
31 const std::string& tag,
32 NotificationDelegate* delegate);
33
34 Notification( 26 Notification(
35 message_center::NotificationType type, 27 message_center::NotificationType type,
36 const base::string16& title, 28 const base::string16& title,
37 const base::string16& body, 29 const base::string16& body,
38 const gfx::Image& icon, 30 const gfx::Image& icon,
39 const message_center::NotifierId& notifier_id, 31 const message_center::NotifierId& notifier_id,
40 const base::string16& display_source, 32 const base::string16& display_source,
41 const GURL& origin_url, 33 const GURL& origin_url,
42 const std::string& tag, 34 const std::string& tag,
43 const message_center::RichNotificationData& rich_notification_data, 35 const message_center::RichNotificationData& rich_notification_data,
(...skipping 16 matching lines...) Expand all
60 private: 52 private:
61 // The user-supplied tag for the notification. 53 // The user-supplied tag for the notification.
62 std::string tag_; 54 std::string tag_;
63 55
64 // A proxy object that allows access back to the JavaScript object that 56 // A proxy object that allows access back to the JavaScript object that
65 // represents the notification, for firing events. 57 // represents the notification, for firing events.
66 scoped_refptr<NotificationDelegate> delegate_; 58 scoped_refptr<NotificationDelegate> delegate_;
67 }; 59 };
68 60
69 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ 61 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/message_center_notifications_unittest.cc ('k') | chrome/browser/notifications/notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698