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

Side by Side Diff: chrome/browser/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 // Handles the visible notification (or balloons). 5 // Handles the visible notification (or balloons).
6 6
7 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ 7 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_
8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ 8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 26 matching lines...) Expand all
37 { 37 {
38 public: 38 public:
39 BalloonCollectionImpl(); 39 BalloonCollectionImpl();
40 virtual ~BalloonCollectionImpl(); 40 virtual ~BalloonCollectionImpl();
41 41
42 // BalloonCollection interface. 42 // BalloonCollection interface.
43 virtual void Add(const Notification& notification, 43 virtual void Add(const Notification& notification,
44 Profile* profile); 44 Profile* profile);
45 virtual bool RemoveById(const std::string& id); 45 virtual bool RemoveById(const std::string& id);
46 virtual bool RemoveBySourceOrigin(const GURL& source_origin); 46 virtual bool RemoveBySourceOrigin(const GURL& source_origin);
47 virtual void RemoveAll();
47 virtual bool HasSpace() const; 48 virtual bool HasSpace() const;
48 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size); 49 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size);
49 virtual void DisplayChanged(); 50 virtual void DisplayChanged();
50 virtual void OnBalloonClosed(Balloon* source); 51 virtual void OnBalloonClosed(Balloon* source);
51 virtual const Balloons& GetActiveBalloons() { return base_.balloons(); } 52 virtual const Balloons& GetActiveBalloons() { return base_.balloons(); }
52 53
53 // MessageLoopForUI::Observer interface. 54 // MessageLoopForUI::Observer interface.
54 #if defined(OS_WIN) 55 #if defined(OS_WIN)
55 virtual void WillProcessMessage(const MSG& event) {} 56 virtual void WillProcessMessage(const MSG& event) {}
56 virtual void DidProcessMessage(const MSG& event); 57 virtual void DidProcessMessage(const MSG& event);
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 ScopedRunnableMethodFactory<BalloonCollectionImpl> reposition_factory_; 172 ScopedRunnableMethodFactory<BalloonCollectionImpl> reposition_factory_;
172 173
173 // Is the balloon collection currently listening for UI events? 174 // Is the balloon collection currently listening for UI events?
174 bool added_as_message_loop_observer_; 175 bool added_as_message_loop_observer_;
175 #endif 176 #endif
176 177
177 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); 178 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl);
178 }; 179 };
179 180
180 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ 181 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698