Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: chrome/browser/resources/settings/languages_page/edit_dictionary_page.js

Issue 2792463002: [MD settings] set scroll target for custom word spellings subpage (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/settings/languages_page/edit_dictionary_page.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/languages_page/edit_dictionary_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698