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

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

Issue 18003003: Message center re-organized (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Border caching added 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_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "ui/base/models/simple_menu_model.h" 9 #include "ui/base/models/simple_menu_model.h"
10 #include "ui/message_center/message_center_export.h" 10 #include "ui/message_center/message_center_export.h"
(...skipping 21 matching lines...) Expand all
32 MessageCenterTray(MessageCenterTrayDelegate* delegate, 32 MessageCenterTray(MessageCenterTrayDelegate* delegate,
33 message_center::MessageCenter* message_center); 33 message_center::MessageCenter* message_center);
34 virtual ~MessageCenterTray(); 34 virtual ~MessageCenterTray();
35 35
36 // Shows or updates the message center bubble and hides the popup bubble. 36 // Shows or updates the message center bubble and hides the popup bubble.
37 // Returns whether the message center is visible after the call, whether or 37 // Returns whether the message center is visible after the call, whether or
38 // not it was visible before. 38 // not it was visible before.
39 bool ShowMessageCenterBubble(); 39 bool ShowMessageCenterBubble();
40 40
41 // Returns whether the message center was visible before. 41 // Returns whether the message center was visible before.
42 bool HideMessageCenterBubble(); 42 bool HideMessageCenterBubble();
dewittj 2013/07/15 18:38:58 Please add to the comment for this method that it
sidharthms 2013/07/15 23:16:37 Done.
43 43
44 // Sets the message center as "not visible" (this method will not hide the
45 // message center).
46 void SetMessageCenterHidden();
dewittj 2013/07/15 18:38:58 Please rename this to MarkMessageCenterHidden to b
sidharthms 2013/07/15 23:16:37 Done.
47
44 void ToggleMessageCenterBubble(); 48 void ToggleMessageCenterBubble();
45 49
46 // Causes an update if the popup bubble is already shown. 50 // Causes an update if the popup bubble is already shown.
47 void ShowPopupBubble(); 51 void ShowPopupBubble();
48 52
49 // Returns whether the popup was visible before. 53 // Returns whether the popup was visible before.
50 bool HidePopupBubble(); 54 bool HidePopupBubble();
51 55
52 // Toggles the visibility of the settings view in the message center bubble. 56 // Toggles the visibility of the settings view in the message center bubble.
53 void ShowNotifierSettingsBubble(); 57 void ShowNotifierSettingsBubble();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool popups_visible_; 101 bool popups_visible_;
98 // |delegate_| is a weak pointer that must live longer than MessageCenterTray. 102 // |delegate_| is a weak pointer that must live longer than MessageCenterTray.
99 MessageCenterTrayDelegate* delegate_; 103 MessageCenterTrayDelegate* delegate_;
100 104
101 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray); 105 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray);
102 }; 106 };
103 107
104 } // namespace message_center 108 } // namespace message_center
105 109
106 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ 110 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698