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

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

Issue 1864023002: MD History: Add spinners when new data is loading or searching (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: chrome/browser/resources/md_history/history_list.html
diff --git a/chrome/browser/resources/md_history/history_list.html b/chrome/browser/resources/md_history/history_list.html
index 5eac24f7eb4068e6a143c650efac4c33356ddb1c..4100f442680d3e6c3e6425eaa962875402ae6103 100644
--- a/chrome/browser/resources/md_history/history_list.html
+++ b/chrome/browser/resources/md_history/history_list.html
@@ -1,6 +1,7 @@
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spinner.html">
<link rel="import" href="chrome://resources/cr_elements/cr_shared_menu/cr_shared_menu.html">
<link rel="import" href="chrome://history/constants.html">
<link rel="import" href="chrome://history/history_item.html">
@@ -20,6 +21,24 @@
padding-top: var(--first-card-padding-top);
}
+ #loading_spinner {
tsergeant 2016/04/07 01:07:02 We generally use '#loading-spinner' rather than '#
lshang 2016/04/15 03:31:54 Done.
+ bottom: 15px;
+ left: 50%;
tsergeant 2016/04/07 01:07:02 This will be ~not quite~ centered. This is because
lshang 2016/04/15 03:31:54 Done. And I think it might look better if the spi
+ position: absolute;
+ }
+
+ #searching_spinner {
+ padding-right: 200px;
+ position: absolute;
+ right: 0;
+ top: 15px;
+ }
+
+ paper-spinner.search {
+ height: 20px;
+ width: 20px;
+ }
+
paper-item {
-webkit-user-select: none;
cursor: pointer;
@@ -48,6 +67,12 @@
</history-item>
</template>
</iron-list>
+ <div id="loading_spinner" hidden$="[[!loading_]]">
+ <paper-spinner alt="Loading more history" active></paper-spinner>
+ </div>
+ <div id="searching_spinner" hidden$="[[!searching_]]">
tsergeant 2016/04/07 01:07:02 It would be nice if this was part of the <history-
lshang 2016/04/15 03:31:54 Done.
+ <paper-spinner class="search" alt="searching in history" active></paper-spinner>
+ </div>
<cr-shared-menu id="sharedMenu">
<paper-item on-tap="onMoreFromSiteTap_">
$i18n{moreFromSite}

Powered by Google App Engine
This is Rietveld 408576698