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

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

Issue 2282403002: [MD History] Clear ripple on CBD press. (Closed)
Patch Set: 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
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 8555 matching lines...) Expand 10 before | Expand all | Expand 10 after
8566 onSpacePressed_: function(e) { 8566 onSpacePressed_: function(e) {
8567 e.detail.keyboardEvent.path[0].click(); 8567 e.detail.keyboardEvent.path[0].click();
8568 }, 8568 },
8569 onSelectorActivate_: function() { 8569 onSelectorActivate_: function() {
8570 this.fire('history-close-drawer'); 8570 this.fire('history-close-drawer');
8571 }, 8571 },
8572 onClearBrowsingDataTap_: function(e) { 8572 onClearBrowsingDataTap_: function(e) {
8573 var browserService = md_history.BrowserService.getInstance(); 8573 var browserService = md_history.BrowserService.getInstance();
8574 browserService.recordAction('InitClearBrowsingData'); 8574 browserService.recordAction('InitClearBrowsingData');
8575 browserService.openClearBrowsingData(); 8575 browserService.openClearBrowsingData();
8576 this.$['cbd-ripple'].upAction();
8576 e.preventDefault(); 8577 e.preventDefault();
8577 }, 8578 },
8578 getQueryString_: function(route) { 8579 getQueryString_: function(route) {
8579 return window.location.search; 8580 return window.location.search;
8580 } 8581 }
8581 }); 8582 });
8582 8583
8583 // Copyright 2016 The Chromium Authors. All rights reserved. 8584 // Copyright 2016 The Chromium Authors. All rights reserved.
8584 // Use of this source code is governed by a BSD-style license that can be 8585 // Use of this source code is governed by a BSD-style license that can be
8585 // found in the LICENSE file. 8586 // found in the LICENSE file.
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
8786 8787
8787 case HistoryRange.MONTH: 8788 case HistoryRange.MONTH:
8788 histogramValue = HistoryPageViewHistogram.GROUPED_MONTH; 8789 histogramValue = HistoryPageViewHistogram.GROUPED_MONTH;
8789 break; 8790 break;
8790 } 8791 }
8791 break; 8792 break;
8792 } 8793 }
8793 md_history.BrowserService.getInstance().recordHistogram('History.HistoryPage View', histogramValue, HistoryPageViewHistogram.END); 8794 md_history.BrowserService.getInstance().recordHistogram('History.HistoryPage View', histogramValue, HistoryPageViewHistogram.END);
8794 } 8795 }
8795 }); 8796 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698