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

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

Issue 16025007: Refacotring: fix styles of i18n-content names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix Created 7 years, 6 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 OptionsPage = options.OptionsPage; 9 /** @const */ var OptionsPage = options.OptionsPage;
10 10
11 /** 11 /**
12 * Encapsulated handling of ChromeOS add language overlay page. 12 * Encapsulated handling of ChromeOS add language overlay page.
13 * @constructor 13 * @constructor
14 */ 14 */
15 function AddLanguageOverlay() { 15 function AddLanguageOverlay() {
16 OptionsPage.call(this, 'addLanguage', 16 OptionsPage.call(this, 'addLanguage',
17 loadTimeData.getString('add_button'), 17 loadTimeData.getString('addButton'),
18 'add-language-overlay-page'); 18 'add-language-overlay-page');
19 } 19 }
20 20
21 cr.addSingletonGetter(AddLanguageOverlay); 21 cr.addSingletonGetter(AddLanguageOverlay);
22 22
23 AddLanguageOverlay.prototype = { 23 AddLanguageOverlay.prototype = {
24 // Inherit AddLanguageOverlay from OptionsPage. 24 // Inherit AddLanguageOverlay from OptionsPage.
25 __proto__: OptionsPage.prototype, 25 __proto__: OptionsPage.prototype,
26 26
27 /** 27 /**
(...skipping 24 matching lines...) Expand all
52 option.textContent = displayText; 52 option.textContent = displayText;
53 addLanguageList.appendChild(option); 53 addLanguageList.appendChild(option);
54 } 54 }
55 }, 55 },
56 }; 56 };
57 57
58 return { 58 return {
59 AddLanguageOverlay: AddLanguageOverlay 59 AddLanguageOverlay: AddLanguageOverlay
60 }; 60 };
61 }); 61 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698