| 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 the attributes of the <webview> tag. | 5 // This module implements the attributes of the <webview> tag. |
| 6 | 6 |
| 7 var GuestViewInternal = | 7 var GuestViewInternal = |
| 8 require('binding').Binding.create('guestViewInternal').generate(); | 8 require('binding').Binding.create('guestViewInternal').generate(); |
| 9 var WebViewImpl = require('webView').WebViewImpl; | 9 var WebViewImpl = require('webView').WebViewImpl; |
| 10 var WebViewConstants = require('webViewConstants').WebViewConstants; | 10 var WebViewConstants = require('webViewConstants').WebViewConstants; |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 334 |
| 335 var autosizeAttributes = [WebViewConstants.ATTRIBUTE_MAXHEIGHT, | 335 var autosizeAttributes = [WebViewConstants.ATTRIBUTE_MAXHEIGHT, |
| 336 WebViewConstants.ATTRIBUTE_MAXWIDTH, | 336 WebViewConstants.ATTRIBUTE_MAXWIDTH, |
| 337 WebViewConstants.ATTRIBUTE_MINHEIGHT, | 337 WebViewConstants.ATTRIBUTE_MINHEIGHT, |
| 338 WebViewConstants.ATTRIBUTE_MINWIDTH]; | 338 WebViewConstants.ATTRIBUTE_MINWIDTH]; |
| 339 for (var i = 0; autosizeAttributes[i]; ++i) { | 339 for (var i = 0; autosizeAttributes[i]; ++i) { |
| 340 this.attributes[autosizeAttributes[i]] = | 340 this.attributes[autosizeAttributes[i]] = |
| 341 new AutosizeDimensionAttribute(autosizeAttributes[i], this); | 341 new AutosizeDimensionAttribute(autosizeAttributes[i], this); |
| 342 } | 342 } |
| 343 }; | 343 }; |
| OLD | NEW |