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

Unified Diff: extensions/renderer/resources/guest_view/web_view_constants.js

Issue 661743005: Moved constants out of web_view.js and into a new file, web_view_constants.js, so that the constant… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/resources/guest_view/web_view.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « extensions/renderer/resources/guest_view/web_view.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698