| OLD | NEW |
| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 $Function.apply(func, null, args); | 224 $Function.apply(func, null, args); |
| 225 return true; | 225 return true; |
| 226 } | 226 } |
| 227 | 227 |
| 228 // Implemented when the ChromeWebView API is available. | 228 // Implemented when the ChromeWebView API is available. |
| 229 WebViewImpl.prototype.maybeGetChromeWebViewEvents = function() {}; | 229 WebViewImpl.prototype.maybeGetChromeWebViewEvents = function() {}; |
| 230 | 230 |
| 231 // Implemented when the experimental WebView API is available. | 231 // Implemented when the experimental WebView API is available. |
| 232 WebViewImpl.maybeGetExperimentalApiMethods = function() { return []; }; | 232 WebViewImpl.maybeGetExperimentalApiMethods = function() { return []; }; |
| 233 WebViewImpl.prototype.setupExperimentalContextMenus = function() {}; | 233 WebViewImpl.prototype.setupExperimentalContextMenus = function() {}; |
| 234 WebViewImpl.prototype.maybeSetupExperimentalChromeWebViewEvents = | |
| 235 function(request) { | |
| 236 return request; | |
| 237 }; | |
| 238 | 234 |
| 239 GuestViewContainer.registerElement(WebViewImpl); | 235 GuestViewContainer.registerElement(WebViewImpl); |
| 240 | 236 |
| 241 // Exports. | 237 // Exports. |
| 242 exports.WebViewImpl = WebViewImpl; | 238 exports.WebViewImpl = WebViewImpl; |
| OLD | NEW |