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

Side by Side Diff: ui/webui/resources/cr_elements/cr_drawer/cr_drawer.js

Issue 2628123002: MD WebUI: Move settings' dialog-drawer element into a shared cr-element (Closed)
Patch Set: Rebase Created 3 years, 11 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 Polymer({ 5 Polymer({
6 is: 'dialog-drawer', 6 is: 'cr-drawer',
7 extends: 'dialog', 7 extends: 'dialog',
8 8
9 properties: { 9 properties: {
10 /** Enables notifications for |Dialog.open|. */ 10 /** Enables notifications for |Dialog.open|. */
11 open: { 11 open: {
12 type: Boolean, 12 type: Boolean,
13 notify: true, 13 notify: true,
14 }, 14 },
15 15
16 /** The alignment of the drawer on the screen ('left' or 'right'). */ 16 /** The alignment of the drawer on the screen ('left' or 'right'). */
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 * Closes the dialog when the closing animation is over. 83 * Closes the dialog when the closing animation is over.
84 * @private 84 * @private
85 */ 85 */
86 onDialogTransitionEnd_: function() { 86 onDialogTransitionEnd_: function() {
87 if (this.classList.contains('closing')) { 87 if (this.classList.contains('closing')) {
88 this.classList.remove('closing'); 88 this.classList.remove('closing');
89 this.close(); 89 this.close();
90 } 90 }
91 }, 91 },
92 }); 92 });
OLDNEW
« no previous file with comments | « ui/webui/resources/cr_elements/cr_drawer/cr_drawer.html ('k') | ui/webui/resources/cr_elements_resources.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698