Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 // This module contains constants used in webview. | 5 // This module contains constants used in webview. |
| 6 | 6 |
| 7 // Container for the webview constants. | 7 // Container for the webview constants. |
| 8 var WebViewConstants = { | 8 var WebViewConstants = { |
| 9 // Attributes. | 9 // Attributes. |
| 10 ATTRIBUTE_ALLOWTRANSPARENCY: 'allowtransparency', | 10 ATTRIBUTE_ALLOWTRANSPARENCY: 'allowtransparency', |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 33 ERROR_MSG_PERMISSION_ACTION_ALREADY_TAKEN: '<webview>: ' + | 33 ERROR_MSG_PERMISSION_ACTION_ALREADY_TAKEN: '<webview>: ' + |
| 34 'Permission has already been decided for this "permissionrequest" event.', | 34 'Permission has already been decided for this "permissionrequest" event.', |
| 35 ERROR_MSG_INVALID_PARTITION_ATTRIBUTE: '<webview>: ' + | 35 ERROR_MSG_INVALID_PARTITION_ATTRIBUTE: '<webview>: ' + |
| 36 'Invalid partition attribute.', | 36 'Invalid partition attribute.', |
| 37 WARNING_MSG_DIALOG_REQUEST_BLOCKED: '<webview>: %1 %2 dialog was blocked.', | 37 WARNING_MSG_DIALOG_REQUEST_BLOCKED: '<webview>: %1 %2 dialog was blocked.', |
| 38 WARNING_MSG_NEWWINDOW_REQUEST_BLOCKED: '<webview>: A new window was blocked.', | 38 WARNING_MSG_NEWWINDOW_REQUEST_BLOCKED: '<webview>: A new window was blocked.', |
| 39 WARNING_MSG_PERMISSION_REQUEST_BLOCKED: '<webview>: ' + | 39 WARNING_MSG_PERMISSION_REQUEST_BLOCKED: '<webview>: ' + |
| 40 'The permission request for "%1" has been denied.' | 40 'The permission request for "%1" has been denied.' |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 Object.freeze(WebViewConstants); | |
|
Fady Samuel
2015/03/20 15:57:27
nit: $Object
paulmeyer
2015/03/20 16:16:15
Actually, $Object.freeze doesn't exist. I tried th
| |
| 44 | |
| 43 exports.WebViewConstants = WebViewConstants; | 45 exports.WebViewConstants = WebViewConstants; |
|
Fady Samuel
2015/03/20 15:57:27
You can save a couple of lines of code:
exports.W
paulmeyer
2015/03/20 16:16:15
Done.
| |
| OLD | NEW |