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

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

Issue 794633002: Remove ShowDesktopNotificationHostMsgParams in favor of PlatformNotificationData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments 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 (c) 2012 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_SHOW_DESKTOP_NOTIFICATION_PARAMS_H_
6 #define CONTENT_PUBLIC_COMMON_SHOW_DESKTOP_NOTIFICATION_PARAMS_H_
7
8 #include "content/common/content_export.h"
9 #include "third_party/WebKit/public/web/WebTextDirection.h"
10 #include "third_party/skia/include/core/SkBitmap.h"
11 #include "url/gurl.h"
12
13 namespace content {
14
15 // Parameters used when showing an HTML5 notification.
16 // TODO(peter): Rename this to PlatformNotificationData.
17 struct CONTENT_EXPORT ShowDesktopNotificationHostMsgParams {
18 ShowDesktopNotificationHostMsgParams();
19 ~ShowDesktopNotificationHostMsgParams();
20
21 // URL which is the origin that created this notification.
22 GURL origin;
23
24 // Image to be displayed as part of the notification.
25 SkBitmap icon;
26
27 base::string16 title;
28 base::string16 body;
29
30 // Directionality of the notification.
31 blink::WebTextDirection direction;
32
33 // ReplaceID if this notification should replace an existing one; may be
34 // empty if no replacement is called for.
35 base::string16 replace_id;
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_PUBLIC_COMMON_SHOW_DESKTOP_NOTIFICATION_PARAMS_H_
OLDNEW
« no previous file with comments | « content/public/common/platform_notification_data.cc ('k') | content/public/common/show_desktop_notification_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698