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

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

Issue 7685049: ntp4: app install improvements (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rbyers suggestions 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/apps_page.js ('k') | chrome/browser/resources/ntp4/new_tab.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/nav_dot.js
diff --git a/chrome/browser/resources/ntp4/nav_dot.js b/chrome/browser/resources/ntp4/nav_dot.js
index b3bd1e8c8e25dcc8d4630952226b9fe74933a638..81ed3fe8cb3bfcc598f33cf6ddc29c5b5083754c 100644
--- a/chrome/browser/resources/ntp4/nav_dot.js
+++ b/chrome/browser/resources/ntp4/nav_dot.js
@@ -72,6 +72,14 @@ cr.define('ntp4', function() {
},
/**
+ * Gets the associated TilePage.
+ * @return {TilePage}
+ */
+ get page() {
+ return this.page_;
+ },
+
+ /**
* Removes the dot from the page after transitioning to 0 width.
*/
animateRemove: function() {
@@ -184,10 +192,8 @@ cr.define('ntp4', function() {
if (!this.dragWrapper_.isCurrentDragTarget)
e.dataTransfer.dropEffect = 'none';
- else if (ntp4.getCurrentlyDraggingTile())
- e.dataTransfer.dropEffect = 'move';
else
- e.dataTransfer.dropEffect = 'copy';
+ this.page_.setDropEffect(e.dataTransfer);
},
/**
« no previous file with comments | « chrome/browser/resources/ntp4/apps_page.js ('k') | chrome/browser/resources/ntp4/new_tab.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698