Chromium Code Reviews| Index: content/public/common/platform_notification_action.h |
| diff --git a/content/public/common/platform_notification_action.h b/content/public/common/platform_notification_action.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b590ef404989c2caf6e5604571be0921e1c8001a |
| --- /dev/null |
| +++ b/content/public/common/platform_notification_action.h |
| @@ -0,0 +1,30 @@ |
| +// Copyright 2015 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. |
| + |
| +#ifndef CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_ACTION_H_ |
| +#define CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_ACTION_H_ |
| + |
| +#include "base/strings/string16.h" |
| +#include "content/common/content_export.h" |
| + |
| +namespace content { |
| + |
| +// Structure representing an action (button) associated with a Web Notification. |
| +// This struct should include the developer-visible information, kept |
| +// synchronized with the WebNotificationAction structure defined in the Blink |
| +// API. |
| +struct CONTENT_EXPORT PlatformNotificationAction { |
|
Peter Beverloo
2015/07/30 17:02:05
This is a very straightforward struct. Could we ju
johnme
2015/07/31 18:21:31
Done.
|
| + PlatformNotificationAction(); |
| + ~PlatformNotificationAction(); |
| + |
| + // Action name that the author can use to distinguish them. |
| + std::string action; |
| + |
| + // Title of the button. |
| + base::string16 title; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_ACTION_H_ |