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

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

Issue 11028134: Re-factor Ash Message Center code part 2/4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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_POPUP_BUBBLE_H_ 5 #ifndef ASH_SYSTEM_NOTIFICATION_POPUP_BUBBLE_H_
6 #define ASH_SYSTEM_NOTIFICATION_POPUP_BUBBLE_H_ 6 #define ASH_SYSTEM_NOTIFICATION_POPUP_BUBBLE_H_
7 7
8 #include "ash/system/web_notification/web_notification_bubble.h" 8 #include "ash/system/web_notification/web_notification_bubble.h"
9 #include "base/timer.h" 9 #include "base/timer.h"
10 10
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 explicit PopupBubble(WebNotificationTray* tray); 22 explicit PopupBubble(WebNotificationTray* tray);
23 23
24 virtual ~PopupBubble(); 24 virtual ~PopupBubble();
25 25
26 size_t NumMessageViewsForTest() const; 26 size_t NumMessageViewsForTest() const;
27 27
28 bool dirty() const { return dirty_; } 28 bool dirty() const { return dirty_; }
29 void set_dirty(bool dirty) { dirty_ = dirty; } 29 void set_dirty(bool dirty) { dirty_ = dirty; }
30 30
31 // Overridden from TrayBubbleView::Host. 31 // Overridden from TrayBubbleView::Delegate.
32 virtual void BubbleViewDestroyed() OVERRIDE; 32 virtual void BubbleViewDestroyed() OVERRIDE;
33
34 virtual void OnMouseEnteredView() OVERRIDE; 33 virtual void OnMouseEnteredView() OVERRIDE;
35
36 virtual void OnMouseExitedView() OVERRIDE; 34 virtual void OnMouseExitedView() OVERRIDE;
37 35
38 private: 36 private:
39 // Overridden from WebNotificationBubble. 37 // Overridden from WebNotificationBubble.
40 virtual void UpdateBubbleView() OVERRIDE; 38 virtual void UpdateBubbleView() OVERRIDE;
41 39
42 void StartAutoCloseTimer(); 40 void StartAutoCloseTimer();
43 41
44 void StopAutoCloseTimer(); 42 void StopAutoCloseTimer();
45 43
46 void OnAutoClose(); 44 void OnAutoClose();
47 45
48 base::OneShotTimer<PopupBubble> autoclose_; 46 base::OneShotTimer<PopupBubble> autoclose_;
49 PopupBubbleContentsView* contents_view_; 47 PopupBubbleContentsView* contents_view_;
50 size_t num_popups_; 48 size_t num_popups_;
51 bool dirty_; 49 bool dirty_;
52 50
53 DISALLOW_COPY_AND_ASSIGN(PopupBubble); 51 DISALLOW_COPY_AND_ASSIGN(PopupBubble);
54 }; 52 };
55 53
56 } // namespace message_center 54 } // namespace message_center
57 55
58 } // namespace ash 56 } // namespace ash
59 57
60 #endif // ASH_SYSTEM_NOTIFICATION_POPUP_BUBBLE_H_ 58 #endif // ASH_SYSTEM_NOTIFICATION_POPUP_BUBBLE_H_
OLDNEW
« no previous file with comments | « ash/system/web_notification/message_center_bubble.cc ('k') | ash/system/web_notification/popup_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698