| 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * AppLauncher is an interface that allows the client code to launch and close | 7 * AppLauncher is an interface that allows the client code to launch and close |
| 8 * the app without knowing the implementation difference between a v1 app and | 8 * the app without knowing the implementation difference between a v1 app and |
| 9 * a v2 app. | 9 * a v2 app. |
| 10 * | 10 * |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 base.debug.assert(Number.isInteger(appWindow.id), | 165 base.debug.assert(Number.isInteger(appWindow.id), |
| 166 "Window Id should be an integer"); | 166 "Window Id should be an integer"); |
| 167 var id = parseInt(appWindow.id, 10); | 167 var id = parseInt(appWindow.id, 10); |
| 168 if (lastId <= id) { | 168 if (lastId <= id) { |
| 169 lastId = id; | 169 lastId = id; |
| 170 } | 170 } |
| 171 }); | 171 }); |
| 172 return ++lastId; | 172 return ++lastId; |
| 173 } | 173 } |
| 174 | 174 |
| 175 })(); | 175 })(); |
| OLD | NEW |