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

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

Issue 2481693002: [MD History] Make forward/backward work in grouped mode. (Closed)
Patch Set: address comments Created 4 years 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 <html><head><!-- 1 <html><head><!--
2 @license 2 @license
3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also 7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --><!-- 9 --><!--
10 @license 10 @license
(...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 <div id="grouped-buttons-container"> 2471 <div id="grouped-buttons-container">
2472 <paper-tabs attr-for-selected="value" selected="{{groupedRange}}" id="gr ouped-range-buttons"> 2472 <paper-tabs attr-for-selected="value" selected="{{groupedRange}}" id="gr ouped-range-buttons">
2473 <paper-tab value="0">$i18n{rangeAllTime}</paper-tab> 2473 <paper-tab value="0">$i18n{rangeAllTime}</paper-tab>
2474 <paper-tab value="1">$i18n{rangeWeek}</paper-tab> 2474 <paper-tab value="1">$i18n{rangeWeek}</paper-tab>
2475 <paper-tab value="2">$i18n{rangeMonth}</paper-tab> 2475 <paper-tab value="2">$i18n{rangeMonth}</paper-tab>
2476 </paper-tabs> 2476 </paper-tabs>
2477 <div id="grouped-nav-container"> 2477 <div id="grouped-nav-container">
2478 <span id="grouped-date"> 2478 <span id="grouped-date">
2479 {{getHistoryInterval_(queryStartTime, queryEndTime)}} 2479 {{getHistoryInterval_(queryStartTime, queryEndTime)}}
2480 </span> 2480 </span>
2481 <paper-icon-button icon="history:today" alt="$i18n{rangeToday}" title= "$i18n{rangeToday}"></paper-icon-button> 2481 <paper-icon-button id="today-button" icon="history:today" alt="$i18n{r angeToday}" title="$i18n{rangeToday}" on-tap="onTodayTap_" disabled="[[isToday_( groupedOffset)]]"></paper-icon-button>
2482 <paper-icon-button icon="history:chevron-left" alt="$i18n{rangePreviou s}" title="$i18n{rangePrevious}" class="rtl-reversible"></paper-icon-button> 2482 <paper-icon-button id="prev-button" icon="history:chevron-left" alt="$ i18n{rangePrevious}" title="$i18n{rangePrevious}" class="rtl-reversible" on-tap= "onPrevTap_" disabled="[[!hasMoreResults]]"></paper-icon-button>
2483 <paper-icon-button icon="cr:chevron-right" alt="$i18n{rangeNext}" titl e="$i18n{rangeNext}" class="rtl-reversible"></paper-icon-button> 2483 <paper-icon-button id="next-button" icon="cr:chevron-right" alt="$i18n {rangeNext}" title="$i18n{rangeNext}" class="rtl-reversible" on-tap="onNextTap_" disabled="[[isToday_(groupedOffset)]]"></paper-icon-button>
2484 </div> 2484 </div>
2485 </div> 2485 </div>
2486 </template> 2486 </template>
2487 </template> 2487 </template>
2488 </dom-module> 2488 </dom-module>
2489 2489
2490 <style is="custom-style" css-build="shadow">html { 2490 <style is="custom-style" css-build="shadow">html {
2491 --cr-actionable_-_cursor: pointer;; 2491 --cr-actionable_-_cursor: pointer;;
2492 --cr-focused-item-color: var(--google-grey-300); 2492 --cr-focused-item-color: var(--google-grey-300);
2493 --cr-selectable-focus_-_background-color: var(--cr-focused-item-color); --c r-selectable-focus_-_outline: none; 2493 --cr-selectable-focus_-_background-color: var(--cr-focused-item-color); --c r-selectable-focus_-_outline: none;
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after
3732 transition: opacity 500ms; 3732 transition: opacity 500ms;
3733 } 3733 }
3734 3734
3735 :host([toolbar-shadow_]) #drop-shadow { 3735 :host([toolbar-shadow_]) #drop-shadow {
3736 opacity: 1; 3736 opacity: 1;
3737 } 3737 }
3738 3738
3739 </style> 3739 </style>
3740 <history-router selected-page="{{selectedPage_}}" query-state="{{queryState_ }}"> 3740 <history-router selected-page="{{selectedPage_}}" query-state="{{queryState_ }}">
3741 </history-router> 3741 </history-router>
3742 <history-toolbar id="toolbar" spinner-active="[[shouldShowSpinner_(queryStat e_.querying, 3742 <history-toolbar id="toolbar" grouped-offset="{{queryState_.groupedOffset}}" grouped-range="{{queryState_.range}}" has-drawer="[[hasDrawer_]]" is-grouped-mo de="{{grouped_}}" query-end-time="[[queryResult_.info.queryEndTime]]" has-more-r esults="[[!queryResult_.info.finished]]" query-start-time="[[queryResult_.info.q ueryStartTime]]" querying="[[queryState_.querying]]" search-term="{{queryState_. searchTerm}}" show-menu-promo="[[showMenuPromo_]]" show-sync-notice="[[showSyncN otice_(hasSyncedResults, selectedPage_)]]" spinner-active="[[shouldShowSpinner_( queryState_.querying,
3743 queryState_.incremental, 3743 queryState_.incremental,
3744 queryState_.searchTerm)]]" is-group ed-mode="{{grouped_}}" grouped-range="{{queryState_.range}}" search-term="{{quer yState_.searchTerm}}" query-start-time="[[queryResult_.info.queryStartTime]]" qu ery-end-time="[[queryResult_.info.queryEndTime]]" has-drawer="[[hasDrawer_]]" sh ow-sync-notice="[[showSyncNotice_(hasSyncedResults, selectedPage_)]]" show-menu- promo="[[showMenuPromo_]]"> 3744 queryState_.searchTerm)]]">
3745 </history-toolbar> 3745 </history-toolbar>
3746 3746
3747 <div id="main-container"> 3747 <div id="main-container">
3748 <history-side-bar id="content-side-bar" selected-page="{{selectedPage_}}" show-footer="[[showSidebarFooter]]" hidden$="[[hasDrawer_]]"> 3748 <history-side-bar id="content-side-bar" selected-page="{{selectedPage_}}" show-footer="[[showSidebarFooter]]" hidden$="[[hasDrawer_]]">
3749 </history-side-bar> 3749 </history-side-bar>
3750 <iron-pages id="content" attr-for-selected="path" fallback-selection="hist ory" selected="[[getSelectedPage_(selectedPage_, items)]]" items="{{items}}"> 3750 <iron-pages id="content" attr-for-selected="path" fallback-selection="hist ory" selected="[[getSelectedPage_(selectedPage_, items)]]" items="{{items}}">
3751 <history-list-container id="history" query-state="{{queryState_}}" query -result="[[queryResult_]]" grouped="[[grouped_]]" grouped-range="{{queryState_.r ange}}" path="history"> 3751 <history-list-container id="history" query-state="{{queryState_}}" query -result="[[queryResult_]]" grouped="[[grouped_]]" grouped-range="{{queryState_.r ange}}" path="history">
3752 </history-list-container> 3752 </history-list-container>
3753 <template is="dom-if" if="[[syncedTabsSelected_(selectedPage_)]]"> 3753 <template is="dom-if" if="[[syncedTabsSelected_(selectedPage_)]]">
3754 <history-synced-device-manager id="synced-devices" session-list="[[que ryResult_.sessionList]]" search-term="[[queryState_.searchTerm]]" sign-in-state= "[[isUserSignedIn_]]" path="syncedTabs"> 3754 <history-synced-device-manager id="synced-devices" session-list="[[que ryResult_.sessionList]]" search-term="[[queryState_.searchTerm]]" sign-in-state= "[[isUserSignedIn_]]" path="syncedTabs">
(...skipping 11 matching lines...) Expand all
3766 <history-side-bar id="drawer-side-bar" selected-page="{{selectedPage_}}" show-footer="[[showSidebarFooter]]" drawer=""> 3766 <history-side-bar id="drawer-side-bar" selected-page="{{selectedPage_}}" show-footer="[[showSidebarFooter]]" drawer="">
3767 </history-side-bar> 3767 </history-side-bar>
3768 </app-drawer> 3768 </app-drawer>
3769 </template> 3769 </template>
3770 3770
3771 <iron-media-query query="(max-width: 1023px)" query-matches="{{hasDrawer_}}" > 3771 <iron-media-query query="(max-width: 1023px)" query-matches="{{hasDrawer_}}" >
3772 </iron-media-query> 3772 </iron-media-query>
3773 </template> 3773 </template>
3774 </dom-module> 3774 </dom-module>
3775 <script src="app.crisper.js"></script></body></html> 3775 <script src="app.crisper.js"></script></body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698