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

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

Issue 1644573002: Notification actions may have an icon url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "public/platform/WebURL.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 // Structure representing the data associated with a Web Notification action. 13 // Structure representing the data associated with a Web Notification action.
13 struct WebNotificationAction { 14 struct WebNotificationAction {
14 // Empty and copy constructor only for WebVector.
15 WebNotificationAction() = default;
16 WebNotificationAction(const WebNotificationAction&) = default;
17
18 WebNotificationAction(const WebString& action, const WebString& title)
19 : action(action)
20 , title(title)
21 {
22 }
23
24 WebString action; 15 WebString action;
25 WebString title; 16 WebString title;
17 WebURL icon;
26 }; 18 };
27 19
28 } // namespace blink 20 } // namespace blink
29 21
30 #endif // WebNotificationAction_h 22 #endif // WebNotificationAction_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698