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

Side by Side Diff: content/public/common/platform_notification_data.h

Issue 794633002: Remove ShowDesktopNotificationHostMsgParams in favor of PlatformNotificationData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another rebase Created 6 years 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
OLDNEW
(Empty)
1 // Copyright 2014 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 CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_
6 #define CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_
7
8 #include <string>
9
10 #include "base/strings/string16.h"
11 #include "content/common/content_export.h"
12 #include "url/gurl.h"
13
14 namespace content {
15
16 // Structure representing the information associated with a Web Notification.
17 // This struct should include the developer-visible information, kept
18 // synchronized with the WebNotificationData structure defined in the Blink API.
19 struct CONTENT_EXPORT PlatformNotificationData {
20 PlatformNotificationData();
21 ~PlatformNotificationData();
22
23 enum NotificationDirection {
24 NotificationDirectionLeftToRight,
25 NotificationDirectionRightToLeft
26 };
Tom Sepez 2014/12/11 22:12:23 nit: prefer the pattern where enum NotificationDi
Peter Beverloo 2014/12/12 12:05:56 Done.
27
28 // Title to be displayed with the Web Notification.
29 base::string16 title;
30
31 // Hint to determine the directionality of the displayed notification.
32 NotificationDirection direction;
33
34 // BCP 47 language tag describing the notification's contents. Optional.
35 std::string lang;
36
37 // Contents of the notification.
38 base::string16 body;
39
40 // Tag of the notification. Notifications sharing both their origin and their
41 // tag will replace the first displayed notification.
42 base::string16 tag;
43
44 // URL of the icon which is to be displayed with the notification.
45 GURL icon;
46 };
47
48 } // namespace content
49
50 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_
OLDNEW
« no previous file with comments | « content/public/browser/platform_notification_service.h ('k') | content/public/common/platform_notification_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698