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

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

Issue 654043002: Created "guest_view/" directory to contain all the guestview files (like web_view* and app_view*) i… (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
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;
-};
« no previous file with comments | « extensions/renderer/resources/web_view_events.js ('k') | extensions/renderer/resources/web_view_internal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698