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

Issue 6462009: Allow dragging and dropping of URLs to any portion of the toolbar view.... (Closed)

Created:
9 years, 10 months ago by Roger Tawa OOO till Jul 10th
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews
Visibility:
Public.

Description

Allow dragging and dropping of URLs to any portion of the toolbar view. BUG=9181 TEST=Drag a URL or ay text to the toolbar area, including back/forward/reload buttons, and the browser action/menu area. This should not interfere with dragging and dropping of browser actions. Test that browser actions behave as they should (i.e. should be able to change their order in the toolbar). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75288

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 13

Patch Set 3 : Fix to support drag and drop of strings on windows, also addressing Scott's comments #

Patch Set 4 : Fix for returning only on drop type in windows implementation #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 4

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -89 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_gtk.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc View 1 2 3 4 5 6 6 chunks +43 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_views.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_views.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_win.h View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_win.cc View 1 2 3 4 5 6 7 7 chunks +116 lines, -86 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.cc View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Roger Tawa OOO till Jul 10th
9 years, 10 months ago (2011-02-08 21:48:35 UTC) #1
Peter Kasting
Is any of this duplicated elsewhere, e.g. for handling drops on the tab or omnibox? ...
9 years, 10 months ago (2011-02-08 22:34:04 UTC) #2
Roger Tawa OOO till Jul 10th
Hi Scott, Changing reviewer to you as requested by Peter. I have not tested this ...
9 years, 10 months ago (2011-02-10 18:43:47 UTC) #3
sky
http://codereview.chromium.org/6462009/diff/14022/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc File chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (right): http://codereview.chromium.org/6462009/diff/14022/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc#newcode862 chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc:862: const ui::OSExchangeData& data = event.data(); What if the drag ...
9 years, 10 months ago (2011-02-11 01:06:07 UTC) #4
Roger Tawa OOO till Jul 10th
Thanks Scott. Please take another look. http://codereview.chromium.org/6462009/diff/14022/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc File chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (right): http://codereview.chromium.org/6462009/diff/14022/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc#newcode862 chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc:862: const ui::OSExchangeData& data ...
9 years, 10 months ago (2011-02-11 15:20:17 UTC) #5
sky
http://codereview.chromium.org/6462009/diff/14022/chrome/browser/autocomplete/autocomplete_edit_view_win.cc File chrome/browser/autocomplete/autocomplete_edit_view_win.cc (right): http://codereview.chromium.org/6462009/diff/14022/chrome/browser/autocomplete/autocomplete_edit_view_win.cc#newcode952 chrome/browser/autocomplete/autocomplete_edit_view_win.cc:952: return event.source_operations(); On 2011/02/11 15:20:17, Roger Tawa wrote: > ...
9 years, 10 months ago (2011-02-11 17:14:53 UTC) #6
Roger Tawa OOO till Jul 10th
Thanks Scott. Changes uploaded. http://codereview.chromium.org/6462009/diff/14022/chrome/browser/autocomplete/autocomplete_edit_view_win.cc File chrome/browser/autocomplete/autocomplete_edit_view_win.cc (right): http://codereview.chromium.org/6462009/diff/14022/chrome/browser/autocomplete/autocomplete_edit_view_win.cc#newcode952 chrome/browser/autocomplete/autocomplete_edit_view_win.cc:952: return event.source_operations(); On 2011/02/11 17:14:53, ...
9 years, 10 months ago (2011-02-11 21:35:26 UTC) #7
sky
http://codereview.chromium.org/6462009/diff/14022/chrome/browser/ui/views/toolbar_view.cc File chrome/browser/ui/views/toolbar_view.cc (right): http://codereview.chromium.org/6462009/diff/14022/chrome/browser/ui/views/toolbar_view.cc#newcode617 chrome/browser/ui/views/toolbar_view.cc:617: return ui::DragDropTypes::DRAG_COPY; On 2011/02/11 21:35:26, Roger Tawa wrote: > ...
9 years, 10 months ago (2011-02-11 23:18:50 UTC) #8
Roger Tawa OOO till Jul 10th
Hi Scott, As is, this change allows you to drop any string selection from the ...
9 years, 10 months ago (2011-02-12 00:19:04 UTC) #9
sky
On Fri, Feb 11, 2011 at 4:18 PM, Roger Tawa <rogerta@chromium.org> wrote: > Hi Scott, ...
9 years, 10 months ago (2011-02-12 00:48:15 UTC) #10
Roger Tawa OOO till Jul 10th
Thanks Scott. All your comments have been addressed. Please take another look.
9 years, 10 months ago (2011-02-15 15:02:12 UTC) #11
sky
I thought of a different approach that doesn't involve more methods on the edit_view. Can ...
9 years, 10 months ago (2011-02-15 19:05:50 UTC) #12
sky
One comment. I like the approach of centralizing the handling of the drop in the ...
9 years, 10 months ago (2011-02-15 19:35:44 UTC) #13
Roger Tawa OOO till Jul 10th
Hi Scott, I don't believe its possible to remove the drop target from the edit ...
9 years, 10 months ago (2011-02-15 19:50:07 UTC) #14
sky
9 years, 10 months ago (2011-02-15 23:02:25 UTC) #15
Ya, I think you're right.

LGTM

On Tue, Feb 15, 2011 at 11:50 AM,  <rogerta@chromium.org> wrote:
> Hi Scott,
>
> I don't believe its possible to remove the drop target from the edit view.
> Doing so would break dropping partially selected text within the omnibox
> itself.
>  Also, search autocomplete_edit_view_win.cc for calls to in_drag() to see
> where
> other things would break.
>
> Even if it were possible to remove the edit view drop target, I don't
> believe
> this would remove the need for a new method in AutocompleteEditView.  The
> implementation of AutocompleteEditView::OnPerformDrop() is not platform
> agnostic.
>
>
>
>
http://codereview.chromium.org/6462009/diff/51003/chrome/browser/autocomplete...
> File chrome/browser/autocomplete/autocomplete_edit_view_win.cc (right):
>
>
http://codereview.chromium.org/6462009/diff/51003/chrome/browser/autocomplete...
> chrome/browser/autocomplete/autocomplete_edit_view_win.cc:104: bool
> IsDrag(const POINT& origin, const POINT& current) {
> On 2011/02/15 19:05:50, sky wrote:
>>
>> Use views::View::ExeceededDragThreshold instead
>
> Done.
>
>
http://codereview.chromium.org/6462009/diff/51003/chrome/browser/autocomplete...
> chrome/browser/autocomplete/autocomplete_edit_view_win.cc:228: //
> OnDragOver() always returns only one effect type.  We create the event
> On 2011/02/15 19:05:50, sky wrote:
>>
>> Nuke this comment, it isn't useful.
>
> Done.
>
> http://codereview.chromium.org/6462009/
>

Powered by Google App Engine
This is Rietveld 408576698