Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

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

Issue 11154022: Re-factor Ash Message Center code part 3/4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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) 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_NOTIFICATION_MESSAGE_CENTER_BUBBLE_H_ 5 #ifndef ASH_SYSTEM_WEB_NOTIFICATION_MESSAGE_CENTER_BUBBLE_H_
6 #define ASH_SYSTEM_NOTIFICATION_MESSAGE_CENTER_BUBBLE_H_ 6 #define ASH_SYSTEM_WEB_NOTIFICATION_MESSAGE_CENTER_BUBBLE_H_
miket_OOO 2012/10/16 01:05:42 Whoops, thanks.
7 7
8 #include "ash/ash_export.h"
8 #include "ash/system/web_notification/web_notification_bubble.h" 9 #include "ash/system/web_notification/web_notification_bubble.h"
9 10 #include "ash/system/web_notification/web_notification_list.h"
10 namespace ash {
11
12 class WebNotificationTray;
13 11
14 namespace message_center { 12 namespace message_center {
15 13
16 class MessageCenterContentsView; 14 class MessageCenterContentsView;
17 15
18 // Bubble for message center. 16 // Bubble for message center.
19 class MessageCenterBubble : public WebNotificationBubble { 17 class ASH_EXPORT MessageCenterBubble : public WebNotificationBubble {
20 public: 18 public:
21 explicit MessageCenterBubble(WebNotificationTray* tray); 19 explicit MessageCenterBubble(WebNotificationList::Delegate* delegate);
22 20
23 virtual ~MessageCenterBubble(); 21 virtual ~MessageCenterBubble();
24 22
25 size_t NumMessageViewsForTest() const; 23 // Overridden from WebNotificationBubble.
24 virtual TrayBubbleView::InitParams GetInitParams(
25 TrayBubbleView::AnchorAlignment anchor_alignment) OVERRIDE;
26 virtual void InitializeContents(TrayBubbleView* bubble_view) OVERRIDE;
27 virtual void OnBubbleViewDestroyed() OVERRIDE;
28 virtual void UpdateBubbleView() OVERRIDE;
29 virtual void OnMouseEnteredView() OVERRIDE;
30 virtual void OnMouseExitedView() OVERRIDE;
26 31
27 // Overridden from TrayBubbleView::Delegate. 32 size_t NumMessageViewsForTest() const OVERRIDE;
28 virtual void BubbleViewDestroyed() OVERRIDE;
29 33
30 private: 34 private:
31 // Overridden from WebNotificationBubble.
32 virtual void UpdateBubbleView() OVERRIDE;
33
34 MessageCenterContentsView* contents_view_; 35 MessageCenterContentsView* contents_view_;
35 36
36 DISALLOW_COPY_AND_ASSIGN(MessageCenterBubble); 37 DISALLOW_COPY_AND_ASSIGN(MessageCenterBubble);
37 }; 38 };
38 39
39 } // namespace message_center 40 } // namespace message_center
40 41
41 } // namespace ash 42 #endif // ASH_SYSTEM_WEB_NOTIFICATION_MESSAGE_CENTER_BUBBLE_H_
42
43 #endif // ASH_SYSTEM_NOTIFICATION_MESSAGE_CENTER_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698