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

Side by Side Diff: ash/system/web_notification/web_notification_tray.h

Issue 11684003: Make MessageCenter a singleton object and build on Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 12 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 5 #ifndef ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
6 #define ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 6 #define ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/system/tray/tray_background_view.h" 9 #include "ash/system/tray/tray_background_view.h"
10 #include "ash/system/tray/tray_views.h" 10 #include "ash/system/tray/tray_views.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Updates tray visibility login status of the system changes. 64 // Updates tray visibility login status of the system changes.
65 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); 65 void UpdateAfterLoginStatusChange(user::LoginStatus login_status);
66 66
67 // Returns true if the message center bubble is visible. 67 // Returns true if the message center bubble is visible.
68 bool IsMessageCenterBubbleVisible() const; 68 bool IsMessageCenterBubbleVisible() const;
69 69
70 // Returns true if the mouse is inside the notification bubble. 70 // Returns true if the mouse is inside the notification bubble.
71 bool IsMouseInNotificationBubble() const; 71 bool IsMouseInNotificationBubble() const;
72 72
73 message_center::MessageCenter* message_center() { 73 message_center::MessageCenter* message_center() {
74 return message_center_.get(); 74 return message_center_;
75 } 75 }
76 76
77 // Overridden from TrayBackgroundView. 77 // Overridden from TrayBackgroundView.
78 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE; 78 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE;
79 virtual void AnchorUpdated() OVERRIDE; 79 virtual void AnchorUpdated() OVERRIDE;
80 virtual string16 GetAccessibleNameForTray() OVERRIDE; 80 virtual string16 GetAccessibleNameForTray() OVERRIDE;
81 virtual void HideBubbleWithView( 81 virtual void HideBubbleWithView(
82 const views::TrayBubbleView* bubble_view) OVERRIDE; 82 const views::TrayBubbleView* bubble_view) OVERRIDE;
83 virtual bool ClickedOutsideBubble() OVERRIDE; 83 virtual bool ClickedOutsideBubble() OVERRIDE;
84 84
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 146
147 message_center::QuietModeBubble* quiet_mode_bubble() const { 147 message_center::QuietModeBubble* quiet_mode_bubble() const {
148 return quiet_mode_bubble_.get(); 148 return quiet_mode_bubble_.get();
149 } 149 }
150 150
151 // Testing accessors. 151 // Testing accessors.
152 message_center::MessageCenterBubble* GetMessageCenterBubbleForTest(); 152 message_center::MessageCenterBubble* GetMessageCenterBubbleForTest();
153 message_center::MessagePopupBubble* GetPopupBubbleForTest(); 153 message_center::MessagePopupBubble* GetPopupBubbleForTest();
154 154
155 scoped_ptr<message_center::MessageCenter> message_center_; 155 message_center::MessageCenter* message_center_;
156 scoped_ptr<internal::WebNotificationBubbleWrapper> message_center_bubble_; 156 scoped_ptr<internal::WebNotificationBubbleWrapper> message_center_bubble_;
157 scoped_ptr<internal::WebNotificationBubbleWrapper> popup_bubble_; 157 scoped_ptr<internal::WebNotificationBubbleWrapper> popup_bubble_;
158 scoped_ptr<message_center::QuietModeBubble> quiet_mode_bubble_; 158 scoped_ptr<message_center::QuietModeBubble> quiet_mode_bubble_;
159 views::ImageButton* button_; 159 views::ImageButton* button_;
160 bool show_message_center_on_unlock_; 160 bool show_message_center_on_unlock_;
161 161
162 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); 162 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray);
163 }; 163 };
164 164
165 } // namespace ash 165 } // namespace ash
166 166
167 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 167 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698