| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_SYSTEM_NOTIFICATION_FACTORY_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_SYSTEM_NOTIFICATION_FACTORY_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "chrome/browser/notifications/notification.h" | |
| 10 | |
| 11 class GURL; | |
| 12 class NotificationDelegate; | |
| 13 | |
| 14 namespace chromeos { | |
| 15 | |
| 16 // A utility class for system notifications. | |
| 17 class SystemNotificationFactory { | |
| 18 public: | |
| 19 | |
| 20 // Creates a system notification. | |
| 21 static Notification Create( | |
| 22 const GURL& icon, const string16& title, | |
| 23 const string16& text, | |
| 24 NotificationDelegate* delegate); | |
| 25 | |
| 26 // Creates a system notification with a footer link. | |
| 27 static Notification Create( | |
| 28 const GURL& icon, const string16& title, | |
| 29 const string16& text, const string16& link, | |
| 30 NotificationDelegate* delegate); | |
| 31 }; | |
| 32 | |
| 33 } // namespace chromeos | |
| 34 | |
| 35 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_SYSTEM_NOTIFICATION_FACTORY_H_ | |
| OLD | NEW |