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

Unified Diff: chrome/browser/resources/ntp4/tile_page.js

Issue 8423055: [Aura] Initial app list webui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove grabber.js Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/ntp4/page_switcher.js ('k') | chrome/browser/resources/ntp4/touch_handler.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/tile_page.js
diff --git a/chrome/browser/resources/ntp4/tile_page.js b/chrome/browser/resources/ntp4/tile_page.js
index 32510a501469a9119f74664cbe5855f65c337975..b5ab15d0da0b41a68dd75cc9b1a97e31b9056570 100644
--- a/chrome/browser/resources/ntp4/tile_page.js
+++ b/chrome/browser/resources/ntp4/tile_page.js
@@ -125,7 +125,7 @@ cr.define('ntp4', function() {
this.classList.add('dragging');
// offsetLeft is mirrored in RTL. Un-mirror it.
- var offsetLeft = ntp4.isRTL() ?
+ var offsetLeft = isRTL() ?
this.parentNode.clientWidth - this.offsetLeft :
this.offsetLeft;
this.dragOffsetX = e.x - offsetLeft - this.parentNode.offsetLeft;
@@ -232,7 +232,7 @@ cr.define('ntp4', function() {
this.appendChild(clone);
this.doppleganger_ = clone;
- if (ntp4.isRTL())
+ if (isRTL())
x *= -1;
this.doppleganger_.style.WebkitTransform = 'translate(' + x + 'px, ' +
@@ -446,7 +446,7 @@ cr.define('ntp4', function() {
this.addEventListener('mousewheel', this.onMouseWheel_);
this.content_.addEventListener('scroll', this.onScroll_.bind(this));
- this.dragWrapper_ = new DragWrapper(this.tileGrid_, this);
+ this.dragWrapper_ = new cr.ui.DragWrapper(this.tileGrid_, this);
this.addEventListener('cardselected', this.handleCardSelection_);
this.addEventListener('carddeselected', this.handleCardDeselection_);
@@ -828,7 +828,7 @@ cr.define('ntp4', function() {
if (col < 0 || col >= layout.numRowTiles)
return -1;
- if (ntp4.isRTL())
+ if (isRTL())
col = layout.numRowTiles - 1 - col;
var row = Math.floor((y - gridClientRect.top) / layout.rowHeight);
« no previous file with comments | « chrome/browser/resources/ntp4/page_switcher.js ('k') | chrome/browser/resources/ntp4/touch_handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698