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

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

Issue 11819048: Implement message center on Windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address petewil & stevenjb comments. Move MessageCenterTrayDelegate to its own class. Created 7 years, 11 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_
7
8 namespace message_center {
9
10 // A MessageCenterTrayDelegate class is responsible for managing the various UI
11 // surfaces that should be displayed when the MessageCenter is changed.
12 class MESSAGE_CENTER_EXPORT MessageCenterTrayDelegate {
13 public:
14 virtual ~MessageCenterTrayDelegate() {};
miket_OOO 2013/01/25 17:14:48 Good! http://dev.chromium.org/developers/coding-st
dewittj 2013/01/25 19:38:46 Thanks.
15
16 // Called whenever a change to the visible UI has occurred.
17 virtual void OnMessageCenterTrayChanged() = 0;
18
19 // Display the popup bubbles for new notifications to the user. Returns true
20 // if popups were actually displayed to the user.
21 virtual bool ShowPopups() = 0;
22
23 // Remove the popup bubbles from the UI.
24 virtual void HidePopups() = 0;
25
26 // Called when a change to the message center could cause a change to popups
27 // that are currently being displayed.
28 virtual void UpdatePopups() = 0;
29
30 // Display the message center containing all undismissed notifications to the
31 // user. Returns true if the center was actually displayed to the user.
32 virtual bool ShowMessageCenter() = 0;
33
34 // Remove the message center from the UI.
35 virtual void HideMessageCenter() = 0;
36
37 // Called when a change to the message center could cause a change to the
38 // message center widget that is currently being displayed.
39 virtual void UpdateMessageCenter() = 0;
40 };
41
42 } // namespace message_center
43
44 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698