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

Side by Side Diff: chrome/browser/resources/options2/spelling_confirm_overlay.js

Issue 10809005: Options: Rename chrome/browser/resources/options2 -> chrome/browser/resources/options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 cr.define('options', function() {
6 var SettingsDialog = options.SettingsDialog;
7
8 /*
9 * SpellingConfirmOverlay class
10 * Dialog to confirm that the user really wants to use the Spelling service
11 * @extends {SettingsDialog}
12 */
13 function SpellingConfirmOverlay() {
14 SettingsDialog.call(this,
15 'spellingConfirm',
16 loadTimeData.getString('spellingConfirmTitle'),
17 'spelling-confirm-overlay',
18 $('spelling-confirm-ok'),
19 $('spelling-confirm-cancel'));
20 };
21
22 cr.addSingletonGetter(SpellingConfirmOverlay);
23
24 SpellingConfirmOverlay.prototype = {
25 __proto__: SettingsDialog.prototype,
26
27 /** @inheritDoc */
28 initializePage: function() {
29 SettingsDialog.prototype.initializePage.call(this);
30 },
31
32 /** @inheritDoc */
33 handleConfirm: function() {
34 SettingsDialog.prototype.handleConfirm.call(this);
35 Preferences.setBooleanPref('spellcheck.use_spelling_service', true);
36 Preferences.setBooleanPref('spellcheck.confirm_dialog_shown', true);
37 },
38
39 /** @inheritDoc */
40 handleCancel: function() {
41 SettingsDialog.prototype.handleCancel.call(this);
42 $('spelling-enabled-control').checked = false;
43 },
44 };
45
46 // Export
47 return {
48 SpellingConfirmOverlay: SpellingConfirmOverlay
49 };
50 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options2/spelling_confirm_overlay.html ('k') | chrome/browser/resources/options2/startup_overlay.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698