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

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

Issue 6400006: Fix style problems in Balloon stuff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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) 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void RemoveAll();
48 virtual bool HasSpace() const; 48 virtual bool HasSpace() const;
49 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size); 49 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size);
50 virtual void SetPositionPreference(PositionPreference position); 50 virtual void SetPositionPreference(PositionPreference position);
51 virtual void DisplayChanged(); 51 virtual void DisplayChanged();
52 virtual void OnBalloonClosed(Balloon* source); 52 virtual void OnBalloonClosed(Balloon* source);
53 virtual const Balloons& GetActiveBalloons() { return base_.balloons(); } 53 virtual const Balloons& GetActiveBalloons();
54 54
55 // MessageLoopForUI::Observer interface. 55 // MessageLoopForUI::Observer interface.
56 #if defined(OS_WIN) 56 #if defined(OS_WIN)
57 virtual void WillProcessMessage(const MSG& event) {} 57 virtual void WillProcessMessage(const MSG& event) {}
58 virtual void DidProcessMessage(const MSG& event); 58 virtual void DidProcessMessage(const MSG& event);
59 #endif 59 #endif
60 #if defined(OS_LINUX) 60 #if defined(OS_LINUX)
61 virtual void WillProcessEvent(GdkEvent* event) {} 61 virtual void WillProcessEvent(GdkEvent* event) {}
62 virtual void DidProcessEvent(GdkEvent* event); 62 virtual void DidProcessEvent(GdkEvent* event);
63 #endif 63 #endif
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 ScopedRunnableMethodFactory<BalloonCollectionImpl> reposition_factory_; 182 ScopedRunnableMethodFactory<BalloonCollectionImpl> reposition_factory_;
183 183
184 // Is the balloon collection currently listening for UI events? 184 // Is the balloon collection currently listening for UI events?
185 bool added_as_message_loop_observer_; 185 bool added_as_message_loop_observer_;
186 #endif 186 #endif
187 187
188 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); 188 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl);
189 }; 189 };
190 190
191 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ 191 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/balloon_collection.cc ('k') | chrome/browser/notifications/balloon_collection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698