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

Unified Diff: chrome/browser/resources/settings/on_startup_page/startup_url_entry.js

Issue 1876283002: MD Settings: On Startup, moving remove URL option under a dots menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@edit_on_startup_cpp
Patch Set: Typo. 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 side-by-side diff with in-line comments
Download patch
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..c3fbeb98da634ce994cc3de387286fecf20aff3d
--- /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 for.
+ * @return {string} A set of icon URLs.
+ * @private
+ */
+ getIconSet_: function(url) {
+ return getFaviconImageSet(url);
+ },
+
+ /** @private */
+ onRemoveTap_: function() {
+ settings.StartupUrlsPageBrowserProxyImpl.getInstance().removeStartupPage(
+ this.model.modelIndex);
+ },
+});

Powered by Google App Engine
This is Rietveld 408576698