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

Issue 1567023: [Mac] Location icon in omnibox as drag source. (Closed)

Created:
10 years, 8 months ago by Scott Hess - ex-Googler
Modified:
9 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

[Mac] Location icon in omnibox as drag source. Wire up location icon to allow dragging if the user click-drags or click-holds. Otherwise falls through to the page-info display. BUG=37865 TEST=When omnibox shows an URL, click-drag the globe initiates an URL drag. TEST=Drop it in web content. TEST=Drop it in safari. TEST=Drop it on bookmark bar. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43971

Patch Set 1 #

Total comments: 17

Patch Set 2 : Nits and fix tests. #

Total comments: 6

Patch Set 3 : more nits #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -25 lines) Patch
M chrome/browser/cocoa/autocomplete_text_field_cell.mm View 1 2 2 chunks +50 lines, -6 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_unittest.mm View 2 5 chunks +18 lines, -19 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.h View 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.mm View 1 2 3 chunks +23 lines, -0 lines 1 comment Download

Messages

Total messages: 12 (0 generated)
Scott Hess - ex-Googler
10 years, 8 months ago (2010-04-05 21:38:58 UTC) #1
viettrungluu
Seems reasonable to me, though I'm adding Pink since more eyes is better. unit_tests seem ...
10 years, 8 months ago (2010-04-05 23:12:14 UTC) #2
Scott Hess - ex-Googler
On 2010/04/05 23:12:14, viettrungluu wrote: > unit_tests seem broken, btw. Sigh, will go look, sorry ...
10 years, 8 months ago (2010-04-05 23:47:53 UTC) #3
Scott Hess - ex-Googler
On 2010/04/05 23:47:53, shess wrote: > On 2010/04/05 23:12:14, viettrungluu wrote: > > unit_tests seem ...
10 years, 8 months ago (2010-04-06 00:12:08 UTC) #4
viettrungluu
http://codereview.chromium.org/1567023/diff/1/4 File chrome/browser/cocoa/location_bar_view_mac.mm (right): http://codereview.chromium.org/1567023/diff/1/4#newcode627 chrome/browser/cocoa/location_bar_view_mac.mm:627: NSString* title = base::SysUTF16ToNSString(tab->GetTitle()); On 2010/04/05 23:47:53, shess wrote: ...
10 years, 8 months ago (2010-04-06 00:43:13 UTC) #5
pink (ping after 24hrs)
Mostly LGTM. I still am unsure if anyone will ever find this, though. The thing ...
10 years, 8 months ago (2010-04-06 15:51:04 UTC) #6
Avi (use Gerrit)
On 2010/04/06 15:51:04, pink wrote: > The thing > I expect to drag is the ...
10 years, 8 months ago (2010-04-06 15:58:08 UTC) #7
pink (ping after 24hrs)
So which is this making draggable? The globe or the star? The star appears to ...
10 years, 8 months ago (2010-04-06 16:00:54 UTC) #8
Scott Hess - ex-Googler
On 2010/04/06 16:00:54, pink wrote: > So which is this making draggable? The globe or ...
10 years, 8 months ago (2010-04-06 22:36:55 UTC) #9
Scott Hess - ex-Googler
http://codereview.chromium.org/1567023/diff/1/4 File chrome/browser/cocoa/location_bar_view_mac.mm (right): http://codereview.chromium.org/1567023/diff/1/4#newcode632 chrome/browser/cocoa/location_bar_view_mac.mm:632: [pboard setDataForURL:url title:title]; On 2010/04/06 00:43:13, viettrungluu wrote: > ...
10 years, 8 months ago (2010-04-07 21:15:26 UTC) #10
Scott Hess - ex-Googler
Ping? Not that I'm impatient, but if we hurry we'll have platform-parity with Linux on ...
10 years, 8 months ago (2010-04-08 17:14:50 UTC) #11
viettrungluu
10 years, 8 months ago (2010-04-08 17:23:18 UTC) #12
LGTM.

http://codereview.chromium.org/1567023/diff/15002/18004
File chrome/browser/cocoa/location_bar_view_mac.mm (right):

http://codereview.chromium.org/1567023/diff/15002/18004#newcode623
chrome/browser/cocoa/location_bar_view_mac.mm:623: DCHECK(tab);
This seems redundant, since it'll crash on the next line anyway. <shrug>

Powered by Google App Engine
This is Rietveld 408576698