Searched refs:newCardIndex (Results 1 – 3 of 3) sorted by relevance
/external/chromium_org/ui/webui/resources/js/cr/ui/ |
D | card_slider.js | 292 var newCardIndex = this.currentCard + pagesToScroll; 293 newCardIndex = Math.min(this.cards_.length - 1, 294 Math.max(0, newCardIndex)); 295 this.selectCard(newCardIndex, true); 303 var newCardIndex = this.currentCard + pagesToScroll; 304 newCardIndex = Math.min(this.cards_.length - 1, 305 Math.max(0, newCardIndex)); 306 this.selectCard(newCardIndex, true); 493 selectCard: function(newCardIndex, argument 497 this.assertValidIndex_(newCardIndex); [all …]
|
/external/chromium/chrome/browser/resources/ntp4/ |
D | card_slider.js | 217 var newCardIndex = this.currentCard + pagesToScroll; 218 newCardIndex = Math.min(this.cards_.length, 219 Math.max(0, newCardIndex)); 220 this.selectCard(newCardIndex, true); 305 var newCardIndex = Math.round(-newX / this.cardWidth_); 307 if (newCardIndex == this.currentCard && Math.abs(velocity) > 312 newCardIndex += velocity > 0 ? -1 : 1; 315 this.selectCard(newCardIndex, /* animate */ true); 336 selectCard: function(newCardIndex, opt_animate) { argument 337 var isChangingCard = newCardIndex >= 0 && [all …]
|
/external/chromium/chrome/browser/resources/touch_ntp/ |
D | slider.js | 261 var newCardIndex = Math.round(-newX / this.cardWidth_); 263 if (newCardIndex == this.currentCard && Math.abs(velocity) > 268 newCardIndex += velocity > 0 ? -1 : 1; 271 this.selectCard(newCardIndex, /* animate */ true); 292 selectCard: function(newCardIndex, opt_animate) { argument 293 var isChangingCard = newCardIndex >= 0 && 294 newCardIndex < this.cards_.length && 295 newCardIndex != this.currentCard; 299 this.currentCard_ = newCardIndex;
|