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

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

Issue 389913002: Moving IME manifests to chrome resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: modified per comments. Created 6 years, 5 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 // TODO(kochi): Generalize the notification as a component and put it 5 // TODO(kochi): Generalize the notification as a component and put it
6 // in js/cr/ui/notification.js . 6 // in js/cr/ui/notification.js .
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 /** @const */ var LanguageList = options.LanguageList; 10 /** @const */ var LanguageList = options.LanguageList;
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 }; 1347 };
1348 1348
1349 LanguageOptions.onDictionaryDownloadSuccess = function(languageCode) { 1349 LanguageOptions.onDictionaryDownloadSuccess = function(languageCode) {
1350 LanguageOptions.getInstance().onDictionaryDownloadSuccess_(languageCode); 1350 LanguageOptions.getInstance().onDictionaryDownloadSuccess_(languageCode);
1351 }; 1351 };
1352 1352
1353 LanguageOptions.onDictionaryDownloadFailure = function(languageCode) { 1353 LanguageOptions.onDictionaryDownloadFailure = function(languageCode) {
1354 LanguageOptions.getInstance().onDictionaryDownloadFailure_(languageCode); 1354 LanguageOptions.getInstance().onDictionaryDownloadFailure_(languageCode);
1355 }; 1355 };
1356 1356
1357 LanguageOptions.onComponentManagerInitialized = function(componentImes) {
1358 LanguageOptions.getInstance().appendComponentExtensionIme_(componentImes);
1359 };
1360
1361 // Export 1357 // Export
1362 return { 1358 return {
1363 LanguageOptions: LanguageOptions 1359 LanguageOptions: LanguageOptions
1364 }; 1360 };
1365 }); 1361 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698