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 }; 32