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

Side by Side Diff: ui/message_center/views/message_center_controller.h

Issue 114323002: Fixes the context menu for a notification. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix2 Created 7 years 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
« no previous file with comments | « ui/message_center/views/group_view.cc ('k') | ui/message_center/views/message_center_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_CONTROLLER_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_CONTROLLER_H_
6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_CONTROLLER_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string16.h"
12 #include "ui/base/models/menu_model.h"
10 #include "ui/message_center/notifier_settings.h" 13 #include "ui/message_center/notifier_settings.h"
11 14
12 namespace message_center { 15 namespace message_center {
13 16
14 // Interface used by views to report clicks and other user actions. The views 17 // Interface used by views to report clicks and other user actions. The views
15 // by themselves do not know how to perform those operations, they ask 18 // by themselves do not know how to perform those operations, they ask
16 // MessageCenterController to do them. Implemented by MessageCeneterView and 19 // MessageCenterController to do them. Implemented by MessageCeneterView and
17 // MessagePopupCollection. 20 // MessagePopupCollection.
18 class MessageCenterController { 21 class MessageCenterController {
19 public: 22 public:
20 virtual void ClickOnNotification(const std::string& notification_id) = 0; 23 virtual void ClickOnNotification(const std::string& notification_id) = 0;
21 virtual void RemoveNotification(const std::string& notification_id, 24 virtual void RemoveNotification(const std::string& notification_id,
22 bool by_user) = 0; 25 bool by_user) = 0;
23 virtual void DisableNotificationsFromThisSource( 26 virtual scoped_ptr<ui::MenuModel> CreateMenuModel(
24 const NotifierId& notifier_id) = 0; 27 const NotifierId& notifier_id,
25 virtual void ShowNotifierSettingsBubble() = 0; 28 const base::string16& display_source) = 0;
26 virtual bool HasClickedListener(const std::string& notification_id) = 0; 29 virtual bool HasClickedListener(const std::string& notification_id) = 0;
27 virtual void ClickOnNotificationButton(const std::string& notification_id, 30 virtual void ClickOnNotificationButton(const std::string& notification_id,
28 int button_index) = 0; 31 int button_index) = 0;
29 virtual void ExpandNotification(const std::string& notification_id) = 0; 32 virtual void ExpandNotification(const std::string& notification_id) = 0;
30 virtual void GroupBodyClicked(const std::string& last_notification_id) = 0; 33 virtual void GroupBodyClicked(const std::string& last_notification_id) = 0;
31 virtual void ExpandGroup(const NotifierId& notifier_id) = 0; 34 virtual void ExpandGroup(const NotifierId& notifier_id) = 0;
32 virtual void RemoveGroup(const NotifierId& notifier_id) = 0; 35 virtual void RemoveGroup(const NotifierId& notifier_id) = 0;
33 }; 36 };
34 37
35 } // namespace message_center 38 } // namespace message_center
36 39
37 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_CONTROLLER_H_ 40 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/group_view.cc ('k') | ui/message_center/views/message_center_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698