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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/message_popup_bubble.h
diff --git a/ui/message_center/message_popup_bubble.h b/ui/message_center/message_popup_bubble.h
new file mode 100644
index 0000000000000000000000000000000000000000..b582ecc7ef8a3b25b8b1d794d2bc108cfa22a0f4
--- /dev/null
+++ b/ui/message_center/message_popup_bubble.h
@@ -0,0 +1,50 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_MESSAGE_CENTER_MESSAGE_POPUP_BUBBLE_H_
+#define UI_MESSAGE_CENTER_MESSAGE_POPUP_BUBBLE_H_
+
+#include "base/timer.h"
+#include "ui/message_center/message_bubble_base.h"
+#include "ui/message_center/message_center_export.h"
+#include "ui/message_center/notification_list.h"
+
+namespace message_center {
+
+class PopupBubbleContentsView;
+
+// Bubble for popup notifications.
+class MESSAGE_CENTER_EXPORT MessagePopupBubble : public MessageBubbleBase {
+ public:
+ explicit MessagePopupBubble(NotificationList::Delegate* delegate);
+
+ virtual ~MessagePopupBubble();
+
+ void StartAutoCloseTimer();
+ void StopAutoCloseTimer();
+
+ // Overridden from MessageBubbleBase.
+ virtual views::TrayBubbleView::InitParams GetInitParams(
+ views::TrayBubbleView::AnchorAlignment anchor_alignment) OVERRIDE;
+ virtual void InitializeContents(views::TrayBubbleView* bubble_view) OVERRIDE;
+ virtual void OnBubbleViewDestroyed() OVERRIDE;
+ virtual void UpdateBubbleView() OVERRIDE;
+ virtual void OnMouseEnteredView() OVERRIDE;
+ virtual void OnMouseExitedView() OVERRIDE;
+
+ size_t NumMessageViewsForTest() const;
+
+ private:
+ void OnAutoClose();
+
+ base::OneShotTimer<MessagePopupBubble> autoclose_;
+ PopupBubbleContentsView* contents_view_;
+ size_t num_popups_;
+
+ DISALLOW_COPY_AND_ASSIGN(MessagePopupBubble);
+};
+
+} // namespace message_center
+
+#endif // UI_MESSAGE_CENTER_MESSAGE_POPUP_BUBBLE_H_
« 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