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

Side by Side 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, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_DELEGATE_H_
6 #define UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_DELEGATE_H_
7
8 #include <string>
9
10 #include "ui/gfx/native_widget_types.h"
11
12 namespace message_center {
13
14 // For classes that need to handle or propagate notification changes.
15 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
16 public:
17 virtual ~NotificationChangeDelegate() {};
18
19 virtual void RemoveNotification(const std::string& id, bool by_user) = 0;
20 virtual void RemoveAllNotifications(bool by_user) = 0;
21
22 virtual void DisableNotificationsByExtension(const std::string& id) = 0;
23 virtual void DisableNotificationsByUrl(const std::string& id) = 0;
24
25 virtual void ShowNotificationSettings(const std::string& id) = 0;
26 virtual void ShowNotificationSettingsDialog(gfx::NativeView context) = 0;
27
28 virtual void OnExpanded(const std::string& id) = 0;
29 virtual void OnClicked(const std::string& id) = 0;
30 virtual void OnButtonClicked(const std::string& id, int button_index) = 0;
31 };
32
33 } // namespace message_center
34
35 #endif // UI_MESSAGE_CENTER_NOTIFICATION_CHANGE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698