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

Side by Side Diff: chrome/browser/resources/settings/on_startup_page/startup_urls_page.js

Issue 2180823004: Migrate <cr-dialog> from PaperDialogBehavior to native <dialog>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 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 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 /** 5 /**
6 * @fileoverview 'settings-startup-urls-page' is the settings page 6 * @fileoverview 'settings-startup-urls-page' is the settings page
7 * containing the urls that will be opened when chrome is started. 7 * containing the urls that will be opened when chrome is started.
8 */ 8 */
9 9
10 Polymer({ 10 Polymer({
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 /** 52 /**
53 * Opens the dialog and registers a listener for removing the dialog from the 53 * Opens the dialog and registers a listener for removing the dialog from the
54 * DOM once is closed. The listener is destroyed when the dialog is removed 54 * DOM once is closed. The listener is destroyed when the dialog is removed
55 * (because of 'restamp'). 55 * (because of 'restamp').
56 * @private 56 * @private
57 */ 57 */
58 openDialog_: function() { 58 openDialog_: function() {
59 this.showStartupUrlDialog_ = true; 59 this.showStartupUrlDialog_ = true;
60 this.async(function() { 60 this.async(function() {
61 var dialog = this.$$('settings-startup-url-dialog'); 61 var dialog = this.$$('settings-startup-url-dialog');
62 dialog.addEventListener('iron-overlay-closed', function() { 62 dialog.addEventListener('close', function() {
63 this.showStartupUrlDialog_ = false; 63 this.showStartupUrlDialog_ = false;
64 this.startupUrlDialogModel_ = null; 64 this.startupUrlDialogModel_ = null;
65 }.bind(this)); 65 }.bind(this));
66 }.bind(this)); 66 }.bind(this));
67 }, 67 },
68 68
69 /** @private */ 69 /** @private */
70 onUseCurrentPagesTap_: function() { 70 onUseCurrentPagesTap_: function() {
71 this.browserProxy_.useCurrentPages(); 71 this.browserProxy_.useCurrentPages();
72 }, 72 },
73 }); 73 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698