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

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

Issue 2484863005: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Fix another conflict Created 4 years, 1 month 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
« no previous file with comments | « ui/keyboard/content/keyboard_ui_content.h ('k') | ui/message_center/message_center.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_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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "ui/message_center/message_center.h" 11 #include "ui/message_center/message_center.h"
12 #include "ui/message_center/message_center_types.h" 12 #include "ui/message_center/message_center_types.h"
13 13
14 namespace message_center { 14 namespace message_center {
15 15
16 class NotificationDelegate;
17
18 // MessageCenter implementation of doing nothing. Useful for tests. 16 // MessageCenter implementation of doing nothing. Useful for tests.
19 class FakeMessageCenter : public MessageCenter { 17 class FakeMessageCenter : public MessageCenter {
20 public: 18 public:
21 FakeMessageCenter(); 19 FakeMessageCenter();
22 ~FakeMessageCenter() override; 20 ~FakeMessageCenter() override;
23 21
24 // Overridden from FakeMessageCenter. 22 // Overridden from FakeMessageCenter.
25 void AddObserver(MessageCenterObserver* observer) override; 23 void AddObserver(MessageCenterObserver* observer) override;
26 void RemoveObserver(MessageCenterObserver* observer) override; 24 void RemoveObserver(MessageCenterObserver* observer) override;
27 void AddNotificationBlocker(NotificationBlocker* blocker) override; 25 void AddNotificationBlocker(NotificationBlocker* blocker) override;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 75
78 private: 76 private:
79 const NotificationList::Notifications empty_notifications_; 77 const NotificationList::Notifications empty_notifications_;
80 78
81 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter); 79 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter);
82 }; 80 };
83 81
84 } // namespace message_center 82 } // namespace message_center
85 83
86 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ 84 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_
OLDNEW
« no previous file with comments | « ui/keyboard/content/keyboard_ui_content.h ('k') | ui/message_center/message_center.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698