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_IMPL_H_ | |
6 #define CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_IMPL_H_ | |
7 #pragma once | |
8 | |
9 #include "base/compiler_specific.h" | |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "base/string16.h" | |
12 #include "chrome/browser/status_icons/status_icon.h" | |
13 | |
14 class Notification; | |
15 class SkBitmap; | |
16 | |
17 // Provides the notification balloon functionality by using desktop | |
18 // notifications to platforms that don't have a specific native API. | |
19 class DesktopNotificationBalloonImpl : public StatusIcon { | |
Andrew T Wilson (Slow)
2011/10/26 01:21:18
Can this be a separate helper class? Not sure this
Leandro Graciá Gil
2011/10/26 13:52:00
Done.
| |
20 public: | |
21 DesktopNotificationBalloonImpl(); | |
22 virtual ~DesktopNotificationBalloonImpl(); | |
23 | |
24 virtual void DisplayBalloon(const SkBitmap& icon, | |
Andrew T Wilson (Slow)
2011/10/26 01:21:18
Not sure that the current implementation of this r
Leandro Graciá Gil
2011/10/26 13:52:00
It leaves the notification in the screen until the
| |
25 const string16& title, | |
26 const string16& contents) OVERRIDE; | |
27 | |
28 private: | |
29 // Notification balloon. | |
30 scoped_ptr<Notification> notification_; | |
31 | |
32 // Counter to provide unique ids to notifications. | |
33 static int id_count_; | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationBalloonImpl); | |
36 }; | |
37 | |
38 #endif // CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_IMPL_H_ | |
OLD | NEW |