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

Side by Side Diff: chrome/browser/resources/md_history/history_toolbar.js

Issue 2450663003: MD History: hide tooltip promo when drawer is swiped open (Closed)
Patch Set: settings title fix Created 4 years, 1 month 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 Polymer({ 5 Polymer({
6 is: 'history-toolbar', 6 is: 'history-toolbar',
7 properties: { 7 properties: {
8 // Number of history items currently selected. 8 // Number of history items currently selected.
9 // TODO(calamity): bind this to 9 // TODO(calamity): bind this to
10 // listContainer.selectedItem.selectedPaths.length. 10 // listContainer.selectedItem.selectedPaths.length.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 }, 60 },
61 61
62 // The start time of the query range. 62 // The start time of the query range.
63 queryStartTime: String, 63 queryStartTime: String,
64 64
65 // The end time of the query range. 65 // The end time of the query range.
66 queryEndTime: String, 66 queryEndTime: String,
67 67
68 // Whether to show the menu promo (a tooltip that points at the menu button 68 // Whether to show the menu promo (a tooltip that points at the menu button
69 // in narrow mode). 69 // in narrow mode).
70 showMenuPromo_: { 70 showMenuPromo: {
71 type: Boolean, 71 type: Boolean,
72 value: function() { 72 notify: true,
73 return loadTimeData.getBoolean('showMenuPromo');
74 },
75 }, 73 },
76 }, 74 },
77 75
78 /** @return {CrToolbarSearchFieldElement} */ 76 /** @return {CrToolbarSearchFieldElement} */
79 get searchField() { 77 get searchField() {
80 return /** @type {CrToolbarElement} */ (this.$['main-toolbar']) 78 return /** @type {CrToolbarElement} */ (this.$['main-toolbar'])
81 .getSearchField(); 79 .getSearchField();
82 }, 80 },
83 81
84 showSearchField: function() { 82 showSearchField: function() {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // TODO(calamity): Fix the format of these dates. 150 // TODO(calamity): Fix the format of these dates.
153 return loadTimeData.getStringF( 151 return loadTimeData.getStringF(
154 'historyInterval', queryStartTime, queryEndTime); 152 'historyInterval', queryStartTime, queryEndTime);
155 }, 153 },
156 154
157 /** @private */ 155 /** @private */
158 hasDrawerChanged_: function() { 156 hasDrawerChanged_: function() {
159 this.updateStyles(); 157 this.updateStyles();
160 }, 158 },
161 }); 159 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698