| OLD | NEW |
| 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 #include "modules/notifications/NotificationData.h" | 5 #include "modules/notifications/NotificationData.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "bindings/core/v8/SerializedScriptValue.h" | 8 #include "bindings/core/v8/SerializedScriptValue.h" |
| 9 #include "bindings/core/v8/SerializedScriptValueFactory.h" | 9 #include "bindings/core/v8/SerializedScriptValueFactory.h" |
| 10 #include "core/dom/ExecutionContext.h" | 10 #include "core/dom/ExecutionContext.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 exceptionState.throwTypeError( | 121 exceptionState.throwTypeError( |
| 122 "Notifications of type \"button\" cannot specify a placeholder."); | 122 "Notifications of type \"button\" cannot specify a placeholder."); |
| 123 return WebNotificationData(); | 123 return WebNotificationData(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 webAction.placeholder = action.placeholder(); | 126 webAction.placeholder = action.placeholder(); |
| 127 | 127 |
| 128 if (action.hasIcon() && !action.icon().isEmpty()) | 128 if (action.hasIcon() && !action.icon().isEmpty()) |
| 129 webAction.icon = completeURL(executionContext, action.icon()); | 129 webAction.icon = completeURL(executionContext, action.icon()); |
| 130 | 130 |
| 131 actions.append(webAction); | 131 actions.push_back(webAction); |
| 132 } | 132 } |
| 133 | 133 |
| 134 webData.actions = actions; | 134 webData.actions = actions; |
| 135 | 135 |
| 136 return webData; | 136 return webData; |
| 137 } | 137 } |
| 138 | 138 |
| 139 } // namespace blink | 139 } // namespace blink |
| OLD | NEW |