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

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

Issue 11229022: Move ash/system/web_notification message_center to ui/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again. Created 8 years, 1 month 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
« no previous file with comments | « ui/message_center/message_center_export.h ('k') | ui/message_center/message_popup_bubble.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_MESSAGE_CENTER_MESSAGE_POPUP_BUBBLE_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_POPUP_BUBBLE_H_
7
8 #include "base/timer.h"
9 #include "ui/message_center/message_bubble_base.h"
10 #include "ui/message_center/message_center_export.h"
11 #include "ui/message_center/notification_list.h"
12
13 namespace message_center {
14
15 class PopupBubbleContentsView;
16
17 // Bubble for popup notifications.
18 class MESSAGE_CENTER_EXPORT MessagePopupBubble : public MessageBubbleBase {
19 public:
20 explicit MessagePopupBubble(NotificationList::Delegate* delegate);
21
22 virtual ~MessagePopupBubble();
23
24 void StartAutoCloseTimer();
25 void StopAutoCloseTimer();
26
27 // Overridden from MessageBubbleBase.
28 virtual views::TrayBubbleView::InitParams GetInitParams(
29 views::TrayBubbleView::AnchorAlignment anchor_alignment) OVERRIDE;
30 virtual void InitializeContents(views::TrayBubbleView* bubble_view) OVERRIDE;
31 virtual void OnBubbleViewDestroyed() OVERRIDE;
32 virtual void UpdateBubbleView() OVERRIDE;
33 virtual void OnMouseEnteredView() OVERRIDE;
34 virtual void OnMouseExitedView() OVERRIDE;
35
36 size_t NumMessageViewsForTest() const;
37
38 private:
39 void OnAutoClose();
40
41 base::OneShotTimer<MessagePopupBubble> autoclose_;
42 PopupBubbleContentsView* contents_view_;
43 size_t num_popups_;
44
45 DISALLOW_COPY_AND_ASSIGN(MessagePopupBubble);
46 };
47
48 } // namespace message_center
49
50 #endif // UI_MESSAGE_CENTER_MESSAGE_POPUP_BUBBLE_H_
OLDNEW
« no previous file with comments | « ui/message_center/message_center_export.h ('k') | ui/message_center/message_popup_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698