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

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

Issue 2656443004: MD History: Add routing for grouped history mode. (Closed)
Patch Set: Tweak Created 3 years, 10 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 <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 2414 matching lines...) Expand 10 before | Expand all | Expand 10 after
2425 <div id="grouped-buttons-container"> 2425 <div id="grouped-buttons-container">
2426 <paper-tabs attr-for-selected="value" selected="[[groupedRange]]" on-iro n-select="onTabSelected_"> 2426 <paper-tabs attr-for-selected="value" selected="[[groupedRange]]" on-iro n-select="onTabSelected_">
2427 <paper-tab value="0">$i18n{rangeAllTime}</paper-tab> 2427 <paper-tab value="0">$i18n{rangeAllTime}</paper-tab>
2428 <paper-tab value="1">$i18n{rangeWeek}</paper-tab> 2428 <paper-tab value="1">$i18n{rangeWeek}</paper-tab>
2429 <paper-tab value="2">$i18n{rangeMonth}</paper-tab> 2429 <paper-tab value="2">$i18n{rangeMonth}</paper-tab>
2430 </paper-tabs> 2430 </paper-tabs>
2431 <div id="grouped-nav-container"> 2431 <div id="grouped-nav-container">
2432 <span id="grouped-date"> 2432 <span id="grouped-date">
2433 [[getHistoryInterval_(queryInfo)]] 2433 [[getHistoryInterval_(queryInfo)]]
2434 </span> 2434 </span>
2435 <button is="paper-icon-button-light" id="today-button" class="icon-but ton" title="$i18n{rangeToday}" on-tap="onTodayTap_" disabled="[[isToday_(grouped Offset)]]"> 2435 <button is="paper-icon-button-light" id="today-button" class="icon-but ton" title="$i18n{rangeToday}" on-click="onTodayTap_" disabled="[[isToday_(group edOffset)]]">
2436 <iron-icon icon="history:today"></iron-icon> 2436 <iron-icon icon="history:today"></iron-icon>
2437 </button> 2437 </button>
2438 <button is="paper-icon-button-light" id="prev-button" title="$i18n{ran gePrevious}" class="icon-button rtl-reversible" on-tap="onPrevTap_" disabled="[[ !hasMoreResults]]"> 2438 <button is="paper-icon-button-light" id="prev-button" title="$i18n{ran gePrevious}" class="icon-button rtl-reversible" on-click="onPrevTap_" disabled=" [[!hasMoreResults]]">
2439 <iron-icon icon="history:chevron-left"></iron-icon> 2439 <iron-icon icon="history:chevron-left"></iron-icon>
2440 </button> 2440 </button>
2441 <button is="paper-icon-button-light" id="next-button" title="$i18n{ran geNext}" class="icon-button rtl-reversible" on-tap="onNextTap_" disabled="[[isTo day_(groupedOffset)]]"> 2441 <button is="paper-icon-button-light" id="next-button" title="$i18n{ran geNext}" class="icon-button rtl-reversible" on-click="onNextTap_" disabled="[[is Today_(groupedOffset)]]">
2442 <iron-icon icon="cr:chevron-right"></iron-icon> 2442 <iron-icon icon="cr:chevron-right"></iron-icon>
2443 </button> 2443 </button>
2444 </div> 2444 </div>
2445 </div> 2445 </div>
2446 </template> 2446 </template>
2447 </template> 2447 </template>
2448 </dom-module> 2448 </dom-module>
2449 2449
2450 2450
2451 2451
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
3273 3273
3274 #content, #content > * { 3274 #content, #content > * {
3275 height: 100%; 3275 height: 100%;
3276 } 3276 }
3277 3277
3278 dialog .body { 3278 dialog .body {
3279 white-space: pre-wrap; 3279 white-space: pre-wrap;
3280 } 3280 }
3281 3281
3282 </style> 3282 </style>
3283 <iron-pages id="content" attr-for-selected="id" selected="[[selectedPage_]]" fallback-selection="infinite-list"> 3283 <iron-pages id="content" attr-for-selected="id" selected="[[selectedPage_]]" >
3284 <history-list id="infinite-list" querying="[[queryState.querying]]" search ed-term="[[queryResult.info.term]]"> 3284 <history-list id="infinite-list" querying="[[queryState.querying]]" search ed-term="[[queryResult.info.term]]">
3285 </history-list> 3285 </history-list>
3286 <template is="dom-if" if="[[grouped]]"> 3286 <template is="dom-if" if="[[grouped]]">
3287 <history-grouped-list id="grouped-list" range="[[queryState.range]]" que ry-interval="[[queryResult.info.queryInterval]]" searched-term="[[queryResult.in fo.term]]"> 3287 <history-grouped-list id="grouped-list" range="[[queryState.range]]" que ry-interval="[[queryResult.info.queryInterval]]" searched-term="[[queryResult.in fo.term]]">
3288 </history-grouped-list> 3288 </history-grouped-list>
3289 </template> 3289 </template>
3290 </iron-pages> 3290 </iron-pages>
3291 3291
3292 <template is="cr-lazy-render" id="dialog"> 3292 <template is="cr-lazy-render" id="dialog">
3293 <dialog is="cr-dialog"> 3293 <dialog is="cr-dialog">
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
3548 line-height: 20px; 3548 line-height: 20px;
3549 margin: 24px 0; 3549 margin: 24px 0;
3550 } 3550 }
3551 3551
3552 #footer a { 3552 #footer a {
3553 text-decoration: none; 3553 text-decoration: none;
3554 } 3554 }
3555 3555
3556 </style> 3556 </style>
3557 3557
3558 <iron-selector id="menu" selected="{{selectedPage}}" selectable=".page-item" attr-for-selected="path" fallback-selection="history" on-iron-activate="onSelec torActivate_"> 3558 <iron-selector id="menu" selected="{{selectedPage}}" selectable=".page-item" attr-for-selected="path" on-iron-activate="onSelectorActivate_">
3559 <a href="/" class="page-item" path="history" on-click="onItemClick_"> 3559 <a href="/" class="page-item" path="history" on-click="onItemClick_">
3560 $i18n{historyMenuItem} 3560 $i18n{historyMenuItem}
3561 <paper-ripple></paper-ripple> 3561 <paper-ripple></paper-ripple>
3562 </a> 3562 </a>
3563 <a href="/syncedTabs" class="page-item" path="syncedTabs" on-click="onItem Click_"> 3563 <a href="/syncedTabs" class="page-item" path="syncedTabs" on-click="onItem Click_">
3564 $i18n{openTabsMenuItem} 3564 $i18n{openTabsMenuItem}
3565 <paper-ripple></paper-ripple> 3565 <paper-ripple></paper-ripple>
3566 </a> 3566 </a>
3567 <div class="separator"></div> 3567 <div class="separator"></div>
3568 <a href="chrome://settings/clearBrowserData" on-tap="onClearBrowsingDataTa p_" id="clear-browsing-data"> 3568 <a href="chrome://settings/clearBrowserData" on-tap="onClearBrowsingDataTa p_" id="clear-browsing-data">
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
3717 right: 0; 3717 right: 0;
3718 top: 0; 3718 top: 0;
3719 transition: opacity 500ms; 3719 transition: opacity 500ms;
3720 } 3720 }
3721 3721
3722 :host([toolbar-shadow_]) #drop-shadow { 3722 :host([toolbar-shadow_]) #drop-shadow {
3723 opacity: 1; 3723 opacity: 1;
3724 } 3724 }
3725 3725
3726 </style> 3726 </style>
3727 <history-query-manager query-state="{{queryState_}}" query-result="[[queryRe sult_]]"> 3727 <history-query-manager query-state="{{queryState_}}" query-result="[[queryRe sult_]]" router="[[$$('#router')]]">
3728 </history-query-manager> 3728 </history-query-manager>
3729 <history-router selected-page="{{selectedPage_}}" query-state="[[queryState_ ]]"> 3729 <history-router id="router" selected-page="{{selectedPage_}}" grouped="[[gro uped_]]" query-state="[[queryState_]]">
3730 </history-router> 3730 </history-router>
3731 <history-toolbar id="toolbar" grouped-offset="[[queryState_.groupedOffset]]" grouped-range="[[queryState_.range]]" has-drawer="[[hasDrawer_]]" has-more-resu lts="[[!queryResult_.info.finished]]" is-grouped-mode="[[grouped_]]" query-info= "[[queryResult_.info]]" querying="[[queryState_.querying]]" search-term="[[query State_.searchTerm]]" show-menu-promo="[[showMenuPromo_]]" show-sync-notice="[[sh owSyncNotice_(hasSyncedResults, selectedPage_)]]" spinner-active="[[shouldShowSp inner_(queryState_.querying, 3731 <history-toolbar id="toolbar" grouped-offset="[[queryState_.groupedOffset]]" grouped-range="[[queryState_.range]]" has-drawer="[[hasDrawer_]]" has-more-resu lts="[[!queryResult_.info.finished]]" is-grouped-mode="[[grouped_]]" query-info= "[[queryResult_.info]]" querying="[[queryState_.querying]]" search-term="[[query State_.searchTerm]]" show-menu-promo="[[showMenuPromo_]]" show-sync-notice="[[sh owSyncNotice_(hasSyncedResults, selectedPage_)]]" spinner-active="[[shouldShowSp inner_(queryState_.querying,
3732 queryState_.incremental, 3732 queryState_.incremental,
3733 queryState_.searchTerm)]]"> 3733 queryState_.searchTerm)]]">
3734 </history-toolbar> 3734 </history-toolbar>
3735 3735
3736 <div id="main-container"> 3736 <div id="main-container">
3737 <history-side-bar id="content-side-bar" selected-page="{{selectedPage_}}" show-footer="[[showSidebarFooter]]" hidden$="[[hasDrawer_]]"> 3737 <history-side-bar id="content-side-bar" selected-page="{{selectedPage_}}" show-footer="[[showSidebarFooter]]" hidden$="[[hasDrawer_]]">
3738 </history-side-bar> 3738 </history-side-bar>
3739 <iron-pages id="content" attr-for-selected="path" fallback-selection="hist ory" selected="[[getSelectedPage_(selectedPage_, items)]]" items="{{items}}"> 3739 <iron-pages id="content" attr-for-selected="path" fallback-selection="hist ory" selected="[[getSelectedPage_(selectedPage_, items)]]" items="{{items}}">
(...skipping 13 matching lines...) Expand all
3753 <history-side-bar id="drawer-side-bar" class="drawer-content" selected-p age="{{selectedPage_}}" show-footer="[[showSidebarFooter]]"> 3753 <history-side-bar id="drawer-side-bar" class="drawer-content" selected-p age="{{selectedPage_}}" show-footer="[[showSidebarFooter]]">
3754 </history-side-bar> 3754 </history-side-bar>
3755 </dialog> 3755 </dialog>
3756 </template> 3756 </template>
3757 3757
3758 <iron-media-query query="(max-width: 1023px)" query-matches="{{hasDrawer_}}" > 3758 <iron-media-query query="(max-width: 1023px)" query-matches="{{hasDrawer_}}" >
3759 </iron-media-query> 3759 </iron-media-query>
3760 </template> 3760 </template>
3761 </dom-module> 3761 </dom-module>
3762 <script src="app.crisper.js"></script></body></html> 3762 <script src="app.crisper.js"></script></body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698