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

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: remove chrome.send call, needs more setup on the C++ side. 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 properties: {},
Dan Beam 2015/10/29 00:46:10 not needed if empty
dpapad 2015/10/29 01:33:10 Done.
25
26 /** @private */
27 onShowDialog_: function() {
28 this.$.resetDialog.open();
29 },
30
31 /** @private */
32 onHideDialog_: function() {
33 this.$.resetDialog.close();
34 },
35
36 /** @private */
37 onReset_: function() {
38 // TODO(dpapad): Set up C++ handlers and figure out when it is OK to close
39 // the dialog.
40 this.$.resetDialog.close();
41 }
42 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698