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

Issue 215002: GTK: Download item as drag source.... (Closed)

Created:
11 years, 3 months ago by Evan Stade
Modified:
9 years, 6 months ago
Reviewers:
Nico
CC:
chromium-reviews_googlegroups.com, Paul Godavari, brettw, Ben Goodger (Google)
Visibility:
Public.

Description

GTK: Download item as drag source. BUG=21656 TEST=Drag a completed download onto the desktop, or into the tabstrip, or wherever Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26624

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -1 line) Patch
M chrome/browser/gtk/download_item_gtk.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/gtk/download_item_gtk.cc View 5 chunks +25 lines, -0 lines 4 comments Download
M chrome/browser/tab_contents/tab_contents_view_gtk.cc View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 3 (0 generated)
Evan Stade
can you think of any reason the download shelf might disappear during the drag?
11 years, 3 months ago (2009-09-17 00:42:19 UTC) #1
Nico
LG with comments (I seem to be a style stickler, sorry). I can't think of ...
11 years, 3 months ago (2009-09-18 01:05:42 UTC) #2
Evan Stade
11 years, 3 months ago (2009-09-18 02:43:41 UTC) #3
well, if the download shelf did disappear during the drag, it would either crash
or DCHECK the browser (depending on which gtk error we hit), so adding another
DCHECK won't do much. Let's just hope for the best!

http://codereview.chromium.org/215002/diff/1/4
File chrome/browser/gtk/download_item_gtk.cc (right):

http://codereview.chromium.org/215002/diff/1/4#newcode223
Line 223: 
On 2009/09/18 01:05:42, Nico wrote:
> is this newline intentional? i don't care either way, but i rarely see 2
> consecutive newlines in chrome source, and the style guide says something
along
> the lines of "compress vertically" iirc.

nope, fixed

http://codereview.chromium.org/215002/diff/1/4#newcode873
Line 873: item->get_download()->full_path());
On 2009/09/18 01:05:42, Nico wrote:
> This looks like it might fit into one line.

so it does

http://codereview.chromium.org/215002/diff/1/2
File chrome/browser/tab_contents/tab_contents_view_gtk.cc (right):

http://codereview.chromium.org/215002/diff/1/2#newcode250
Line 250: GtkDndUtil::GetAtomForTarget(GtkDndUtil::TEXT_URI_LIST)) {
On 2009/09/18 01:05:42, Nico wrote:
> Previous indentation looked more right to me (and more consistent with the
"else
> if" below).

changes to this file dropped

Powered by Google App Engine
This is Rietveld 408576698