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

Unified Diff: ui/message_center/notification_change_delegate.h

Issue 12326091: Made notification center notifications collapsed and expandable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implemented review suggestions. 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
Index: ui/message_center/notification_change_delegate.h
diff --git a/ui/message_center/notification_change_delegate.h b/ui/message_center/notification_change_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..7a8f9645497e2c434d4c7b5e97a504fe21ec1539
--- /dev/null
+++ b/ui/message_center/notification_change_delegate.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_DELEGATE_H_
+#define UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_DELEGATE_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 NotificationChangeDelegate {
Jun Mukai 2013/03/02 02:23:58 Sorry I didn't saying this, but I still don't like
dharcourt 2013/03/04 21:17:52 Yes, you're right, and "delegate" is wrong for thi
+ public:
+ virtual ~NotificationChangeDelegate() {};
+
+ virtual void RemoveNotification(const std::string& id, bool by_user) = 0;
+ virtual void RemoveAllNotifications(bool by_user) = 0;
+
+ virtual void DisableNotificationsByExtension(const std::string& id) = 0;
+ virtual void DisableNotificationsByUrl(const std::string& id) = 0;
+
+ virtual void ShowNotificationSettings(const std::string& id) = 0;
+ virtual void ShowNotificationSettingsDialog(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_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698