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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_reset.js

Issue 2756863002: ChromeOS: Powerwash UI update (Closed)
Patch Set: merge Created 3 years, 8 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
OLDNEW
(Empty)
1 // Copyright 2017 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 * @fileoverview Polymer element for displaying material design reset screen.
7 */
8
9 Polymer({
10 is: 'oobe-reset-md',
11
12 properties: {
13 /**
14 * State of the screen corresponding to the css style set by
15 * oobe_screen_reset.js.
16 */
17 uiState_: String,
18
19 /**
20 * Flag that determines whether help link is shown.
21 */
22 isOfficial_: Boolean,
23 },
24
25 /** @private */
26 isState_: function(uiState_, state_) {
27 return uiState_ == state_;
28 },
29
30 /** @private */
31 isCancelHidden_: function(uiState_) {
32 return uiState_ == 'revert-promise-view';
33 },
34
35 /** @private */
36 isHelpLinkHidden_: function(uiState_, isOfficial_) {
37 return !isOfficial_ || (uiState_ == 'revert-promise-view');
38 },
39
40 /**
41 * On-tap event handler for cancel button.
42 *
43 * @private
44 */
45 onCancelTap_: function() {
46 chrome.send('login.ResetScreen.userActed', ['cancel-reset']);
47 },
48
49 /**
50 * On-tap event handler for restart button.
51 *
52 * @private
53 */
54 onRestartTap_: function() {
55 chrome.send('login.ResetScreen.userActed', ['restart-pressed']);
56 },
57
58 /**
59 * On-tap event handler for powerwash button.
60 *
61 * @private
62 */
63 onPowerwashTap_: function() {
64 chrome.send('login.ResetScreen.userActed', ['show-confirmation']);
65 },
66
67 /**
68 * On-tap event handler for learn more link.
69 *
70 * @private
71 */
72 onLearnMoreTap_: function() {
73 chrome.send('login.ResetScreen.userActed', ['learn-more-link']);
74 },
75 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698