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('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 * AlertOverlay class | 10 * AlertOverlay class |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 alertOverlay.okCallback = okCallback; | 134 alertOverlay.okCallback = okCallback; |
135 alertOverlay.cancelCallback = cancelCallback; | 135 alertOverlay.cancelCallback = cancelCallback; |
136 alertOverlay.canShow_ = true; | 136 alertOverlay.canShow_ = true; |
137 | 137 |
138 // Intentionally don't show the URL in the location bar as we don't want | 138 // Intentionally don't show the URL in the location bar as we don't want |
139 // people trying to navigate here by hand. | 139 // people trying to navigate here by hand. |
140 PageManager.showPageByName('alertOverlay', false); | 140 PageManager.showPageByName('alertOverlay', false); |
141 }; | 141 }; |
142 | 142 |
143 // Export | 143 // Export |
144 return { | 144 return {AlertOverlay: AlertOverlay}; |
145 AlertOverlay: AlertOverlay | |
146 }; | |
147 }); | 145 }); |
OLD | NEW |