Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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_PLATFORM_NOTIFICATION_ACTION_H_ | |
| 6 #define CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_ACTION_H_ | |
| 7 | |
| 8 #include "base/strings/string16.h" | |
| 9 #include "content/common/content_export.h" | |
| 10 | |
| 11 namespace content { | |
| 12 | |
| 13 // Structure representing an action (button) associated with a Web Notification. | |
| 14 // This struct should include the developer-visible information, kept | |
| 15 // synchronized with the WebNotificationAction structure defined in the Blink | |
| 16 // API. | |
| 17 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.
| |
| 18 PlatformNotificationAction(); | |
| 19 ~PlatformNotificationAction(); | |
| 20 | |
| 21 // Action name that the author can use to distinguish them. | |
| 22 std::string action; | |
| 23 | |
| 24 // Title of the button. | |
| 25 base::string16 title; | |
| 26 }; | |
| 27 | |
| 28 } // namespace content | |
| 29 | |
| 30 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_ACTION_H_ | |
| OLD | NEW |