OLD | NEW |
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 #include "content/child/notifications/notification_data_conversions.h" | 5 #include "content/child/notifications/notification_data_conversions.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
8 #include "third_party/WebKit/public/platform/WebString.h" | 10 #include "third_party/WebKit/public/platform/WebString.h" |
9 #include "third_party/WebKit/public/platform/WebURL.h" | 11 #include "third_party/WebKit/public/platform/WebURL.h" |
10 #include "third_party/WebKit/public/platform/WebVector.h" | 12 #include "third_party/WebKit/public/platform/WebVector.h" |
11 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati
onAction.h" | 13 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati
onAction.h" |
12 | 14 |
13 using blink::WebNotificationData; | 15 using blink::WebNotificationData; |
14 | 16 |
15 namespace content { | 17 namespace content { |
16 | 18 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 for (size_t i = 0; i < platform_data.actions.size(); ++i) { | 85 for (size_t i = 0; i < platform_data.actions.size(); ++i) { |
84 web_data.actions[i].action = | 86 web_data.actions[i].action = |
85 blink::WebString::fromUTF8(platform_data.actions[i].action); | 87 blink::WebString::fromUTF8(platform_data.actions[i].action); |
86 web_data.actions[i].title = platform_data.actions[i].title; | 88 web_data.actions[i].title = platform_data.actions[i].title; |
87 } | 89 } |
88 | 90 |
89 return web_data; | 91 return web_data; |
90 } | 92 } |
91 | 93 |
92 } // namespace content | 94 } // namespace content |
OLD | NEW |