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

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

Issue 2742583003: MD Bookmarks: Extract bookmark editing into a <bookmark-edit-dialog> element (Closed)
Patch Set: Rename event handlers Created 3 years, 9 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/edit_dialog.html
diff --git a/chrome/browser/resources/md_bookmarks/edit_dialog.html b/chrome/browser/resources/md_bookmarks/edit_dialog.html
new file mode 100644
index 0000000000000000000000000000000000000000..7361e1550f4c3df6bef9919ea288c45ffadc57c7
--- /dev/null
+++ b/chrome/browser/resources/md_bookmarks/edit_dialog.html
@@ -0,0 +1,37 @@
+<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/html/assert.html">
+<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html">
+<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html">
+
+<dom-module id="bookmarks-edit-dialog">
+ <template>
+ <style include="cr-shared-style"></style>
+ <dialog is="cr-dialog" id="dialog">
+ <div class="title">[[getDialogTitle_(isFolder_)]]</div>
+ <div class="body">
+ <paper-input always-float-label id="name"
+ label="$i18n{editDialogNameInput}"
+ value="{{titleValue_}}"
+ autofocus>
+ </paper-input>
+ <paper-input always-float-label id="url"
+ label="$i18n{editDialogUrlInput}"
+ value="{{urlValue_}}"
+ hidden$="[[isFolder_]]">
+ </paper-input>
+ </div>
+ <div class="button-container">
+ <paper-button class="cancel-button" on-tap="onCancelButtonTap_">
+ $i18n{cancelEdit}
+ </paper-button>
+ <paper-button id="saveButton" class="action-button"
+ on-tap="onSaveButtonTap_">
+ $i18n{saveEdit}
+ </paper-button>
+ </div>
+ </dialog>
+ </template>
+ <script src="chrome://bookmarks/edit_dialog.js"></script>
+</dom-module>
« no previous file with comments | « chrome/browser/resources/md_bookmarks/compiled_resources2.gyp ('k') | chrome/browser/resources/md_bookmarks/edit_dialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698