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

Unified Diff: ui/message_center/notification_change_observer.h

Issue 12326091: Made notification center notifications collapsed and expandable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed manually run message_center unit test. Created 7 years, 10 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 | « ui/message_center/notification.cc ('k') | ui/message_center/notification_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification_change_observer.h
diff --git a/ui/message_center/notification_change_observer.h b/ui/message_center/notification_change_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..9d06d1ee904440d2ef637b8922a27c0e64d7a534
--- /dev/null
+++ b/ui/message_center/notification_change_observer.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_OBSERVER_H_
+#define UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_OBSERVER_H_
+
+#include <string>
+
+#include "ui/gfx/native_widget_types.h"
+
+namespace message_center {
+
+// For classes that need to handle or propagate notification changes.
+class MESSAGE_CENTER_EXPORT NotificationChangeObserver {
miket_OOO 2013/03/05 18:41:32 If you anticipate both that (1) this observer clas
+ public:
+ virtual ~NotificationChangeObserver() {};
+
+ virtual void OnRemoveNotification(const std::string& id, bool by_user) = 0;
+ virtual void OnRemoveAllNotifications(bool by_user) = 0;
+
+ virtual void OnDisableNotificationsByExtension(const std::string& id) = 0;
+ virtual void OnDisableNotificationsByUrl(const std::string& id) = 0;
+
+ virtual void OnShowNotificationSettings(const std::string& id) = 0;
+ virtual void OnShowNotificationSettingsDialog(gfx::NativeView context) = 0;
+
+ virtual void OnExpanded(const std::string& id) = 0;
+ virtual void OnClicked(const std::string& id) = 0;
+ virtual void OnButtonClicked(const std::string& id, int button_index) = 0;
+};
+
+} // namespace message_center
+
+#endif // UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_OBSERVER_H_
« no previous file with comments | « ui/message_center/notification.cc ('k') | ui/message_center/notification_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698