| 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 /////////////////////////////////////////////////////////////////////////////// | 5 /////////////////////////////////////////////////////////////////////////////// |
| 6 // AddLanguageOverlay class: | 6 // AddLanguageOverlay class: |
| 7 | 7 |
| 8 cr.define('options', function() { | 8 cr.define('options', function() { |
| 9 /** @const */ var Page = cr.ui.pageManager.Page; | 9 /** @const */ var Page = cr.ui.pageManager.Page; |
| 10 /** @const */ var PageManager = cr.ui.pageManager.PageManager; | 10 /** @const */ var PageManager = cr.ui.pageManager.PageManager; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * Encapsulated handling of ChromeOS add language overlay page. | 13 * Encapsulated handling of ChromeOS add language overlay page. |
| 14 * @constructor | 14 * @constructor |
| 15 * @extends {cr.ui.pageManager.Page} |
| 15 */ | 16 */ |
| 16 function AddLanguageOverlay() { | 17 function AddLanguageOverlay() { |
| 17 Page.call(this, 'addLanguage', | 18 Page.call(this, 'addLanguage', |
| 18 loadTimeData.getString('addButton'), | 19 loadTimeData.getString('addButton'), |
| 19 'add-language-overlay-page'); | 20 'add-language-overlay-page'); |
| 20 } | 21 } |
| 21 | 22 |
| 22 cr.addSingletonGetter(AddLanguageOverlay); | 23 cr.addSingletonGetter(AddLanguageOverlay); |
| 23 | 24 |
| 24 AddLanguageOverlay.prototype = { | 25 AddLanguageOverlay.prototype = { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 49 option.textContent = displayText; | 50 option.textContent = displayText; |
| 50 addLanguageList.appendChild(option); | 51 addLanguageList.appendChild(option); |
| 51 } | 52 } |
| 52 }, | 53 }, |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 return { | 56 return { |
| 56 AddLanguageOverlay: AddLanguageOverlay | 57 AddLanguageOverlay: AddLanguageOverlay |
| 57 }; | 58 }; |
| 58 }); | 59 }); |
| OLD | NEW |