| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 * @fileoverview 'settings-edit-dictionary-page' is a sub-page for editing | 6 * @fileoverview 'settings-edit-dictionary-page' is a sub-page for editing |
| 7 * the "dictionary" of custom words used for spell check. | 7 * the "dictionary" of custom words used for spell check. |
| 8 */ | 8 */ |
| 9 Polymer({ | 9 Polymer({ |
| 10 is: 'settings-edit-dictionary-page', | 10 is: 'settings-edit-dictionary-page', |
| 11 | 11 |
| 12 behaviors: [settings.GlobalScrollTargetBehavior], |
| 13 |
| 12 properties: { | 14 properties: { |
| 13 /** @private {string} */ | 15 /** @private {string} */ |
| 14 newWordValue_: String, | 16 newWordValue_: String, |
| 15 | 17 |
| 18 /** |
| 19 * Needed by GlobalScrollTargetBehavior. |
| 20 * @override |
| 21 */ |
| 22 subpageRoute: { |
| 23 type: Object, |
| 24 value: settings.Route.EDIT_DICTIONARY, |
| 25 }, |
| 26 |
| 16 /** @private {!Array<string>} */ | 27 /** @private {!Array<string>} */ |
| 17 words_: { | 28 words_: { |
| 18 type: Array, | 29 type: Array, |
| 19 value: function() { return []; }, | 30 value: function() { return []; }, |
| 20 }, | 31 }, |
| 21 }, | 32 }, |
| 22 | 33 |
| 23 /** @type {LanguageSettingsPrivate} */ | 34 /** @type {LanguageSettingsPrivate} */ |
| 24 languageSettingsPrivate: null, | 35 languageSettingsPrivate: null, |
| 25 | 36 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 134 |
| 124 /** | 135 /** |
| 125 * Checks if any words exists in the dictionary. | 136 * Checks if any words exists in the dictionary. |
| 126 * @private | 137 * @private |
| 127 * @return {boolean} | 138 * @return {boolean} |
| 128 */ | 139 */ |
| 129 hasWords_: function() { | 140 hasWords_: function() { |
| 130 return this.words_.length > 0; | 141 return this.words_.length > 0; |
| 131 } | 142 } |
| 132 }); | 143 }); |
| OLD | NEW |