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

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

Issue 1877633002: MD Settings: Adding C++ support for editing startup URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@on_startup_urls
Patch Set: Add missing call to save prefs. Created 4 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/on_startup_page/startup_urls_page_browser_proxy.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * @typedef {{
7 * 'title': string,
8 * 'tooltip': string,
9 * 'url': string
10 * }}
11 */
12 var StartupPageInfo;
13
14 /**
15 * @fileoverview 'settings-startup-urls-page' is the settings page 6 * @fileoverview 'settings-startup-urls-page' is the settings page
16 * containing the urls that will be opened when chrome is started. 7 * containing the urls that will be opened when chrome is started.
17 */ 8 */
9
10 /**
11 * @typedef {{
12 * title: string,
13 * tooltip: string,
14 * url: string
15 * }}
16 */
17 var StartupPageInfo;
18
18 Polymer({ 19 Polymer({
19 is: 'settings-startup-urls-page', 20 is: 'settings-startup-urls-page',
20 21
21 behaviors: [WebUIListenerBehavior], 22 behaviors: [WebUIListenerBehavior],
22 23
23 properties: { 24 properties: {
24 /** @type {settings.StartupUrlsPageBrowserProxy} */ 25 /** @type {settings.StartupUrlsPageBrowserProxy} */
25 browserProxy_: Object, 26 browserProxy_: Object,
26 27
27 /** 28 /**
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 }, 74 },
74 75
75 /** 76 /**
76 * @param {!{model: !{index: number}}} e 77 * @param {!{model: !{index: number}}} e
77 * @private 78 * @private
78 */ 79 */
79 onRemoveUrlTap_: function(e) { 80 onRemoveUrlTap_: function(e) {
80 this.browserProxy_.removeStartupPage(e.model.index); 81 this.browserProxy_.removeStartupPage(e.model.index);
81 }, 82 },
82 }); 83 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/on_startup_page/startup_urls_page_browser_proxy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698