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

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

Issue 2627383002: MD History: Replace app-drawer with cr-drawer (Closed)
Patch Set: Use correct close function Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/app.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/app.html
diff --git a/chrome/browser/resources/md_history/app.html b/chrome/browser/resources/md_history/app.html
index ba0d9c72936f879e95eb806bd7d7996d90af4544..a25db6e68e9dfe38d851f5621ee2c37d8372ee38 100644
--- a/chrome/browser/resources/md_history/app.html
+++ b/chrome/browser/resources/md_history/app.html
@@ -11,7 +11,7 @@
<link rel="import" href="chrome://history/side_bar.html">
<link rel="stylesheet" href="chrome://resources/css/md_colors.css">
-<!-- Lazy loaded: history-synced-device-manager, app-drawer. -->
+<!-- Lazy loaded: history-synced-device-manager, cr-drawer. -->
<dom-module id="history-app">
<template>
@@ -54,29 +54,6 @@
height: 100%;
}
- #drawer:unresolved {
- display: none;
- }
-
- #drawer {
- z-index: 3;
- }
-
- #drawer-header {
- align-items: center;
- border-bottom: 1px solid var(--separator-color);
- box-sizing: border-box;
- display: flex;
- height: var(--toolbar-height);
- }
-
- h1 {
- -webkit-padding-start: 24px;
- color: var(--primary-text-color);
- font-size: 123%;
- font-weight: 400;
- }
-
#drop-shadow {
box-shadow: inset 0 5px 6px -3px rgba(0, 0, 0, 0.4);
height: 6px;
@@ -138,15 +115,14 @@
<div id="drop-shadow"></div>
</div>
- <template is="dom-if" if="[[hasDrawer_]]">
- <app-drawer id="drawer" swipe-open align="start" tabindex="0">
- <div id="drawer-header">
- <h1>$i18n{title}</h1>
- </div>
- <history-side-bar id="drawer-side-bar" selected-page="{{selectedPage_}}"
- show-footer="[[showSidebarFooter]]" drawer>
+ <template is="cr-lazy-render" id="drawer">
+ <dialog is="cr-drawer" swipe-open>
+ <div class="drawer-header">$i18n{title}</div>
+ <history-side-bar id="drawer-side-bar" class="drawer-content"
+ selected-page="{{selectedPage_}}"
+ show-footer="[[showSidebarFooter]]">
</history-side-bar>
- </app-drawer>
+ </dialog>
</template>
<iron-media-query query="(max-width: 1023px)"
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/app.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698