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

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

Issue 11308076: Browser-tests for editing the dictionary on chrome://settings/editDictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@dictionary
Patch Set: Created 8 years, 1 month 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 | « no previous file | chrome/browser/ui/webui/options/edit_dictionary_browsertest.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cr.define('options', function() { 5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 var ArrayDataModel = cr.ui.ArrayDataModel; 7 var ArrayDataModel = cr.ui.ArrayDataModel;
8 var DictionaryWordsList = options.dictionary_words.DictionaryWordsList; 8 var DictionaryWordsList = options.dictionary_words.DictionaryWordsList;
9 9
10 /**
11 * Adding and removing words in custom spelling dictionary.
12 * @constructor
13 */
10 function EditDictionaryOverlay() { 14 function EditDictionaryOverlay() {
11 OptionsPage.call(this, 'editDictionary', 15 OptionsPage.call(this, 'editDictionary',
12 loadTimeData.getString('languageDictionaryOverlayPage'), 16 loadTimeData.getString('languageDictionaryOverlayPage'),
13 'language-dictionary-overlay-page'); 17 'language-dictionary-overlay-page');
14 } 18 }
15 19
16 cr.addSingletonGetter(EditDictionaryOverlay); 20 cr.addSingletonGetter(EditDictionaryOverlay);
17 21
18 EditDictionaryOverlay.prototype = { 22 EditDictionaryOverlay.prototype = {
19 __proto__: OptionsPage.prototype, 23 __proto__: OptionsPage.prototype,
(...skipping 21 matching lines...) Expand all
41 }; 45 };
42 46
43 EditDictionaryOverlay.setWordList = function(entries) { 47 EditDictionaryOverlay.setWordList = function(entries) {
44 EditDictionaryOverlay.getInstance().setWordList_(entries); 48 EditDictionaryOverlay.getInstance().setWordList_(entries);
45 }; 49 };
46 50
47 return { 51 return {
48 EditDictionaryOverlay: EditDictionaryOverlay 52 EditDictionaryOverlay: EditDictionaryOverlay
49 }; 53 };
50 }); 54 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/edit_dictionary_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698