| 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 OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
| 7 var ArrayDataModel = cr.ui.ArrayDataModel; | 7 var ArrayDataModel = cr.ui.ArrayDataModel; |
| 8 var DictionaryWordsList = options.dictionary_words.DictionaryWordsList; | 8 var DictionaryWordsList = options.dictionary_words.DictionaryWordsList; |
| 9 | 9 |
| 10 /** |
| 11 * Adding and removing words in custom spelling dictionary. |
| 12 * @constructor |
| 13 */ |
| 10 function EditDictionaryOverlay() { | 14 function EditDictionaryOverlay() { |
| 11 OptionsPage.call(this, 'editDictionary', | 15 OptionsPage.call(this, 'editDictionary', |
| 12 loadTimeData.getString('languageDictionaryOverlayPage'), | 16 loadTimeData.getString('languageDictionaryOverlayPage'), |
| 13 'language-dictionary-overlay-page'); | 17 'language-dictionary-overlay-page'); |
| 14 } | 18 } |
| 15 | 19 |
| 16 cr.addSingletonGetter(EditDictionaryOverlay); | 20 cr.addSingletonGetter(EditDictionaryOverlay); |
| 17 | 21 |
| 18 EditDictionaryOverlay.prototype = { | 22 EditDictionaryOverlay.prototype = { |
| 19 __proto__: OptionsPage.prototype, | 23 __proto__: OptionsPage.prototype, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 41 }; | 45 }; |
| 42 | 46 |
| 43 EditDictionaryOverlay.setWordList = function(entries) { | 47 EditDictionaryOverlay.setWordList = function(entries) { |
| 44 EditDictionaryOverlay.getInstance().setWordList_(entries); | 48 EditDictionaryOverlay.getInstance().setWordList_(entries); |
| 45 }; | 49 }; |
| 46 | 50 |
| 47 return { | 51 return { |
| 48 EditDictionaryOverlay: EditDictionaryOverlay | 52 EditDictionaryOverlay: EditDictionaryOverlay |
| 49 }; | 53 }; |
| 50 }); | 54 }); |
| OLD | NEW |