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 /** @const */ var DictionaryWordsList = | 6 /** @const */ var DictionaryWordsList = |
7 options.dictionary_words.DictionaryWordsList; | 7 options.dictionary_words.DictionaryWordsList; |
8 /** @const */ var OptionsPage = options.OptionsPage; | 8 /** @const */ var OptionsPage = options.OptionsPage; |
9 | 9 |
10 /** | 10 /** |
(...skipping 26 matching lines...) Expand all Loading... |
37 */ | 37 */ |
38 searchField_: null, | 38 searchField_: null, |
39 | 39 |
40 /** | 40 /** |
41 * The paragraph of text that indicates that search returned no results. | 41 * The paragraph of text that indicates that search returned no results. |
42 * @type {HTMLElement} | 42 * @type {HTMLElement} |
43 * @private | 43 * @private |
44 */ | 44 */ |
45 noMatchesLabel_: null, | 45 noMatchesLabel_: null, |
46 | 46 |
47 /** | 47 /** @override */ |
48 * Initializes the edit dictionary overlay. | |
49 * @override | |
50 */ | |
51 initializePage: function() { | 48 initializePage: function() { |
52 OptionsPage.prototype.initializePage.call(this); | 49 OptionsPage.prototype.initializePage.call(this); |
53 | 50 |
54 this.wordList_ = $('language-dictionary-overlay-word-list'); | 51 this.wordList_ = $('language-dictionary-overlay-word-list'); |
55 DictionaryWordsList.decorate(this.wordList_); | 52 DictionaryWordsList.decorate(this.wordList_); |
56 this.wordList_.onWordListChanged = function() { | 53 this.wordList_.onWordListChanged = function() { |
57 this.onWordListChanged_(); | 54 this.onWordListChanged_(); |
58 }.bind(this); | 55 }.bind(this); |
59 | 56 |
60 this.searchField_ = $('language-dictionary-overlay-search-field'); | 57 this.searchField_ = $('language-dictionary-overlay-search-field'); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 }; | 106 }; |
110 | 107 |
111 EditDictionaryOverlay.getWordListForTesting = function() { | 108 EditDictionaryOverlay.getWordListForTesting = function() { |
112 return EditDictionaryOverlay.getInstance().wordList_; | 109 return EditDictionaryOverlay.getInstance().wordList_; |
113 }; | 110 }; |
114 | 111 |
115 return { | 112 return { |
116 EditDictionaryOverlay: EditDictionaryOverlay | 113 EditDictionaryOverlay: EditDictionaryOverlay |
117 }; | 114 }; |
118 }); | 115 }); |
OLD | NEW |