blob: b1f3288d2ecb54c365ad69b808e1b7a47f321ef1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
cr.define('reset', function() {
var USER_ACTION_RESET_CONFIRM_DISMISSED = 'reset-confirm-dismissed';
/**
* ResetScreenConfirmationOverlay class
* Encapsulated handling of the 'Confirm reset device' overlay OOBE page.
* @class
*/
function ConfirmResetOverlay() {
}
cr.addSingletonGetter(ConfirmResetOverlay);
ConfirmResetOverlay.prototype = {
/**
* Initialize the page.
*/
initializePage: function() {
var overlay = $('reset-confirm-overlay');
overlay.addEventListener('cancelOverlay', function(e) {
$('reset').send(login.Screen.CALLBACK_USER_ACTED,
USER_ACTION_RESET_CONFIRM_DISMISSED);
e.stopPropagation();
});
$('overlay-reset').removeAttribute('hidden');
},
};
// Export
return {
ConfirmResetOverlay: ConfirmResetOverlay
};
});
|