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

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

Issue 12326091: Made notification center notifications collapsed and expandable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 UI_MESSAGE_CENTER_MESSAGE_CENTER_BUBBLE_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_BUBBLE_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_BUBBLE_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_BUBBLE_H_
7 7
8 #include "ui/message_center/message_bubble_base.h" 8 #include "ui/message_center/message_bubble_base.h"
9 #include "ui/message_center/message_center_export.h" 9 #include "ui/message_center/message_center_export.h"
10 #include "ui/message_center/notification_list.h" 10 #include "ui/message_center/notification_list.h"
11 11
12 namespace message_center { 12 namespace message_center {
13 13
14 class MessageCenterContentsView; 14 class MessageCenterView;
dharcourt 2013/02/23 04:32:00 I renamed "MessageCenterContentsView" to "MessageC
15 15
16 // Bubble for message center. 16 // Bubble for message center.
17 class MESSAGE_CENTER_EXPORT MessageCenterBubble : public MessageBubbleBase { 17 class MESSAGE_CENTER_EXPORT MessageCenterBubble : public MessageBubbleBase {
18 public: 18 public:
19 explicit MessageCenterBubble(NotificationList::Delegate* delegate); 19 explicit MessageCenterBubble(NotificationList::Delegate* delegate);
20 20
21 virtual ~MessageCenterBubble(); 21 virtual ~MessageCenterBubble();
22 22
23 // Overridden from MessageBubbleBase. 23 // Overridden from MessageBubbleBase.
24 virtual views::TrayBubbleView::InitParams GetInitParams( 24 virtual views::TrayBubbleView::InitParams GetInitParams(
25 views::TrayBubbleView::AnchorAlignment anchor_alignment) OVERRIDE; 25 views::TrayBubbleView::AnchorAlignment anchor_alignment) OVERRIDE;
26 virtual void InitializeContents(views::TrayBubbleView* bubble_view) OVERRIDE; 26 virtual void InitializeContents(views::TrayBubbleView* bubble_view) OVERRIDE;
27 virtual void OnBubbleViewDestroyed() OVERRIDE; 27 virtual void OnBubbleViewDestroyed() OVERRIDE;
28 virtual void UpdateBubbleView() OVERRIDE; 28 virtual void UpdateBubbleView() OVERRIDE;
29 virtual void OnMouseEnteredView() OVERRIDE; 29 virtual void OnMouseEnteredView() OVERRIDE;
30 virtual void OnMouseExitedView() OVERRIDE; 30 virtual void OnMouseExitedView() OVERRIDE;
31 31
32 size_t NumMessageViewsForTest() const; 32 size_t NumMessageViewsForTest() const;
33 33
34 private: 34 private:
35 MessageCenterContentsView* contents_view_; 35 MessageCenterView* contents_view_;
36 36
37 // The maximum height 37 // The maximum height
38 int max_height_; 38 int max_height_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(MessageCenterBubble); 40 DISALLOW_COPY_AND_ASSIGN(MessageCenterBubble);
41 }; 41 };
42 42
43 } // namespace message_center 43 } // namespace message_center
44 44
45 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_BUBBLE_H_ 45 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_BUBBLE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/message_center/message_center_bubble.cc » ('j') | ui/message_center/message_center_bubble.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698