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

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

Issue 15906011: Use a direct include of strings headers in chrome/browser/r*-s*/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months 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 | « chrome/browser/ssl/ssl_error_info.h ('k') | chrome/browser/status_icons/status_icon.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/string16.h" 10 #include "base/strings/string16.h"
11 11
12 class Notification; 12 class Notification;
13 13
14 namespace gfx { 14 namespace gfx {
15 class ImageSkia; 15 class ImageSkia;
16 } 16 }
17 17
18 // Provides the notification balloon functionality by using desktop 18 // Provides the notification balloon functionality by using desktop
19 // notifications to platforms that don't have a specific native API. 19 // notifications to platforms that don't have a specific native API.
20 class DesktopNotificationBalloon { 20 class DesktopNotificationBalloon {
21 public: 21 public:
22 DesktopNotificationBalloon(); 22 DesktopNotificationBalloon();
23 virtual ~DesktopNotificationBalloon(); 23 virtual ~DesktopNotificationBalloon();
24 24
25 void DisplayBalloon(const gfx::ImageSkia& icon, 25 void DisplayBalloon(const gfx::ImageSkia& icon,
26 const string16& title, 26 const string16& title,
27 const string16& contents); 27 const string16& contents);
28 28
29 private: 29 private:
30 std::string notification_id_; 30 std::string notification_id_;
31 31
32 // Counter to provide unique ids to notifications. 32 // Counter to provide unique ids to notifications.
33 static int id_count_; 33 static int id_count_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationBalloon); 35 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationBalloon);
36 }; 36 };
37 37
38 #endif // CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_H_ 38 #endif // CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_error_info.h ('k') | chrome/browser/status_icons/status_icon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698