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

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

Issue 1932413003: [MD History] Refactor history.html into a history-app element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address nit Created 4 years, 8 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 | « chrome/browser/browser_resources.grd ('k') | 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
new file mode 100644
index 0000000000000000000000000000000000000000..f824579f375f37ea0c7f7ddb751c0f61992f6e99
--- /dev/null
+++ b/chrome/browser/resources/md_history/app.html
@@ -0,0 +1,59 @@
+<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-pages/iron-pages.html">
+<link rel="import" href="chrome://history/history_list.html">
+<link rel="import" href="chrome://history/history_toolbar.html">
+<link rel="import" href="chrome://history/synced_device_manager.html">
+<link rel="import" href="chrome://history/side_bar.html">
+<link rel="import" href="chrome://history/shared_style.html">
+
+<dom-module id="history-app">
+ <!-- TODO(calamity): work around this deprecated import style -->
+ <link rel="import" type="css" href="chrome://resources/css/md_colors.css">
+ <template>
+ <style include="shared-style">
+ :host {
+ display: flex;
+ flex-direction: column;
+ min-width: 800px;
+ }
+
+ #main-container {
+ display: flex;
+ flex: 1 0 0;
+ overflow: hidden;
+ }
+
+ #toolbar {
+ flex: 0 0 56px;
+ }
+
+ history-list,
+ #history-synced-device-manager {
+ flex: 1 0 0;
+ }
+
+ #content {
+ display: flex;
+ flex: 1 0 0;
+ }
+
+ history-toolbar {
+ background: var(--md-toolbar-color);
+ }
+ </style>
+ <history-toolbar class="paper-header" id="toolbar"></history-toolbar>
+
+ <div id="main-container">
+ <history-side-bar id="history-side-bar" selected-page="{{selectedPage}}">
+ </history-side-bar>
+ <iron-pages id="content" attr-for-selected="id"
+ selected="{{selectedPage}}">
+ <history-list id="history-list"></history-list>
+ <history-synced-device-manager id="history-synced-device-manager">
+ </history-synced-device-manager>
+ </iron-pages>
+ </div>
+ </template>
+ <script src="chrome://history/app.js"></script>
+</dom-module>
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/md_history/app.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698