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

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: sync and address comments in patch 7 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
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..ffaa5db3c67bb801cfadac0845f80f7ea7f60a7a 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, ' +
@@ -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);

Powered by Google App Engine
This is Rietveld 408576698