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

Side by Side Diff: extensions/renderer/resources/guest_view/web_view.js

Issue 718203005: Implement declarative content script API for <webview> [js part]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated. Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This module implements WebView (<webview>) as a custom element that wraps a 5 // This module implements WebView (<webview>) as a custom element that wraps a
6 // BrowserPlugin object element. The object element is hidden within 6 // BrowserPlugin object element. The object element is hidden within
7 // the shadow DOM of the WebView element. 7 // the shadow DOM of the WebView element.
8 8
9 var DocumentNatives = requireNative('document_natives'); 9 var DocumentNatives = requireNative('document_natives');
10 var GuestView = require('guestView').GuestView; 10 var GuestView = require('guestView').GuestView;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 $Function.apply(func, null, args); 259 $Function.apply(func, null, args);
260 return true; 260 return true;
261 } 261 }
262 262
263 // Implemented when the ChromeWebView API is available. 263 // Implemented when the ChromeWebView API is available.
264 WebViewImpl.prototype.maybeGetChromeWebViewEvents = function() {}; 264 WebViewImpl.prototype.maybeGetChromeWebViewEvents = function() {};
265 265
266 // Implemented when the experimental WebView API is available. 266 // Implemented when the experimental WebView API is available.
267 WebViewImpl.maybeGetExperimentalApiMethods = function() { return []; }; 267 WebViewImpl.maybeGetExperimentalApiMethods = function() { return []; };
268 WebViewImpl.prototype.setupExperimentalContextMenus = function() {}; 268 WebViewImpl.prototype.setupExperimentalContextMenus = function() {};
269 WebViewImpl.prototype.maybeSetupExperimentalChromeWebViewEvents =
270 function(request) {
271 return request;
272 };
269 273
270 GuestViewContainer.registerElement(WebViewImpl); 274 GuestViewContainer.registerElement(WebViewImpl);
271 275
272 // Exports. 276 // Exports.
273 exports.WebViewImpl = WebViewImpl; 277 exports.WebViewImpl = WebViewImpl;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698