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

Issue 7592001: ntp4: most visited dragging onto apps page (Closed)

Created:
9 years, 4 months ago by Evan Stade
Modified:
9 years, 4 months ago
Reviewers:
Rick Byers
CC:
chromium-reviews, estade+watch_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

ntp4: most visited dragging onto apps page You can now: - drag a most visited tile onto an apps page to get an app for it - drag a most visited tile onto the trash (cool animations) - blacklisting a most visited tile with the [x] looks better - you don't see the trash icon show up for things that can't be trashed (as opposed to being able to drag onto trash but having it do nothing) BUG=none TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95856

Patch Set 1 #

Patch Set 2 : drag mv to trash #

Patch Set 3 : most visited polish #

Total comments: 12

Patch Set 4 : review comments and a fix for dropping mv on nav dots #

Total comments: 2

Patch Set 5 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -71 lines) Patch
M chrome/browser/resources/ntp4/apps_page.js View 1 2 3 3 chunks +49 lines, -2 lines 0 comments Download
M chrome/browser/resources/ntp4/most_visited_page.css View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/most_visited_page.js View 1 2 3 6 chunks +39 lines, -1 line 0 comments Download
M chrome/browser/resources/ntp4/new_tab.css View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/ntp4/new_tab.js View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/ntp4/recently_closed.css View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/ntp4/tile_page.css View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/resources/ntp4/tile_page.js View 1 2 3 4 6 chunks +38 lines, -48 lines 0 comments Download
M chrome/browser/resources/ntp4/trash.js View 1 2 2 chunks +3 lines, -14 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Evan Stade
9 years, 4 months ago (2011-08-06 01:38:20 UTC) #1
Rick Byers
[Tried sending this this morning but just realized rietveld had an error - trying again] ...
9 years, 4 months ago (2011-08-08 17:26:56 UTC) #2
Evan Stade
http://codereview.chromium.org/7592001/diff/1004/chrome/browser/resources/ntp4/apps_page.js File chrome/browser/resources/ntp4/apps_page.js (right): http://codereview.chromium.org/7592001/diff/1004/chrome/browser/resources/ntp4/apps_page.js#newcode342 chrome/browser/resources/ntp4/apps_page.js:342: * @return {boolean} True if the app can be ...
9 years, 4 months ago (2011-08-08 18:26:58 UTC) #3
Rick Byers
LGTM with one little suggestion http://codereview.chromium.org/7592001/diff/9001/chrome/browser/resources/ntp4/tile_page.js File chrome/browser/resources/ntp4/tile_page.js (right): http://codereview.chromium.org/7592001/diff/9001/chrome/browser/resources/ntp4/tile_page.js#newcode923 chrome/browser/resources/ntp4/tile_page.js:923: this.addDragData(null, this.tileElements_.length - 1); ...
9 years, 4 months ago (2011-08-08 18:37:03 UTC) #4
Evan Stade
9 years, 4 months ago (2011-08-08 20:42:49 UTC) #5
http://codereview.chromium.org/7592001/diff/9001/chrome/browser/resources/ntp...
File chrome/browser/resources/ntp4/tile_page.js (right):

http://codereview.chromium.org/7592001/diff/9001/chrome/browser/resources/ntp...
chrome/browser/resources/ntp4/tile_page.js:923: this.addDragData(null,
this.tileElements_.length - 1);
On 2011/08/08 18:37:03, Rick Byers wrote:
> Seems a little ugly that you have to pass null as the dataTransfer here.  You
> could fix this by having two public methods (addDragData just for the case of
a
> currentlyDraggingTile, and addOutsideData for the other case).  Or you could
> just add a comment to the addDragData function definition below saying that
> dataTransfer is permitted to be null ONLY WHEN currentlyDraggingTile is set.

Done.

Powered by Google App Engine
This is Rietveld 408576698