| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of chrome; | 5 part of chrome; |
| 6 | 6 |
| 7 // chrome.app | 7 // chrome.app |
| 8 class API_ChromeApp { | 8 class API_ChromeApp { |
| 9 /* | 9 /* |
| 10 * JS Variable | 10 * JS Variable |
| 11 */ | 11 */ |
| 12 Object _jsObject; | 12 final Object _jsObject; |
| 13 | 13 |
| 14 /* | 14 /* |
| 15 * Members | 15 * Members |
| 16 */ | 16 */ |
| 17 API_app_window window; | 17 API_app_window window; |
| 18 API_app_runtime runtime; | 18 API_app_runtime runtime; |
| 19 | 19 |
| 20 /* | 20 /* |
| 21 * Constructor | 21 * Constructor |
| 22 */ | 22 */ |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 var app_object = JS('', '#.app', this._jsObject); | 56 var app_object = JS('', '#.app', this._jsObject); |
| 57 if (app_object == null) | 57 if (app_object == null) |
| 58 throw new UnsupportedError('Not supported by current browser.'); | 58 throw new UnsupportedError('Not supported by current browser.'); |
| 59 app = new API_ChromeApp(app_object); | 59 app = new API_ChromeApp(app_object); |
| 60 } | 60 } |
| 61 } | 61 } |
| 62 | 62 |
| 63 // The final chrome objects | 63 // The final chrome objects |
| 64 final API_Chrome chrome = new API_Chrome(); | 64 final API_Chrome chrome = new API_Chrome(); |
| OLD | NEW |