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

Side by Side Diff: chrome/browser/chromeos/notifications/balloon_collection_impl.h

Issue 5319011: Listen for APP_TERMINATING in notification ui; close windows earlier in the p... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 }; 56 };
57 57
58 BalloonCollectionImpl(); 58 BalloonCollectionImpl();
59 virtual ~BalloonCollectionImpl(); 59 virtual ~BalloonCollectionImpl();
60 60
61 // BalloonCollectionInterface overrides 61 // BalloonCollectionInterface overrides
62 virtual void Add(const Notification& notification, 62 virtual void Add(const Notification& notification,
63 Profile* profile); 63 Profile* profile);
64 virtual bool RemoveById(const std::string& id); 64 virtual bool RemoveById(const std::string& id);
65 virtual bool RemoveBySourceOrigin(const GURL& origin); 65 virtual bool RemoveBySourceOrigin(const GURL& origin);
66 virtual void RemoveAll();
66 virtual bool HasSpace() const; 67 virtual bool HasSpace() const;
67 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size); 68 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size);
68 virtual void DisplayChanged() {} 69 virtual void DisplayChanged() {}
69 virtual void OnBalloonClosed(Balloon* source); 70 virtual void OnBalloonClosed(Balloon* source);
70 virtual const Balloons& GetActiveBalloons() { return base_.balloons(); } 71 virtual const Balloons& GetActiveBalloons() { return base_.balloons(); }
71 72
72 // NotificationObserver overrides: 73 // NotificationObserver overrides:
73 virtual void Observe(NotificationType type, 74 virtual void Observe(NotificationType type,
74 const NotificationSource& source, 75 const NotificationSource& source,
75 const NotificationDetails& details); 76 const NotificationDetails& details);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 scoped_ptr<NotificationUI> notification_ui_; 134 scoped_ptr<NotificationUI> notification_ui_;
134 135
135 NotificationRegistrar registrar_; 136 NotificationRegistrar registrar_;
136 137
137 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); 138 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl);
138 }; 139 };
139 140
140 } // namespace chromeos 141 } // namespace chromeos
141 142
142 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ 143 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698