OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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-app', | 6 is: 'history-app', |
7 | 7 |
8 properties: { | 8 properties: { |
9 showSidebarFooter: Boolean, | 9 showSidebarFooter: Boolean, |
10 | 10 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 /** | 258 /** |
259 * This computed binding is needed to make the iron-pages selector update when | 259 * This computed binding is needed to make the iron-pages selector update when |
260 * the synced-device-manager is instantiated for the first time. Otherwise the | 260 * the synced-device-manager is instantiated for the first time. Otherwise the |
261 * fallback selection will continue to be used after the corresponding item is | 261 * fallback selection will continue to be used after the corresponding item is |
262 * added as a child of iron-pages. | 262 * added as a child of iron-pages. |
263 * @param {string} selectedPage | 263 * @param {string} selectedPage |
264 * @param {Array} items | 264 * @param {Array} items |
265 * @return {string} | 265 * @return {string} |
266 * @private | 266 * @private |
267 */ | 267 */ |
268 getSelectedPage_(selectedPage, items) { | 268 getSelectedPage_: function(selectedPage, items) { |
269 return selectedPage; | 269 return selectedPage; |
270 }, | 270 }, |
271 | 271 |
272 /** @private */ | 272 /** @private */ |
273 closeDrawer_: function() { | 273 closeDrawer_: function() { |
274 var drawer = this.$$('#drawer'); | 274 var drawer = this.$$('#drawer'); |
275 if (drawer) | 275 if (drawer) |
276 drawer.close(); | 276 drawer.close(); |
277 }, | 277 }, |
278 }); | 278 }); |
OLD | NEW |