Chromium Code Reviews| Index: chrome/browser/resources/settings/on_startup_page/startup_url_entry.js |
| diff --git a/chrome/browser/resources/settings/on_startup_page/startup_url_entry.js b/chrome/browser/resources/settings/on_startup_page/startup_url_entry.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..087f1e9ab1466ab97231c3783c2c3bcc8c920d2e |
| --- /dev/null |
| +++ b/chrome/browser/resources/settings/on_startup_page/startup_url_entry.js |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +/** |
| + * @fileoverview settings-startup-url-entry represents a UI component that |
| + * displayes a URL that is loaded during startup. It includes a menu that allows |
| + * the user to edit/remove the entry. |
| + */ |
| +Polymer({ |
| + is: 'settings-startup-url-entry', |
| + |
| + properties: { |
| + /** @type {!StartupPageInfo} */ |
| + model: Object, |
| + }, |
| + |
| + /** |
| + * @param {string} url Location of an image to get a set of icons fors. |
|
dschuyler
2016/04/13 17:58:54
s/fors/for/
dpapad
2016/04/13 18:38:30
Done.
|
| + * @return {string} A set of icon URLs. |
| + * @private |
| + */ |
| + getIconSet_: function(url) { |
| + return getFaviconImageSet(url); |
| + }, |
| + |
| + /** @private */ |
| + onRemoveTap_: function() { |
| + settings.StartupUrlsPageBrowserProxyImpl.getInstance().removeStartupPage( |
| + this.model.modelIndex); |
| + }, |
| +}); |