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

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

Issue 7592001: ntp4: most visited dragging onto apps page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.css ('k') | chrome/browser/resources/ntp4/recently_closed.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/new_tab.js
diff --git a/chrome/browser/resources/ntp4/new_tab.js b/chrome/browser/resources/ntp4/new_tab.js
index a25dc363a1a4d7cd16bd2a3e94c1c2f9f6811b35..5c0ba441268fc69a1386d31e218ecd9e7bbf0f42 100644
--- a/chrome/browser/resources/ntp4/new_tab.js
+++ b/chrome/browser/resources/ntp4/new_tab.js
@@ -459,7 +459,8 @@ cr.define('ntp4', function() {
appendAppsPage(tempPage, '');
updateSliderCards();
- $('footer').classList.add('dragging-mode');
+ if (ntp4.getCurrentlyDraggingTile().firstChild.canBeRemoved())
+ $('footer').classList.add('showing-trash-mode');
}
/**
@@ -478,7 +479,7 @@ cr.define('ntp4', function() {
saveAppPageName(tempPage, '');
}
- $('footer').classList.remove('dragging-mode');
+ $('footer').classList.remove('showing-trash-mode');
}
/**
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.css ('k') | chrome/browser/resources/ntp4/recently_closed.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698