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

Side by Side Diff: public/platform/modules/notifications/WebNotificationAction.h

Issue 1263043003: Add NotificationAction.action member (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@actions
Patch Set: Rebase 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 WebNotificationAction_h 5 #ifndef WebNotificationAction_h
6 #define WebNotificationAction_h 6 #define WebNotificationAction_h
7 7
8 #include "public/platform/WebString.h" 8 #include "public/platform/WebString.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 // Structure representing the data associated with a Web Notification action. 12 // Structure representing the data associated with a Web Notification action.
13 struct WebNotificationAction { 13 struct WebNotificationAction {
14 // Empty and copy constructor only for WebVector. 14 // Empty and copy constructor only for WebVector.
15 WebNotificationAction() = default; 15 WebNotificationAction() = default;
16 WebNotificationAction(const WebNotificationAction&) = default; 16 WebNotificationAction(const WebNotificationAction&) = default;
17 17
18 WebNotificationAction(const WebString& title) 18 WebNotificationAction(const WebString& action, const WebString& title)
19 : title(title) 19 : action(action)
20 , title(title)
20 { 21 {
21 } 22 }
22 23
24 WebString action;
23 WebString title; 25 WebString title;
24 }; 26 };
25 27
26 } // namespace blink 28 } // namespace blink
27 29
28 #endif // WebNotificationAction_h 30 #endif // WebNotificationAction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698