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

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

Issue 19602003: Use a direct include of the message_loop header in chrome/browser/, part 7. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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 // 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 9
10 #include <deque> 10 #include <deque>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop/message_loop.h"
16 #include "chrome/browser/notifications/balloon_collection.h" 16 #include "chrome/browser/notifications/balloon_collection.h"
17 #include "chrome/browser/notifications/balloon_collection_base.h" 17 #include "chrome/browser/notifications/balloon_collection_base.h"
18 #include "content/public/browser/notification_observer.h" 18 #include "content/public/browser/notification_observer.h"
19 #include "content/public/browser/notification_registrar.h" 19 #include "content/public/browser/notification_registrar.h"
20 #include "ui/gfx/point.h" 20 #include "ui/gfx/point.h"
21 #include "ui/gfx/rect.h" 21 #include "ui/gfx/rect.h"
22 22
23 // Mac balloons grow from the top down and have close buttons on top, so 23 // Mac balloons grow from the top down and have close buttons on top, so
24 // offsetting is not necessary for easy multiple-closing. Other platforms grow 24 // offsetting is not necessary for easy multiple-closing. Other platforms grow
25 // from the bottom up and have close buttons on top, so it is necessary. 25 // from the bottom up and have close buttons on top, so it is necessary.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 base::WeakPtrFactory<BalloonCollectionImpl> reposition_factory_; 239 base::WeakPtrFactory<BalloonCollectionImpl> reposition_factory_;
240 240
241 // Is the balloon collection currently listening for UI events? 241 // Is the balloon collection currently listening for UI events?
242 bool added_as_message_loop_observer_; 242 bool added_as_message_loop_observer_;
243 #endif 243 #endif
244 244
245 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); 245 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl);
246 }; 246 };
247 247
248 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ 248 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698