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

Side by Side Diff: chrome/browser/resources/settings/reset_page/reset_page.js

Issue 1418073008: MD Settings: Adding reset page Material UI dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use layout center, remove margin auto Created 5 years, 1 month 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 2015 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
7 * 'settings-reset-page' is the settings page containing reset
8 * settings.
9 *
10 * Example:
11 *
12 * <iron-animated-pages>
13 * <settings-reset-page prefs="{{prefs}}">
14 * </settings-reset-page>
15 * ... other pages ...
16 * </iron-animated-pages>
17 *
18 * @group Chrome Settings Elements
19 * @element settings-reset-page
20 */
21 Polymer({
22 is: 'settings-reset-page',
23
24 /** @private */
25 onShowDialog_: function() {
26 this.$.resetDialog.open();
27 },
28
29 /** @private */
30 onCancelTap_: function() {
31 this.$.resetDialog.close();
32 },
33
34 /** @private */
35 onResetTap_: function() {
36 // TODO(dpapad): Set up C++ handlers and figure out when it is OK to close
37 // the dialog.
38 this.$.resetDialog.close();
39 },
40
41 /** @private */
42 onLearnMoreTap_: function() {
43 window.open(loadTimeData.getString('resetPageLearnMoreUrl'));
44 }
45 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/reset_page/reset_page.html ('k') | chrome/browser/resources/settings/settings_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698