Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Side by Side Diff: chrome/browser/status_icons/desktop_notification_balloon.h

Issue 8417027: Revert 107722 - Implement notifications for the DisplayBalloon method on Linux and Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/status_icons/desktop_notification_balloon.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/status_icons/desktop_notification_balloon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698