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

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

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

Powered by Google App Engine
This is Rietveld 408576698