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

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

Issue 1267673003: Plumb Blink notification actions to button UI on desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698