| 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 DocumentNatives = requireNative('document_natives'); | 5 var DocumentNatives = requireNative('document_natives'); |
| 6 var GuestView = require('guestView').GuestView; | |
| 7 var GuestViewContainer = require('guestViewContainer').GuestViewContainer; | 6 var GuestViewContainer = require('guestViewContainer').GuestViewContainer; |
| 8 var IdGenerator = requireNative('id_generator'); | 7 var IdGenerator = requireNative('id_generator'); |
| 9 | 8 |
| 10 function AppViewImpl(appviewElement) { | 9 function AppViewImpl(appviewElement) { |
| 11 GuestViewContainer.call(this, appviewElement, 'appview'); | 10 GuestViewContainer.call(this, appviewElement, 'appview'); |
| 12 | 11 |
| 13 this.app = ''; | 12 this.app = ''; |
| 14 this.data = ''; | 13 this.data = ''; |
| 15 } | 14 } |
| 16 | 15 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 return; | 71 return; |
| 73 } | 72 } |
| 74 this.attachWindow(); | 73 this.attachWindow(); |
| 75 if (callback) { | 74 if (callback) { |
| 76 callback(true); | 75 callback(true); |
| 77 } | 76 } |
| 78 }.bind(this)); | 77 }.bind(this)); |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 GuestViewContainer.registerElement(AppViewImpl); | 80 GuestViewContainer.registerElement(AppViewImpl); |
| OLD | NEW |