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

Unified Diff: ui/message_center/notification.h

Issue 23075012: Update NetworkStateNotifier to use message_center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Track deafult_network and reset did_show_out_of_credits on any change Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/system/ash_system_tray_delegate.cc ('k') | ui/message_center/notification.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification.h
diff --git a/ui/message_center/notification.h b/ui/message_center/notification.h
index bda6900fb0c0924d7f61b8df7ff3ec056fec199b..cfcef433a27b8c1522ddad62b8038a2cc8ece9ca 100644
--- a/ui/message_center/notification.h
+++ b/ui/message_center/notification.h
@@ -167,6 +167,15 @@ class MESSAGE_CENTER_EXPORT Notification {
void ButtonClick(int index) const { delegate()->ButtonClick(index); }
void Close(bool by_user) const { delegate()->Close(by_user); }
+ // Helper method to create a simple System notification. |click_callback|
+ // will be invoked when the notification is clicked.
+ static scoped_ptr<Notification> CreateSystemNotification(
+ const std::string& notification_id,
+ const base::string16& title,
+ const base::string16& message,
+ const gfx::Image& icon,
+ const base::Closure& click_callback);
+
protected:
// The type of notification we'd like displayed.
NotificationType type_;
« no previous file with comments | « chrome/browser/chromeos/system/ash_system_tray_delegate.cc ('k') | ui/message_center/notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698