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

Unified Diff: extensions/renderer/resources/web_view_experimental.js

Issue 564913003: Moving web_view.js to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/web_view_events.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/web_view_experimental.js
diff --git a/extensions/renderer/resources/web_view_experimental.js b/extensions/renderer/resources/web_view_experimental.js
new file mode 100644
index 0000000000000000000000000000000000000000..c1246aecddaea2ff257f27d3655b00d60b7ea734
--- /dev/null
+++ b/extensions/renderer/resources/web_view_experimental.js
@@ -0,0 +1,31 @@
+// Copyright 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 implements experimental API for <webview>.
+// See web_view.js for details.
+//
+// <webview> Experimental API is only available on canary and dev channels of
+// Chrome.
+
+var WebViewInternal = require('webView').WebViewInternal;
+
+WebViewInternal.prototype.maybeGetExperimentalEvents = function() {
+ return {};
+};
+
+/** @private */
+WebViewInternal.prototype.maybeGetExperimentalPermissions = function() {
+ return [];
+};
+
+/** @private */
+WebViewInternal.prototype.captureVisibleRegion = function(spec, callback) {
+ WebView.captureVisibleRegion(this.guestInstanceId, spec, callback);
+};
+
+WebViewInternal.maybeRegisterExperimentalAPIs = function(proto) {
+ proto.captureVisibleRegion = function(spec, callback) {
+ privates(this).internal.captureVisibleRegion(spec, callback);
+ };
+};
« no previous file with comments | « extensions/renderer/resources/web_view_events.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698