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

Unified Diff: chrome/browser/resources/md_bookmarks/toolbar.html

Issue 2670473002: [MD Bookmarks] Implement adding folders and bookmarks from toolbar menu. (Closed)
Patch Set: Fix store to insert node instead of push and update tests. Created 3 years, 10 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/md_bookmarks/toolbar.html
diff --git a/chrome/browser/resources/md_bookmarks/toolbar.html b/chrome/browser/resources/md_bookmarks/toolbar.html
index 75f566fbd5da421bac9b3a87b6dbe83ad9341079..0e20eabee8675fe4438d9f95db3d3ceb574a3029 100644
--- a/chrome/browser/resources/md_bookmarks/toolbar.html
+++ b/chrome/browser/resources/md_bookmarks/toolbar.html
@@ -1,5 +1,6 @@
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html">
+<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html">
<link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="chrome://bookmarks/shared_style.html">
@@ -7,7 +8,7 @@
<dom-module id="bookmarks-toolbar">
<template>
- <style include="shared-style">
+ <style include="shared-style cr-shared-style">
button.more-actions {
margin: 4px;
}
@@ -43,6 +44,28 @@
$i18n{menuExport}
</button>
</dialog>
+ <dialog is="cr-dialog" id="addBookmark">
+ <div class="title">[[getModalTitle_(createdNode)]]</div>
+ <div class="body">
+ <paper-input always-float-label id="name"
+ label="$i18n{editDialogNameInput}"
+ value="{{createdNode.title}}">
+ </paper-input>
+ <paper-input always-float-label id="url"
+ hidden$="[[createdNode.isFolder]]"
+ label="$i18n{editDialogUrlInput}"
+ value="{{createdNode.url}}">
+ </paper-input>
+ </div>
+ <div class="button-container">
+ <paper-button class="cancel-button" on-tap="onCancelAddTap_">
+ $i18n{cancelEdit}
+ </paper-button>
+ <paper-button class="action-button" on-tap="onSaveAddTap_">
+ $i18n{saveEdit}
+ </paper-button>
+ </div>
+ </dialog>
<cr-toolbar page-name="$i18n{title}"
clear-label="$i18n{clearSearch}"
search-prompt="$i18n{searchPrompt}"

Powered by Google App Engine
This is Rietveld 408576698