summaryrefslogtreecommitdiffstats
path: root/chromium/ui/message_center/notifier_settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/message_center/notifier_settings.h')
-rw-r--r--chromium/ui/message_center/notifier_settings.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/chromium/ui/message_center/notifier_settings.h b/chromium/ui/message_center/notifier_settings.h
index 7fe859a8d38..b0b11071c23 100644
--- a/chromium/ui/message_center/notifier_settings.h
+++ b/chromium/ui/message_center/notifier_settings.h
@@ -13,8 +13,7 @@
#include "ui/message_center/message_center_export.h"
#include "url/gurl.h"
-FORWARD_DECLARE_TEST(MessageCenterTrayBridgeTest,
- StatusItemOnlyAfterFirstNotification);
+class MessageCenterTrayBridgeTest;
namespace ash {
class WebNotificationTrayTest;
@@ -67,14 +66,13 @@ struct MESSAGE_CENTER_EXPORT NotifierId {
std::string profile_id;
private:
+ friend class ::MessageCenterTrayBridgeTest;
friend class MessageCenterTrayTest;
friend class test::MessagePopupCollectionTest;
friend class NotificationControllerTest;
friend class PopupCollectionTest;
friend class TrayViewControllerTest;
friend class ash::WebNotificationTrayTest;
- FRIEND_TEST_ALL_PREFIXES(::MessageCenterTrayBridgeTest,
- StatusItemOnlyAfterFirstNotification);
FRIEND_TEST_ALL_PREFIXES(PopupControllerTest, Creation);
FRIEND_TEST_ALL_PREFIXES(NotificationListTest, UnreadCountNoNegative);
FRIEND_TEST_ALL_PREFIXES(NotificationListTest, TestHasNotificationOfType);
@@ -86,14 +84,16 @@ struct MESSAGE_CENTER_EXPORT NotifierId {
// The struct to hold the information of notifiers. The information will be
// used by NotifierSettingsView.
struct MESSAGE_CENTER_EXPORT Notifier {
- Notifier(const NotifierId& notifier_id, const string16& name, bool enabled);
+ Notifier(const NotifierId& notifier_id,
+ const base::string16& name,
+ bool enabled);
~Notifier();
NotifierId notifier_id;
// The human-readable name of the notifier such like the extension name.
// It can be empty.
- string16 name;
+ base::string16 name;
// True if the source is allowed to send notifications. True is default.
bool enabled;
@@ -107,8 +107,8 @@ struct MESSAGE_CENTER_EXPORT Notifier {
struct MESSAGE_CENTER_EXPORT NotifierGroup {
NotifierGroup(const gfx::Image& icon,
- const string16& name,
- const string16& login_info,
+ const base::string16& name,
+ const base::string16& login_info,
size_t index);
~NotifierGroup();
@@ -116,10 +116,10 @@ struct MESSAGE_CENTER_EXPORT NotifierGroup {
const gfx::Image icon;
// Display name of a notifier group.
- const string16 name;
+ const base::string16 name;
// More display information about the notifier group.
- string16 login_info;
+ base::string16 login_info;
// Unique identifier for the notifier group so that they can be selected in
// the UI.
@@ -139,6 +139,10 @@ class MESSAGE_CENTER_EXPORT NotifierSettingsObserver {
// Called when any change happens to the set of notifier groups.
virtual void NotifierGroupChanged() = 0;
+
+ // Called when a notifier is enabled or disabled.
+ virtual void NotifierEnabledChanged(const NotifierId& notifier_id,
+ bool enabled) = 0;
};
// A class used by NotifierSettingsView to integrate with a setting system