| 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_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // NotificationUIManager: | 36 // NotificationUIManager: |
| 37 virtual bool CancelById(const std::string& notification_id) OVERRIDE; | 37 virtual bool CancelById(const std::string& notification_id) OVERRIDE; |
| 38 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; | 38 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; |
| 39 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; | 39 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; |
| 40 virtual void CancelAll() OVERRIDE; | 40 virtual void CancelAll() OVERRIDE; |
| 41 | 41 |
| 42 // NotificationUIManagerImpl: | 42 // NotificationUIManagerImpl: |
| 43 virtual bool ShowNotification(const Notification& notification, | 43 virtual bool ShowNotification(const Notification& notification, |
| 44 Profile* profile) OVERRIDE; | 44 Profile* profile) OVERRIDE; |
| 45 virtual bool UpdateNotification(const Notification& notification) OVERRIDE; | 45 virtual bool UpdateNotification(const Notification& notification, |
| 46 Profile* profile) OVERRIDE; |
| 46 | 47 |
| 47 // NotificationPrefsManager: | 48 // NotificationPrefsManager: |
| 48 virtual BalloonCollection::PositionPreference | 49 virtual BalloonCollection::PositionPreference |
| 49 GetPositionPreference() const OVERRIDE; | 50 GetPositionPreference() const OVERRIDE; |
| 50 virtual void SetPositionPreference( | 51 virtual void SetPositionPreference( |
| 51 BalloonCollection::PositionPreference preference) OVERRIDE; | 52 BalloonCollection::PositionPreference preference) OVERRIDE; |
| 52 | 53 |
| 53 BalloonCollection* balloon_collection(); | 54 BalloonCollection* balloon_collection(); |
| 54 NotificationPrefsManager* prefs_manager(); | 55 NotificationPrefsManager* prefs_manager(); |
| 55 | 56 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 66 // An owned pointer to the collection of active balloons. | 67 // An owned pointer to the collection of active balloons. |
| 67 scoped_ptr<BalloonCollection> balloon_collection_; | 68 scoped_ptr<BalloonCollection> balloon_collection_; |
| 68 | 69 |
| 69 // Prefs listener for the position preference. | 70 // Prefs listener for the position preference. |
| 70 IntegerPrefMember position_pref_; | 71 IntegerPrefMember position_pref_; |
| 71 | 72 |
| 72 DISALLOW_COPY_AND_ASSIGN(BalloonNotificationUIManager); | 73 DISALLOW_COPY_AND_ASSIGN(BalloonNotificationUIManager); |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_ | 76 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_ |
| OLD | NEW |