OLD | NEW |
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 CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_COLLECTION_IMPL_ASH_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_COLLECTION_IMPL_ASH_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_COLLECTION_IMPL_ASH_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_COLLECTION_IMPL_ASH_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "ash/system/web_notification/message_center.h" | |
11 #include "chrome/browser/chromeos/notifications/balloon_view_host_chromeos.h" /
/ MessageCallback | 10 #include "chrome/browser/chromeos/notifications/balloon_view_host_chromeos.h" /
/ MessageCallback |
12 #include "chrome/browser/notifications/balloon_collection_impl.h" | 11 #include "chrome/browser/notifications/balloon_collection_impl.h" |
| 12 #include "ui/message_center/message_center.h" |
13 | 13 |
14 // Wrapper on top of ::BalloonCollectionImpl to provide integration between | 14 // Wrapper on top of ::BalloonCollectionImpl to provide integration between |
15 // the Chrome notification UI and Ash notifications (ash::WebNotificationTray). | 15 // the Chrome notification UI and Ash notifications (ash::WebNotificationTray). |
16 class BalloonCollectionImplAsh | 16 class BalloonCollectionImplAsh |
17 : public BalloonCollectionImpl, | 17 : public BalloonCollectionImpl, |
18 public message_center::MessageCenter::Delegate { | 18 public message_center::MessageCenter::Delegate { |
19 public: | 19 public: |
20 BalloonCollectionImplAsh(); | 20 BalloonCollectionImplAsh(); |
21 virtual ~BalloonCollectionImplAsh(); | 21 virtual ~BalloonCollectionImplAsh(); |
22 | 22 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 virtual Balloon* MakeBalloon(const Notification& notification, | 59 virtual Balloon* MakeBalloon(const Notification& notification, |
60 Profile* profile) OVERRIDE; | 60 Profile* profile) OVERRIDE; |
61 | 61 |
62 const extensions::Extension* GetBalloonExtension(Balloon* balloon); | 62 const extensions::Extension* GetBalloonExtension(Balloon* balloon); |
63 | 63 |
64 private: | 64 private: |
65 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImplAsh); | 65 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImplAsh); |
66 }; | 66 }; |
67 | 67 |
68 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_COLLECTION_IMPL_ASH_H_ | 68 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_COLLECTION_IMPL_ASH_H_ |
OLD | NEW |