| OLD | NEW | 
|   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 "third_party/skia/include/core/SkBitmap.h" | 
|  11 #include "url/gurl.h" |  11 #include "url/gurl.h" | 
|  12  |  12  | 
|  13 namespace content { |  13 namespace content { | 
|  14  |  14  | 
|  15 // Parameters used when showing an HTML5 notification. |  15 // Parameters used when showing an HTML5 notification. | 
 |  16 // TODO(peter): Rename this to PlatformNotificationData. | 
|  16 struct CONTENT_EXPORT ShowDesktopNotificationHostMsgParams { |  17 struct CONTENT_EXPORT ShowDesktopNotificationHostMsgParams { | 
|  17   ShowDesktopNotificationHostMsgParams(); |  18   ShowDesktopNotificationHostMsgParams(); | 
|  18   ~ShowDesktopNotificationHostMsgParams(); |  19   ~ShowDesktopNotificationHostMsgParams(); | 
|  19  |  20  | 
|  20   // URL which is the origin that created this notification. |  21   // URL which is the origin that created this notification. | 
|  21   GURL origin; |  22   GURL origin; | 
|  22  |  23  | 
|  23   // Image to be displayed as part of the notification. |  24   // Image to be displayed as part of the notification. | 
|  24   SkBitmap icon; |  25   SkBitmap icon; | 
|  25  |  26  | 
|  26   base::string16 title; |  27   base::string16 title; | 
|  27   base::string16 body; |  28   base::string16 body; | 
|  28  |  29  | 
|  29   // Directionality of the notification. |  30   // Directionality of the notification. | 
|  30   blink::WebTextDirection direction; |  31   blink::WebTextDirection direction; | 
|  31  |  32  | 
|  32   // ReplaceID if this notification should replace an existing one; may be |  33   // ReplaceID if this notification should replace an existing one; may be | 
|  33   // empty if no replacement is called for. |  34   // empty if no replacement is called for. | 
|  34   base::string16 replace_id; |  35   base::string16 replace_id; | 
|  35 }; |  36 }; | 
|  36  |  37  | 
|  37 }  // namespace content |  38 }  // namespace content | 
|  38  |  39  | 
|  39 #endif  // CONTENT_PUBLIC_COMMON_SHOW_DESKTOP_NOTIFICATION_PARAMS_H_ |  40 #endif  // CONTENT_PUBLIC_COMMON_SHOW_DESKTOP_NOTIFICATION_PARAMS_H_ | 
| OLD | NEW |