| 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 var ExtensionOptionsEvents = | 5 var ExtensionOptionsEvents = |
| 6 require('extensionOptionsEvents').ExtensionOptionsEvents; | 6 require('extensionOptionsEvents').ExtensionOptionsEvents; |
| 7 var GuestView = require('guestView').GuestView; | 7 var GuestView = require('guestView').GuestView; |
| 8 var GuestViewContainer = require('guestViewContainer').GuestViewContainer; | 8 var GuestViewContainer = require('guestViewContainer').GuestViewContainer; |
| 9 | 9 |
| 10 function ExtensionOptionsImpl(extensionoptionsElement) { | 10 function ExtensionOptionsImpl(extensionoptionsElement) { |
| 11 GuestViewContainer.call(this, extensionoptionsElement, 'extensionoptions'); | 11 GuestViewContainer.call(this, extensionoptionsElement, 'extensionoptions'); |
| 12 this.autosizeDeferred = false; | |
| 13 | 12 |
| 14 new ExtensionOptionsEvents(this); | 13 new ExtensionOptionsEvents(this); |
| 15 this.setupElementProperties(); | 14 this.setupElementProperties(); |
| 16 }; | 15 }; |
| 17 | 16 |
| 18 ExtensionOptionsImpl.prototype.__proto__ = GuestViewContainer.prototype; | 17 ExtensionOptionsImpl.prototype.__proto__ = GuestViewContainer.prototype; |
| 19 | 18 |
| 20 ExtensionOptionsImpl.VIEW_TYPE = 'ExtensionOptions'; | 19 ExtensionOptionsImpl.VIEW_TYPE = 'ExtensionOptions'; |
| 21 | 20 |
| 22 ExtensionOptionsImpl.prototype.onElementAttached = function() { | 21 ExtensionOptionsImpl.prototype.onElementAttached = function() { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 return this.element.getAttribute('extension'); | 69 return this.element.getAttribute('extension'); |
| 71 }.bind(this), | 70 }.bind(this), |
| 72 set: function(value) { | 71 set: function(value) { |
| 73 this.element.setAttribute('extension', value); | 72 this.element.setAttribute('extension', value); |
| 74 }.bind(this), | 73 }.bind(this), |
| 75 enumerable: true | 74 enumerable: true |
| 76 }); | 75 }); |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 GuestViewContainer.registerElement(ExtensionOptionsImpl); | 78 GuestViewContainer.registerElement(ExtensionOptionsImpl); |
| OLD | NEW |