Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 cr.define('mobile', function() { | 5 cr.define('mobile', function() { |
| 6 | 6 |
| 7 function SimUnlock() { | 7 function SimUnlock() { |
| 8 } | 8 } |
| 9 | 9 |
| 10 cr.addSingletonGetter(SimUnlock); | 10 cr.addSingletonGetter(SimUnlock); |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 200 $('new-pin-input').focus(); | 200 $('new-pin-input').focus(); |
| 201 this.updateDialogSize_(0, 18); | 201 this.updateDialogSize_(0, 18); |
| 202 }, | 202 }, |
| 203 | 203 |
| 204 updateSimStatus_: function(simInfo) { | 204 updateSimStatus_: function(simInfo) { |
| 205 this.changeState_(simInfo); | 205 this.changeState_(simInfo); |
| 206 }, | 206 }, |
| 207 }; | 207 }; |
| 208 | 208 |
| 209 SimUnlock.cancel = function() { | 209 SimUnlock.cancel = function() { |
| 210 chrome.send('cancel'); | |
|
stevenjb
2014/07/18 00:29:40
Cancelling doesn't actually change anything or nee
| |
| 211 SimUnlock.close(); | 210 SimUnlock.close(); |
| 212 }; | 211 }; |
| 213 | 212 |
| 214 SimUnlock.close = function() { | 213 SimUnlock.close = function() { |
| 215 window.close(); | 214 window.close(); |
| 216 }; | 215 }; |
| 217 | 216 |
| 218 SimUnlock.initialize = function() { | 217 SimUnlock.initialize = function() { |
| 219 this.initialized_ = true; | 218 this.initialized_ = true; |
| 220 | 219 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 425 }; | 424 }; |
| 426 | 425 |
| 427 // Export | 426 // Export |
| 428 return { | 427 return { |
| 429 SimUnlock: SimUnlock | 428 SimUnlock: SimUnlock |
| 430 }; | 429 }; |
| 431 | 430 |
| 432 }); | 431 }); |
| 433 | 432 |
| 434 disableTextSelectAndDrag(); | 433 disableTextSelectAndDrag(); |
| OLD | NEW |