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

Side by Side Diff: chrome/browser/resources/options/language_add_language_overlay.js

Issue 543493002: Compile chrome://settings, part 2: reduce from 950 to 400 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@F_settings
Patch Set: rebase? rebase! Created 6 years, 3 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 (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 /////////////////////////////////////////////////////////////////////////////// 5 ///////////////////////////////////////////////////////////////////////////////
6 // AddLanguageOverlay class: 6 // AddLanguageOverlay class:
7 7
8 cr.define('options', function() { 8 cr.define('options', function() {
9 /** @const */ var Page = cr.ui.pageManager.Page; 9 /** @const */ var Page = cr.ui.pageManager.Page;
10 /** @const */ var PageManager = cr.ui.pageManager.PageManager; 10 /** @const */ var PageManager = cr.ui.pageManager.PageManager;
11 11
12 /** 12 /**
13 * Encapsulated handling of ChromeOS add language overlay page. 13 * Encapsulated handling of ChromeOS add language overlay page.
14 * @constructor 14 * @constructor
15 * @extends {cr.ui.pageManager.Page}
15 */ 16 */
16 function AddLanguageOverlay() { 17 function AddLanguageOverlay() {
17 Page.call(this, 'addLanguage', 18 Page.call(this, 'addLanguage',
18 loadTimeData.getString('addButton'), 19 loadTimeData.getString('addButton'),
19 'add-language-overlay-page'); 20 'add-language-overlay-page');
20 } 21 }
21 22
22 cr.addSingletonGetter(AddLanguageOverlay); 23 cr.addSingletonGetter(AddLanguageOverlay);
23 24
24 AddLanguageOverlay.prototype = { 25 AddLanguageOverlay.prototype = {
(...skipping 24 matching lines...) Expand all
49 option.textContent = displayText; 50 option.textContent = displayText;
50 addLanguageList.appendChild(option); 51 addLanguageList.appendChild(option);
51 } 52 }
52 }, 53 },
53 }; 54 };
54 55
55 return { 56 return {
56 AddLanguageOverlay: AddLanguageOverlay 57 AddLanguageOverlay: AddLanguageOverlay
57 }; 58 };
58 }); 59 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698