| 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_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_H_ | 5 #ifndef CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_H_ |
| 6 #define CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_H_ | 6 #define CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 | 11 |
| 12 class Notification; | 12 class Notification; |
| 13 class Profile; | 13 class Profile; |
| 14 | 14 |
| 15 namespace gfx { | 15 namespace gfx { |
| 16 class ImageSkia; | 16 class ImageSkia; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace message_center { |
| 20 struct NotifierId; |
| 21 } |
| 22 |
| 19 // Provides the notification balloon functionality by using desktop | 23 // Provides the notification balloon functionality by using desktop |
| 20 // notifications to platforms that don't have a specific native API. | 24 // notifications to platforms that don't have a specific native API. |
| 21 class DesktopNotificationBalloon { | 25 class DesktopNotificationBalloon { |
| 22 public: | 26 public: |
| 23 DesktopNotificationBalloon(); | 27 DesktopNotificationBalloon(); |
| 24 virtual ~DesktopNotificationBalloon(); | 28 virtual ~DesktopNotificationBalloon(); |
| 25 | 29 |
| 26 void DisplayBalloon(const gfx::ImageSkia& icon, | 30 void DisplayBalloon(const gfx::ImageSkia& icon, |
| 27 const base::string16& title, | 31 const base::string16& title, |
| 28 const base::string16& contents); | 32 const base::string16& contents, |
| 33 const message_center::NotifierId& notifier_id); |
| 29 | 34 |
| 30 private: | 35 private: |
| 31 std::string notification_id_; | 36 std::string notification_id_; |
| 32 Profile* profile_; | 37 Profile* profile_; |
| 33 | 38 |
| 34 // Counter to provide unique ids to notifications. | 39 // Counter to provide unique ids to notifications. |
| 35 static int id_count_; | 40 static int id_count_; |
| 36 | 41 |
| 37 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationBalloon); | 42 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationBalloon); |
| 38 }; | 43 }; |
| 39 | 44 |
| 40 #endif // CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_H_ | 45 #endif // CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_H_ |
| OLD | NEW |