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

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

Issue 18247002: Remove the most obvious dead code from message center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move MessageCenterButtonBar into cc file to hide implementation. Created 7 years, 5 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 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_MESSAGE_CENTER_TRAY_DELEGATE_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_
7 7
8 #include "ui/message_center/message_center_export.h" 8 #include "ui/message_center/message_center_export.h"
9 9
10 namespace message_center { 10 namespace message_center {
11 11
12 // A MessageCenterTrayDelegate class is responsible for managing the various UI 12 // A MessageCenterTrayDelegate class is responsible for managing the various UI
13 // surfaces that should be displayed when the MessageCenter is changed. 13 // surfaces that should be displayed when the MessageCenter is changed.
14 class MESSAGE_CENTER_EXPORT MessageCenterTrayDelegate { 14 class MESSAGE_CENTER_EXPORT MessageCenterTrayDelegate {
15 public: 15 public:
16 virtual ~MessageCenterTrayDelegate() {}; 16 virtual ~MessageCenterTrayDelegate() {};
17 17
18 // Called whenever a change to the visible UI has occurred. 18 // Called whenever a change to the visible UI has occurred.
19 virtual void OnMessageCenterTrayChanged() = 0; 19 virtual void OnMessageCenterTrayChanged() = 0;
20 20
21 // Display the popup bubbles for new notifications to the user. Returns true 21 // Display the popup bubbles for new notifications to the user. Returns true
22 // if popups were actually displayed to the user. 22 // if popups were actually displayed to the user.
23 virtual bool ShowPopups() = 0; 23 virtual bool ShowPopups() = 0;
24 24
25 // Remove the popup bubbles from the UI. 25 // Remove the popup bubbles from the UI.
26 virtual void HidePopups() = 0; 26 virtual void HidePopups() = 0;
27 27
28 // Called when a change to the message center could cause a change to popups
29 // that are currently being displayed.
30 virtual void UpdatePopups() = 0;
31
32 // Display the message center containing all undismissed notifications to the 28 // Display the message center containing all undismissed notifications to the
33 // user. Returns true if the center was actually displayed to the user. 29 // user. Returns true if the center was actually displayed to the user.
34 virtual bool ShowMessageCenter() = 0; 30 virtual bool ShowMessageCenter() = 0;
35 31
36 // Remove the message center from the UI. 32 // Remove the message center from the UI.
37 virtual void HideMessageCenter() = 0; 33 virtual void HideMessageCenter() = 0;
38 34
39 // Display the notifier settings as a bubble. 35 // Display the notifier settings as a bubble.
40 virtual bool ShowNotifierSettings() = 0; 36 virtual bool ShowNotifierSettings() = 0;
41 37
42 // Show a platform-specific UI that informs the user how to open the message 38 // Show a platform-specific UI that informs the user how to open the message
43 // center. 39 // center.
44 virtual void DisplayFirstRunBalloon() {}; 40 virtual void DisplayFirstRunBalloon() {};
45 }; 41 };
46 42
47 } // namespace message_center 43 } // namespace message_center
48 44
49 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_ 45 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/message_center/message_center_tray.cc ('k') | ui/message_center/message_center_tray_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698