blob: 91a29fc24b8b028dba1e629d945a623e7454ad83 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/common/content_export.h"
#include "googleurl/src/gurl.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
namespace content {
// Parameters used when showing an HTML5 notification.
struct CONTENT_EXPORT ShowDesktopNotificationHostMsgParams {
// URL which is the origin that created this notification.
GURL origin;
// True if this is HTML
bool is_html;
// URL which contains the HTML contents (if is_html is true), otherwise empty.
GURL contents_url;
// Contents of the notification if is_html is false.
GURL icon_url;
string16 title;
string16 body;
// Directionality of the notification.
WebKit::WebTextDirection direction;
// ReplaceID if this notification should replace an existing one; may be
// empty if no replacement is called for.
string16 replace_id;
// Notification ID for sending events back for this notification.
int notification_id;
} // namespace content