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

Side by Side Diff: ui/message_center/fake_message_center.h

Issue 17157007: cros: Show notification when low-power charger connected (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reupload Created 7 years, 6 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
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ui/message_center/message_center.gyp » ('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_FAKE_MESSAGE_CENTER_H_ 5 #ifndef UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_
6 #define UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ 6 #define UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_
7 7
8 #include "ui/message_center/message_center.h" 8 #include "ui/message_center/message_center.h"
9 9
10 namespace message_center { 10 namespace message_center {
11 11
12 class NotificationDelegate; 12 class NotificationDelegate;
13 13
14 // MessageCenter implementation of doing nothing. Useful for tests. 14 // MessageCenter implementation of doing nothing. Useful for tests.
15 class FakeMessageCenter : public MessageCenter { 15 class MESSAGE_CENTER_EXPORT FakeMessageCenter : public MessageCenter {
16 public: 16 public:
17 FakeMessageCenter(); 17 FakeMessageCenter();
18 virtual ~FakeMessageCenter(); 18 virtual ~FakeMessageCenter();
19 19
20 // Overridden from FakeMessageCenter. 20 // Overridden from FakeMessageCenter.
21 virtual void SetDelegate(Delegate* delegate) OVERRIDE; 21 virtual void SetDelegate(Delegate* delegate) OVERRIDE;
22 virtual void AddObserver(MessageCenterObserver* observer) OVERRIDE; 22 virtual void AddObserver(MessageCenterObserver* observer) OVERRIDE;
23 virtual void RemoveObserver(MessageCenterObserver* observer) OVERRIDE; 23 virtual void RemoveObserver(MessageCenterObserver* observer) OVERRIDE;
24 virtual size_t NotificationCount() const OVERRIDE; 24 virtual size_t NotificationCount() const OVERRIDE;
25 virtual size_t UnreadNotificationCount() const OVERRIDE; 25 virtual size_t UnreadNotificationCount() const OVERRIDE;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 private: 71 private:
72 const NotificationList::Notifications empty_notifications_; 72 const NotificationList::Notifications empty_notifications_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter); 74 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter);
75 }; 75 };
76 76
77 } // namespace message_center 77 } // namespace message_center
78 78
79 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ 79 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ui/message_center/message_center.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698