Home
last modified time | relevance | path

Searched refs:newCardIndex (Results 1 – 2 of 2) sorted by relevance

/external/chromium/chrome/browser/resources/ntp4/
Dcard_slider.js217 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/
Dslider.js261 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;