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

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

Issue 7038051: NTP4: Add ability to drag links to the apps pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 9 years, 7 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
Index: chrome/browser/resources/ntp4/most_visited_page.js
diff --git a/chrome/browser/resources/ntp4/most_visited_page.js b/chrome/browser/resources/ntp4/most_visited_page.js
index 70af033bd956b970dc28e44b406676fd2617c1af..321bccd3294952f04369830bcb1fb8b1a335990b 100644
--- a/chrome/browser/resources/ntp4/most_visited_page.js
+++ b/chrome/browser/resources/ntp4/most_visited_page.js
@@ -280,8 +280,8 @@ cr.define('ntp4', function() {
},
/** @inheritDoc */
- acceptOutsideDrags: function() {
- return false;
+ shouldAcceptDrag: function(tile, dataTransfer) {
+ return this.contains(tile);
},
/** @inheritDoc */

Powered by Google App Engine
This is Rietveld 408576698