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

Side by Side Diff: chrome/browser/resources/md_history/app.html

Issue 2264983002: MD History: Lazily load element files which are not needed for first paint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove flattenhtml, rebase Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/html/cr/ui.html"> 2 <link rel="import" href="chrome://resources/html/cr/ui.html">
3 <link rel="import" href="chrome://resources/html/cr/ui/command.html"> 3 <link rel="import" href="chrome://resources/html/cr/ui/command.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/app-layout/app-drawer/a pp-drawer.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/app-route/app-location. html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/app-route/app-location. html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/app-route/app-route.htm l"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/app-route/app-route.htm l">
7 <link rel="import" href="chrome://resources/polymer/v1_0/iron-media-query/iron-m edia-query.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-media-query/iron-m edia-query.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/iron-pages/iron-pages.h tml"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/iron-pages/iron-pages.h tml">
9 <link rel="import" href="chrome://resources/polymer/v1_0/iron-scroll-target-beha vior/iron-scroll-target-behavior.html"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/iron-scroll-target-beha vior/iron-scroll-target-behavior.html">
10 <link rel="import" href="chrome://history/history_toolbar.html"> 9 <link rel="import" href="chrome://history/history_toolbar.html">
11 <link rel="import" href="chrome://history/list_container.html"> 10 <link rel="import" href="chrome://history/list_container.html">
12 <link rel="import" href="chrome://history/synced_device_manager.html">
13 <link rel="import" href="chrome://history/side_bar.html"> 11 <link rel="import" href="chrome://history/side_bar.html">
14 <link rel="import" href="chrome://history/shared_style.html"> 12 <link rel="import" href="chrome://history/shared_style.html">
15 <link rel="stylesheet" href="chrome://resources/css/md_colors.css"> 13 <link rel="stylesheet" href="chrome://resources/css/md_colors.css">
16 14
15 <!-- Lazy loaded: history-synced-device-manager, app-drawer. -->
16
17 <dom-module id="history-app"> 17 <dom-module id="history-app">
18 <template> 18 <template>
19 <style no-process> 19 <style no-process>
20 history-toolbar { 20 history-toolbar {
21 background: var(--md-toolbar-color); 21 background: var(--md-toolbar-color);
22 } 22 }
23 </style> 23 </style>
24 <style include="shared-style"> 24 <style include="shared-style">
25 :host { 25 :host {
26 display: block; 26 display: block;
(...skipping 18 matching lines...) Expand all
45 45
46 :host-context([dir='rtl']) #content-side-bar { 46 :host-context([dir='rtl']) #content-side-bar {
47 float: right; 47 float: right;
48 } 48 }
49 49
50 #content, 50 #content,
51 #content > * { 51 #content > * {
52 height: 100%; 52 height: 100%;
53 } 53 }
54 54
55 #drawer:unresolved {
56 display: none;
57 }
58
55 #drawer-header { 59 #drawer-header {
56 align-items: center; 60 align-items: center;
57 border-bottom: 1px solid rgba(0, 0, 0, 0.08); 61 border-bottom: 1px solid rgba(0, 0, 0, 0.08);
58 display: flex; 62 display: flex;
59 height: var(--toolbar-height); 63 height: var(--toolbar-height);
60 margin-bottom: 5px; 64 margin-bottom: 5px;
61 } 65 }
62 66
63 h1 { 67 h1 {
64 -webkit-padding-start: 24px; 68 -webkit-padding-start: 24px;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 </history-side-bar> 139 </history-side-bar>
136 </app-drawer> 140 </app-drawer>
137 </template> 141 </template>
138 142
139 <iron-media-query query="(max-width: 1023px)" 143 <iron-media-query query="(max-width: 1023px)"
140 query-matches="{{hasDrawer_}}"> 144 query-matches="{{hasDrawer_}}">
141 </iron-media-query> 145 </iron-media-query>
142 </template> 146 </template>
143 <script src="chrome://history/app.js"></script> 147 <script src="chrome://history/app.js"></script>
144 </dom-module> 148 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/PRESUBMIT.py ('k') | chrome/browser/resources/md_history/app.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698