| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 $Function.apply(func, null, args); | 262 $Function.apply(func, null, args); |
| 263 return true; | 263 return true; |
| 264 } | 264 } |
| 265 | 265 |
| 266 // Implemented when the ChromeWebView API is available. | 266 // Implemented when the ChromeWebView API is available. |
| 267 WebViewImpl.prototype.maybeGetChromeWebViewEvents = function() {}; | 267 WebViewImpl.prototype.maybeGetChromeWebViewEvents = function() {}; |
| 268 | 268 |
| 269 // Implemented when the experimental WebView API is available. | 269 // Implemented when the experimental WebView API is available. |
| 270 WebViewImpl.maybeGetExperimentalApiMethods = function() { return []; }; | 270 WebViewImpl.maybeGetExperimentalApiMethods = function() { return []; }; |
| 271 WebViewImpl.prototype.setupExperimentalContextMenus = function() {}; | 271 WebViewImpl.prototype.setupExperimentalContextMenus = function() {}; |
| 272 WebViewImpl.prototype.maybeSetupExperimentalChromeWebViewEvents = |
| 273 function(request) { |
| 274 return request; |
| 275 }; |
| 272 | 276 |
| 273 GuestViewContainer.registerElement(WebViewImpl); | 277 GuestViewContainer.registerElement(WebViewImpl); |
| 274 | 278 |
| 275 // Exports. | 279 // Exports. |
| 276 exports.WebViewImpl = WebViewImpl; | 280 exports.WebViewImpl = WebViewImpl; |
| OLD | NEW |