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

Issue 159419: Correctly update drag status for drags over renderer. This makes things look ... (Closed)

Created:
11 years, 5 months ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

Gtk: DnD extravaganza - Correctly update drag status for drags over renderer. This makes things look quite a bit better. - Rework the dnd utils so that we specify the drag targets in the order we prefer them (for destinations) - Refactor code in bookmark bar so folder and toolbar drags share more code - Allow bookmark bar to accept URI lists and plain text drags (for plain text we require the text to be a valid url) BUG=17431 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21767

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : do what Brett says #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -143 lines) Patch
M chrome/browser/bookmarks/bookmark_utils.h View 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_utils.cc View 2 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/gtk/bookmark_bar_gtk.h View 2 3 chunks +11 lines, -15 lines 0 comments Download
M chrome/browser/gtk/bookmark_bar_gtk.cc View 2 5 chunks +65 lines, -66 lines 1 comment Download
M chrome/browser/gtk/bookmark_manager_gtk.cc View 2 4 chunks +5 lines, -6 lines 1 comment Download
M chrome/browser/gtk/bookmark_utils_gtk.h View 2 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/gtk/bookmark_utils_gtk.cc View 2 3 chunks +26 lines, -3 lines 0 comments Download
M chrome/browser/gtk/browser_toolbar_gtk.cc View 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/gtk/gtk_dnd_util.h View 2 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/gtk/gtk_dnd_util.cc View 2 2 chunks +44 lines, -29 lines 0 comments Download
M chrome/browser/gtk/tabs/tab_strip_gtk.cc View 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_gtk.cc View 1 2 4 chunks +6 lines, -17 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Evan Stade
11 years, 5 months ago (2009-07-27 21:55:42 UTC) #1
Elliot Glaysher
Bookmarks and gtk utils parts LGTM.
11 years, 5 months ago (2009-07-27 22:06:04 UTC) #2
tony
LGTM http://codereview.chromium.org/159419/diff/5/13 File chrome/browser/gtk/gtk_dnd_util.h (right): http://codereview.chromium.org/159419/diff/5/13#newcode46 Line 46: static void SetDestTargetList(GtkWidget* dest, int target_code, ...); ...
11 years, 5 months ago (2009-07-27 22:31:02 UTC) #3
Evan Stade
http://codereview.chromium.org/159419/diff/5/13 File chrome/browser/gtk/gtk_dnd_util.h (right): http://codereview.chromium.org/159419/diff/5/13#newcode46 Line 46: static void SetDestTargetList(GtkWidget* dest, int target_code, ...); On ...
11 years, 5 months ago (2009-07-27 22:37:06 UTC) #4
brettw
I'd personally prefer passing an int* and calling it with something like int foo[3] = ...
11 years, 5 months ago (2009-07-27 22:38:02 UTC) #5
tony
On 2009/07/27 22:37:06, Evan Stade wrote: > http://codereview.chromium.org/159419/diff/5/13 > File chrome/browser/gtk/gtk_dnd_util.h (right): > > http://codereview.chromium.org/159419/diff/5/13#newcode46 ...
11 years, 5 months ago (2009-07-27 23:07:22 UTC) #6
Evan Stade
did it the brettw way
11 years, 5 months ago (2009-07-27 23:22:44 UTC) #7
tony
11 years, 5 months ago (2009-07-27 23:33:03 UTC) #8
LGTM

http://codereview.chromium.org/159419/diff/1012/45
File chrome/browser/gtk/bookmark_bar_gtk.cc (right):

http://codereview.chromium.org/159419/diff/1012/45#newcode51
Line 51: const int kDestTargetList[] = { GtkDndUtil::CHROME_BOOKMARK_ITEM,
Nit: Comment?

http://codereview.chromium.org/159419/diff/1012/41
File chrome/browser/gtk/bookmark_manager_gtk.cc (right):

http://codereview.chromium.org/159419/diff/1012/41#newcode57
Line 57: const int kDestTargetList[] = { GtkDndUtil::CHROME_BOOKMARK_ITEM, 0 };
Nit: Comment?

Powered by Google App Engine
This is Rietveld 408576698