| 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/web_notification_tray.h" | 10 #include "ash/system/web_notification/web_notification_tray.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 // On Ash this behaves the same as UpdateNotification. | 59 // On Ash this behaves the same as UpdateNotification. |
| 60 bool UpdateAndShowNotification(const Notification& notification); | 60 bool UpdateAndShowNotification(const Notification& notification); |
| 61 | 61 |
| 62 protected: | 62 protected: |
| 63 // Creates a new balloon. Overridable by unit tests. The caller is | 63 // Creates a new balloon. Overridable by unit tests. The caller is |
| 64 // responsible for freeing the pointer returned. | 64 // responsible for freeing the pointer returned. |
| 65 virtual Balloon* MakeBalloon(const Notification& notification, | 65 virtual Balloon* MakeBalloon(const Notification& notification, |
| 66 Profile* profile) OVERRIDE; | 66 Profile* profile) OVERRIDE; |
| 67 | 67 |
| 68 const extensions::Extension* GetBalloonExtension(Balloon* balloon); |
| 69 |
| 68 private: | 70 private: |
| 69 // Set of unique ids associated with system notifications, used by | 71 // Set of unique ids associated with system notifications, used by |
| 70 // MakeBalloon to determine whether or not to enable Web UI. | 72 // MakeBalloon to determine whether or not to enable Web UI. |
| 71 std::set<std::string> system_notifications_; | 73 std::set<std::string> system_notifications_; |
| 72 | 74 |
| 73 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImplAsh); | 75 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImplAsh); |
| 74 }; | 76 }; |
| 75 | 77 |
| 76 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_COLLECTION_IMPL_ASH_H_ | 78 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_COLLECTION_IMPL_ASH_H_ |
| OLD | NEW |