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

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

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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-add-languages-dialog' is a dialog for enabling 6 * @fileoverview 'settings-add-languages-dialog' is a dialog for enabling
7 * languages. 7 * languages.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-add-languages-dialog', 10 is: 'settings-add-languages-dialog',
11 11
12 properties: { 12 properties: {
13 /** @type {!LanguagesModel|undefined} */ 13 /** @type {!LanguagesModel|undefined} */
14 languages: { 14 languages: {
15 type: Object, 15 type: Object,
16 notify: true, 16 notify: true,
17 }, 17 },
18 18
19 /** @type {!LanguageHelper} */ 19 /** @type {!LanguageHelper} */
20 languageHelper: Object, 20 languageHelper: Object,
21 21
22 /** @private {!Set<string>} */ 22 /** @private {!Set<string>} */
23 languagesToAdd_: { 23 languagesToAdd_: {
24 type: Object, 24 type: Object,
25 value: function() { return new Set(); }, 25 value: function() {
26 return new Set();
27 },
26 }, 28 },
27 29
28 /** @private */ 30 /** @private */
29 disableActionButton_: { 31 disableActionButton_: {
30 type: Boolean, 32 type: Boolean,
31 value: true, 33 value: true,
32 }, 34 },
33 }, 35 },
34 36
35 attached: function() { 37 attached: function() {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 /** 109 /**
108 * Enables the checked languages. 110 * Enables the checked languages.
109 * @private 111 * @private
110 */ 112 */
111 onActionButtonTap_: function() { 113 onActionButtonTap_: function() {
112 this.$.dialog.close(); 114 this.$.dialog.close();
113 for (var languageCode of this.languagesToAdd_) 115 for (var languageCode of this.languagesToAdd_)
114 this.languageHelper.enableLanguage(languageCode); 116 this.languageHelper.enableLanguage(languageCode);
115 }, 117 },
116 }); 118 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698