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

Side by Side Diff: chrome/browser/resources/md_history/app.crisper.js

Issue 2282403002: [MD History] Clear ripple on CBD press. (Closed)
Patch Set: rebase Created 4 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/app.vulcanized.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 function PromiseResolver() { 4 function PromiseResolver() {
5 this.resolve_; 5 this.resolve_;
6 this.reject_; 6 this.reject_;
7 this.promise_ = new Promise(function(resolve, reject) { 7 this.promise_ = new Promise(function(resolve, reject) {
8 this.resolve_ = resolve; 8 this.resolve_ = resolve;
9 this.reject_ = reject; 9 this.reject_ = reject;
10 }.bind(this)); 10 }.bind(this));
(...skipping 8462 matching lines...) Expand 10 before | Expand all | Expand 10 after
8473 onSpacePressed_: function(e) { 8473 onSpacePressed_: function(e) {
8474 e.detail.keyboardEvent.path[0].click(); 8474 e.detail.keyboardEvent.path[0].click();
8475 }, 8475 },
8476 onSelectorActivate_: function() { 8476 onSelectorActivate_: function() {
8477 this.fire('history-close-drawer'); 8477 this.fire('history-close-drawer');
8478 }, 8478 },
8479 onClearBrowsingDataTap_: function(e) { 8479 onClearBrowsingDataTap_: function(e) {
8480 var browserService = md_history.BrowserService.getInstance(); 8480 var browserService = md_history.BrowserService.getInstance();
8481 browserService.recordAction('InitClearBrowsingData'); 8481 browserService.recordAction('InitClearBrowsingData');
8482 browserService.openClearBrowsingData(); 8482 browserService.openClearBrowsingData();
8483 this.$['cbd-ripple'].upAction();
8483 e.preventDefault(); 8484 e.preventDefault();
8484 }, 8485 },
8485 getQueryString_: function(route) { 8486 getQueryString_: function(route) {
8486 return window.location.search; 8487 return window.location.search;
8487 } 8488 }
8488 }); 8489 });
8489 8490
8490 // Copyright 2016 The Chromium Authors. All rights reserved. 8491 // Copyright 2016 The Chromium Authors. All rights reserved.
8491 // Use of this source code is governed by a BSD-style license that can be 8492 // Use of this source code is governed by a BSD-style license that can be
8492 // found in the LICENSE file. 8493 // found in the LICENSE file.
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
8697 8698
8698 case HistoryRange.MONTH: 8699 case HistoryRange.MONTH:
8699 histogramValue = HistoryPageViewHistogram.GROUPED_MONTH; 8700 histogramValue = HistoryPageViewHistogram.GROUPED_MONTH;
8700 break; 8701 break;
8701 } 8702 }
8702 break; 8703 break;
8703 } 8704 }
8704 md_history.BrowserService.getInstance().recordHistogram('History.HistoryPage View', histogramValue, HistoryPageViewHistogram.END); 8705 md_history.BrowserService.getInstance().recordHistogram('History.HistoryPage View', histogramValue, HistoryPageViewHistogram.END);
8705 } 8706 }
8706 }); 8707 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/app.vulcanized.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698