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

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

Issue 3052022: add files (Closed)
Patch Set: Created 10 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
« no previous file with comments | « chrome/browser/resources/options/stop_syncing_overlay.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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 /**
6 * StopSyncingOverlay class
7 * Encapsulated handling of the 'Stop Syncing This Account' overlay page.
8 * @class
9 */
10 function StopSyncingOverlay() {
11 OptionsPage.call(this, 'stopSyncingOverlay',
12 templateData.stop_syncing_title,
13 'stopSyncingOverlay');
14 }
15
16 cr.addSingletonGetter(StopSyncingOverlay);
17
18 StopSyncingOverlay.prototype = {
19 // Inherit StopSyncingOverlay from OptionsPage.
20 __proto__: OptionsPage.prototype,
21
22 /**
23 * Initialize the page.
24 */
25 initializePage: function() {
26 // Call base class implementation to starts preference initialization.
27 OptionsPage.prototype.initializePage.call(this);
28
29 $('stop-syncing-cancel').onclick = function(e) {
30 OptionsPage.clearOverlays();
31 }
32
33 $('stop-syncing-confirm').onclick = function(e) {
34 chrome.send('stopSyncing');
35 OptionsPage.clearOverlays();
36 }
37 }
38 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/stop_syncing_overlay.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698