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

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

Issue 2756863002: ChromeOS: Powerwash UI update (Closed)
Patch Set: Change to Polymer styling 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 isOfficial_: Boolean,
Alexander Alekseev 2017/04/13 00:01:53 Please, add comment to this property.
Wenzhao (Colin) Zang 2017/04/13 02:58:21 Done.
20 },
21
22 /** @private */
23 isState_: function(uiState_, state_) {
24 return uiState_ == state_;
25 },
26
27 /** @private */
28 isCancelHidden_: function(uiState_) {
29 return uiState_ == 'revert-promise-view';
30 },
31
32 /** @private */
33 isHelpLinkHidden_: function(uiState_, isOfficial_) {
34 return !isOfficial_ || (uiState_ == 'revert-promise-view');
35 },
36
37 /**
38 * On-tap event handler for cancel button.
39 *
40 * @private
41 */
42 onCancelTap_: function() {
43 chrome.send('login.ResetScreen.userActed', ['cancel-reset']);
44 },
45
46 /**
47 * On-tap event handler for restart button.
48 *
49 * @private
50 */
51 onRestartTap_: function() {
52 chrome.send('login.ResetScreen.userActed', ['restart-pressed']);
53 },
54
55 /**
56 * On-tap event handler for powerwash button.
57 *
58 * @private
59 */
60 onPowerwashTap_: function() {
61 chrome.send('login.ResetScreen.userActed', ['show-confirmation']);
62 },
63
64 /**
65 * On-tap event handler for learn more link.
66 *
67 * @private
68 */
69 onLearnMoreTap_: function() {
70 chrome.send('login.ResetScreen.userActed', ['learn-more-link']);
71 },
72 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698