| Index: extensions/renderer/resources/guest_view/web_view_constants.js
|
| diff --git a/extensions/renderer/resources/guest_view/web_view_constants.js b/extensions/renderer/resources/guest_view/web_view_constants.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dd902aae232f494d58946d09e4d35b28523351f9
|
| --- /dev/null
|
| +++ b/extensions/renderer/resources/guest_view/web_view_constants.js
|
| @@ -0,0 +1,29 @@
|
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// This module contains constants used in webview.
|
| +
|
| +// Container for the webview constants.
|
| +var WebViewConstants = {
|
| + // Attributes.
|
| + ATTRIBUTE_ALLOWTRANSPARENCY: 'allowtransparency',
|
| + ATTRIBUTE_AUTOSIZE: 'autosize',
|
| + ATTRIBUTE_MAXHEIGHT: 'maxheight',
|
| + ATTRIBUTE_MAXWIDTH: 'maxwidth',
|
| + ATTRIBUTE_MINHEIGHT: 'minheight',
|
| + ATTRIBUTE_MINWIDTH: 'minwidth',
|
| + ATTRIBUTE_PARTITION: 'partition',
|
| +
|
| + // Error messages.
|
| + ERROR_MSG_ALREADY_NAVIGATED:
|
| + 'The object has already navigated, so its partition cannot be changed.',
|
| + ERROR_MSG_CANNOT_INJECT_SCRIPT: '<webview>: ' +
|
| + 'Script cannot be injected into content until the page has loaded.',
|
| + ERROR_MSG_CONTENTWINDOW_NOT_AVAILABLE: '<webview>: ' +
|
| + 'contentWindow is not available at this time. It will become available ' +
|
| + 'when the page has finished loading.',
|
| + ERROR_MSG_INVALID_PARTITION_ATTRIBUTE: 'Invalid partition attribute.'
|
| +};
|
| +
|
| +exports.WebViewConstants = WebViewConstants;
|
|
|