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

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

Issue 445503003: Update easy unlock settings UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use hard coded phone model name Created 6 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 2014 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 Page = cr.ui.pageManager.Page;
7 var PageManager = cr.ui.pageManager.PageManager;
8
9 /**
10 * EasyUnlockTurnOffOverlay class
11 * Encapsulated handling of the Factory Reset confirmation overlay page.
12 * @class
13 */
14 function EasyUnlockTurnOffOverlay() {
15 Page.call(this, 'easyUnlockTurnOffOverlay',
16 loadTimeData.getString('easyUnlockTurnOffTitle'),
17 'easy-unlock-turn-off-overlay');
18 }
19
20 cr.addSingletonGetter(EasyUnlockTurnOffOverlay);
21
22 EasyUnlockTurnOffOverlay.prototype = {
23 // Inherit EasyUnlockTurnOffOverlay from Page.
24 __proto__: Page.prototype,
25
26 /** @override */
27 initializePage: function() {
28 Page.prototype.initializePage.call(this);
29
30 $('easy-unlock-turn-off-dismiss').onclick = function(event) {
31 EasyUnlockTurnOffOverlay.dismiss();
32 };
33 $('easy-unlock-turn-off-confirm').onclick = function(event) {
34 var clearData = $('easy-unlock-clear-server-data').checked;
35 chrome.send('turnOffEasyUnlock', [clearData]);
36 };
37 },
38 };
39
40 EasyUnlockTurnOffOverlay.dismiss = function() {
41 PageManager.closeOverlay();
42 };
43
44 // Export
45 return {
46 EasyUnlockTurnOffOverlay: EasyUnlockTurnOffOverlay
47 };
48 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698