| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 experimental API for <webview>. | 5 // This module implements experimental API for <webview>. |
| 6 // See web_view.js and web_view_api_methods.js for details. | 6 // See web_view.js and web_view_api_methods.js for details. |
| 7 // | 7 // |
| 8 // <webview> Experimental API is only available on canary and dev channels of | 8 // <webview> Experimental API is only available on canary and dev channels of |
| 9 // Chrome. | 9 // Chrome. |
| 10 | 10 |
| 11 var WebViewImpl = require('webView').WebViewImpl; | 11 var WebViewImpl = require('webView').WebViewImpl; |
| 12 var WebViewInternal = require('webViewInternal').WebViewInternal; | 12 var WebViewInternal = require('webViewInternal').WebViewInternal; |
| 13 | 13 |
| 14 // An array of <webview>'s experimental API methods. See |WEB_VIEW_API_METHODS| | 14 // An array of <webview>'s experimental API methods. See |WEB_VIEW_API_METHODS| |
| 15 // in web_view_api_methods.js for more details. | 15 // in web_view_api_methods.js for more details. |
| 16 var WEB_VIEW_EXPERIMENTAL_API_METHODS = [ | 16 var WEB_VIEW_EXPERIMENTAL_API_METHODS = [ |
| 17 ]; | 17 ]; |
| 18 | 18 |
| 19 // Registers the experimantal WebVIew API when available. | 19 // Registers the experimantal WebVIew API when available. |
| 20 WebViewImpl.maybeGetExperimentalApiMethods = function() { | 20 WebViewImpl.maybeGetExperimentalApiMethods = function() { |
| 21 return WEB_VIEW_EXPERIMENTAL_API_METHODS; | 21 return WEB_VIEW_EXPERIMENTAL_API_METHODS; |
| 22 }; | 22 }; |
| OLD | NEW |