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

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

Issue 1869823002: Don't try to dllexport an enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_
6 #define CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ 6 #define CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/strings/nullable_string16.h" 13 #include "base/strings/nullable_string16.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 enum CONTENT_EXPORT PlatformNotificationActionType { 21 enum PlatformNotificationActionType {
22 PLATFORM_NOTIFICATION_ACTION_TYPE_BUTTON = 0, 22 PLATFORM_NOTIFICATION_ACTION_TYPE_BUTTON = 0,
23 PLATFORM_NOTIFICATION_ACTION_TYPE_TEXT, 23 PLATFORM_NOTIFICATION_ACTION_TYPE_TEXT,
24 }; 24 };
25 25
26 // A notification action (button or text input); corresponds to Blink 26 // A notification action (button or text input); corresponds to Blink
27 // WebNotificationAction. 27 // WebNotificationAction.
28 struct CONTENT_EXPORT PlatformNotificationAction { 28 struct CONTENT_EXPORT PlatformNotificationAction {
29 PlatformNotificationAction(); 29 PlatformNotificationAction();
30 ~PlatformNotificationAction(); 30 ~PlatformNotificationAction();
31 31
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. 112 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes.
113 std::vector<char> data; 113 std::vector<char> data;
114 114
115 // Actions that should be shown as buttons on the notification. 115 // Actions that should be shown as buttons on the notification.
116 std::vector<PlatformNotificationAction> actions; 116 std::vector<PlatformNotificationAction> actions;
117 }; 117 };
118 118
119 } // namespace content 119 } // namespace content
120 120
121 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ 121 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698