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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « extensions/renderer/resources/web_view_events.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This module implements experimental API for <webview>.
6 // See web_view.js for details.
7 //
8 // <webview> Experimental API is only available on canary and dev channels of
9 // Chrome.
10
11 var WebViewInternal = require('webView').WebViewInternal;
12
13 WebViewInternal.prototype.maybeGetExperimentalEvents = function() {
14 return {};
15 };
16
17 /** @private */
18 WebViewInternal.prototype.maybeGetExperimentalPermissions = function() {
19 return [];
20 };
21
22 /** @private */
23 WebViewInternal.prototype.captureVisibleRegion = function(spec, callback) {
24 WebView.captureVisibleRegion(this.guestInstanceId, spec, callback);
25 };
26
27 WebViewInternal.maybeRegisterExperimentalAPIs = function(proto) {
28 proto.captureVisibleRegion = function(spec, callback) {
29 privates(this).internal.captureVisibleRegion(spec, callback);
30 };
31 };
OLDNEW
« 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