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 |
deleted file mode 100644 |
index 7d1ffe128c29ae20d0e2deee6b74bc2fcbaf1ad7..0000000000000000000000000000000000000000 |
--- a/extensions/renderer/resources/web_view_experimental.js |
+++ /dev/null |
@@ -1,53 +0,0 @@ |
-// 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; |
-var WebView = require('webViewInternal').WebView; |
- |
-// Returns a map of experimental <webview> DOM event names to their associated |
-// extension event descriptor objects. See |WEB_VIEW_EVENTS| in |
-// web_view_events.js for more information and details on how this map should |
-// be formatted. |
-WebViewInternal.prototype.maybeGetExperimentalEvents = function() { |
- return {}; |
-}; |
- |
-// Captures the visible content within the webview. |
-WebViewInternal.prototype.captureVisibleRegion = function(spec, callback) { |
- WebView.captureVisibleRegion(this.guestInstanceId, spec, callback); |
-}; |
- |
-// Loads a data URL with a specified base URL used for relative links. |
-// Optionally, a virtual URL can be provided to be shown to the user instead |
-// of the data URL. |
-WebViewInternal.prototype.loadDataWithBaseUrl = function( |
- dataUrl, baseUrl, virtualUrl) { |
- if (!this.guestInstanceId) { |
- return; |
- } |
- WebView.loadDataWithBaseUrl( |
- this.guestInstanceId, dataUrl, baseUrl, virtualUrl, function() { |
- // Report any errors. |
- if (chrome.runtime.lastError != undefined) { |
- window.console.error( |
- 'Error while running webview.loadDataWithBaseUrl: ' + |
- chrome.runtime.lastError.message); |
- } |
- }); |
-}; |
- |
-// Registers the experimantal WebVIew API when available. |
-WebViewInternal.maybeGetExperimentalAPIs = function() { |
- var experimentalMethods = [ |
- 'captureVisibleRegion', |
- 'loadDataWithBaseUrl' |
- ]; |
- return experimentalMethods; |
-}; |