| 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 // Shim that simulates a <webview> tag via Mutation Observers. | 5 // Shim that simulates a <webview> tag via Mutation Observers. |
| 6 // | 6 // |
| 7 // The actual tag is implemented via the browser plugin. The internals of this | 7 // The actual tag is implemented via the browser plugin. The internals of this |
| 8 // are hidden via Shadow DOM. | 8 // are hidden via Shadow DOM. |
| 9 | 9 |
| 10 var watchForTag = require("tagWatcher").watchForTag; | 10 var watchForTag = require('tagWatcher').watchForTag; |
| 11 |
| 12 var chrome = requireNative('chrome').GetChrome(); |
| 11 | 13 |
| 12 var WEB_VIEW_ATTRIBUTES = ['name', 'src', 'partition', 'autosize', 'minheight', | 14 var WEB_VIEW_ATTRIBUTES = ['name', 'src', 'partition', 'autosize', 'minheight', |
| 13 'minwidth', 'maxheight', 'maxwidth']; | 15 'minwidth', 'maxheight', 'maxwidth']; |
| 14 | 16 |
| 15 // All exposed api methods for <webview>, these are forwarded to the browser | 17 // All exposed api methods for <webview>, these are forwarded to the browser |
| 16 // plugin. | 18 // plugin. |
| 17 var WEB_VIEW_API_METHODS = [ | 19 var WEB_VIEW_API_METHODS = [ |
| 18 'back', | 20 'back', |
| 19 'canGoBack', | 21 'canGoBack', |
| 20 'canGoForward', | 22 'canGoForward', |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 */ | 188 */ |
| 187 WebView.prototype.maybeSetupPermissionEvent_ = function() {}; | 189 WebView.prototype.maybeSetupPermissionEvent_ = function() {}; |
| 188 | 190 |
| 189 /** | 191 /** |
| 190 * Implemented when experimental permission is available. | 192 * Implemented when experimental permission is available. |
| 191 * @private | 193 * @private |
| 192 */ | 194 */ |
| 193 WebView.prototype.maybeSetupExecuteScript_ = function() {}; | 195 WebView.prototype.maybeSetupExecuteScript_ = function() {}; |
| 194 | 196 |
| 195 exports.WebView = WebView; | 197 exports.WebView = WebView; |
| OLD | NEW |