| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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('options', function() { | 5 cr.define('options', function() { |
| 6 var Page = cr.ui.pageManager.Page; | 6 var Page = cr.ui.pageManager.Page; |
| 7 var PageManager = cr.ui.pageManager.PageManager; | 7 var PageManager = cr.ui.pageManager.PageManager; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * QuickUnlockConfigureOverlay class | 10 * QuickUnlockConfigureOverlay class |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 QuickUnlockConfigureOverlay.prototype = { | 24 QuickUnlockConfigureOverlay.prototype = { |
| 25 __proto__: Page.prototype, | 25 __proto__: Page.prototype, |
| 26 | 26 |
| 27 /** @override */ | 27 /** @override */ |
| 28 initializePage: function() { | 28 initializePage: function() { |
| 29 Page.prototype.initializePage.call(this); | 29 Page.prototype.initializePage.call(this); |
| 30 $('screen-lock-done').onclick = function() { | 30 $('screen-lock-done').onclick = function() { |
| 31 QuickUnlockConfigureOverlay.dismiss(); | 31 QuickUnlockConfigureOverlay.dismiss(); |
| 32 }; | 32 }; |
| 33 requestIdleCallback(this.ensurePolymerIsLoaded_.bind(this)); |
| 33 }, | 34 }, |
| 34 | 35 |
| 35 /** @override */ | 36 /** @override */ |
| 36 didClosePage: function() { | 37 didClosePage: function() { |
| 37 settings.navigateTo(settings.Route.PEOPLE); | 38 settings.navigateTo(settings.Route.PEOPLE); |
| 38 }, | 39 }, |
| 39 | 40 |
| 40 /** @override */ | 41 /** @override */ |
| 41 didShowPage: function() { | 42 didShowPage: function() { |
| 42 this.ensurePolymerIsLoaded_().then(this.onPolymerLoaded_.bind(this)); | 43 this.ensurePolymerIsLoaded_().then(this.onPolymerLoaded_.bind(this)); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 82 |
| 82 QuickUnlockConfigureOverlay.dismiss = function() { | 83 QuickUnlockConfigureOverlay.dismiss = function() { |
| 83 PageManager.closeOverlay(); | 84 PageManager.closeOverlay(); |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 // Export | 87 // Export |
| 87 return { | 88 return { |
| 88 QuickUnlockConfigureOverlay: QuickUnlockConfigureOverlay | 89 QuickUnlockConfigureOverlay: QuickUnlockConfigureOverlay |
| 89 }; | 90 }; |
| 90 }); | 91 }); |
| OLD | NEW |