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

Unified Diff: chrome/browser/resources/md_history/list_container.html

Issue 2160173002: [MD History] Move the shared menu from history list to list container. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@research
Patch Set: rebase Created 4 years, 5 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_history/list_container.html
diff --git a/chrome/browser/resources/md_history/list_container.html b/chrome/browser/resources/md_history/list_container.html
index eff450f54c92a0dec2aa0bbd670015e1d2f15a41..622eb181dbf60cc0f0df17885ec1ba89917a81e2 100644
--- a/chrome/browser/resources/md_history/list_container.html
+++ b/chrome/browser/resources/md_history/list_container.html
@@ -1,7 +1,9 @@
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html">
+<link rel="import" href="chrome://resources/cr_elements/cr_shared_menu/cr_shared_menu.html">
<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-pages/iron-pages.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.html">
<link rel="import" href="chrome://history/grouped_list.html">
<link rel="import" href="chrome://history/history_list.html">
@@ -22,6 +24,17 @@
#dialog .body {
white-space: pre-wrap;
}
+
+ paper-item {
+ -webkit-user-select: none;
+ cursor: pointer;
+ font: inherit;
+ white-space: nowrap;
+ }
+
+ paper-item:hover {
+ background: #eaeaea;
+ }
</style>
<iron-pages id="content" attr-for-selected="id"
selected="[[selectedPage_]]">
@@ -50,6 +63,15 @@
</paper-button>
</div>
</cr-dialog>
+
+ <cr-shared-menu id="sharedMenu">
+ <paper-item id="menuMoreButton" on-tap="onMoreFromSiteTap_">
+ $i18n{moreFromSite}
+ </paper-item>
+ <paper-item id="menuRemoveButton" on-tap="onRemoveFromHistoryTap_">
+ $i18n{removeFromHistory}
+ </paper-item>
+ </cr-shared-menu>
</template>
<script src="chrome://history/list_container.js"></script>
</dom-module>

Powered by Google App Engine
This is Rietveld 408576698