OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_H_ |
| 6 #define CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/string16.h" |
| 12 |
| 13 class Notification; |
| 14 class SkBitmap; |
| 15 |
| 16 // Provides the notification balloon functionality by using desktop |
| 17 // notifications to platforms that don't have a specific native API. |
| 18 class DesktopNotificationBalloon { |
| 19 public: |
| 20 DesktopNotificationBalloon(); |
| 21 virtual ~DesktopNotificationBalloon(); |
| 22 |
| 23 void DisplayBalloon(const SkBitmap& icon, |
| 24 const string16& title, |
| 25 const string16& contents); |
| 26 |
| 27 private: |
| 28 // Notification balloon. |
| 29 scoped_ptr<Notification> notification_; |
| 30 |
| 31 // Counter to provide unique ids to notifications. |
| 32 static int id_count_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationBalloon); |
| 35 }; |
| 36 |
| 37 #endif // CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_H_ |
OLD | NEW |