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

Issue 1841813002: Update AutocompleteTextFieldEditor to use non-deprecated dragging APIs. (Closed)

Created:
4 years, 8 months ago by erikchen
Modified:
4 years, 8 months ago
CC:
chromium-reviews, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update AutocompleteTextFieldEditor to use non-deprecated dragging APIs. This CL theoretically should not produce any behavior change. This CL replaces the method -[NSView dragImage:...] with -[NSView beginDraggingSessionWithItems:...]. There are two major differences. 1. The new API is asynchronous, whereas the old one ran a nested run loop. This CL runs a nested run loop to maintain the previous behavior. 2. The new API makes use of some new terminology and protocols (NSDraggingSession) but the underlying logic is still the same. This CL also fixes some improper uses of NSPasteboard in clipboard_mac.mm. BUG=592663 Committed: https://crrev.com/df2f225a8b0e9bb797a0a8667ea601ac67941e28 Cr-Commit-Position: refs/heads/master@{#384739}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Comments from mark@. #

Patch Set 6 : Compile error. #

Patch Set 7 : Fix some improper uses of NSPasteboard in clipboard_mac. #

Patch Set 8 : Fix test. #

Patch Set 9 : Rebase. #

Patch Set 10 : Don't overwrite in ClipboardMac::WriteBookmark. #

Total comments: 4

Patch Set 11 : Comments from avi. #

Messages

Total messages: 43 (20 generated)
erikchen
mark: Please review.
4 years, 8 months ago (2016-03-30 19:47:59 UTC) #4
Mark Mentovai
LGTM https://codereview.chromium.org/1841813002/diff/60001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm (right): https://codereview.chromium.org/1841813002/diff/60001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm#newcode29 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm:29: // Set to true when an instance of ...
4 years, 8 months ago (2016-03-30 19:59:08 UTC) #5
erikchen
note: I manually tested that dragging from omnibox still works. https://codereview.chromium.org/1841813002/diff/60001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm (right): https://codereview.chromium.org/1841813002/diff/60001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm#newcode29 ...
4 years, 8 months ago (2016-03-30 20:05:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841813002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841813002/80001
4 years, 8 months ago (2016-03-30 20:05:54 UTC) #9
Mark Mentovai
LGTM
4 years, 8 months ago (2016-03-30 20:06:49 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/202566)
4 years, 8 months ago (2016-03-30 20:42:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841813002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841813002/100001
4 years, 8 months ago (2016-03-30 20:46:10 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/202591)
4 years, 8 months ago (2016-03-30 22:20:34 UTC) #17
erikchen
avi: Please review ui/
4 years, 8 months ago (2016-03-31 20:58:35 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841813002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841813002/120001
4 years, 8 months ago (2016-03-31 21:00:48 UTC) #22
Avi (use Gerrit)
LGTM
4 years, 8 months ago (2016-03-31 21:17:07 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/203395)
4 years, 8 months ago (2016-03-31 23:59:32 UTC) #25
erikchen
avi: Please review the diff between patch sets 7 and 8. I'm not super happy ...
4 years, 8 months ago (2016-04-01 19:59:40 UTC) #26
Avi (use Gerrit)
Weird. Still lgtm.
4 years, 8 months ago (2016-04-01 20:04:52 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841813002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841813002/160001
4 years, 8 months ago (2016-04-01 20:30:29 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841813002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841813002/180001
4 years, 8 months ago (2016-04-01 21:04:37 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/115422) linux_chromium_chromeos_compile_dbg_ng on ...
4 years, 8 months ago (2016-04-01 21:13:36 UTC) #34
erikchen
avi: Please review, again. Sorry. Based on the fact that ClipboardMac::WriteBookmark calls addTypes: instead of ...
4 years, 8 months ago (2016-04-01 21:32:07 UTC) #35
Avi (use Gerrit)
lgtm Nits. https://codereview.chromium.org/1841813002/diff/200001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm (right): https://codereview.chromium.org/1841813002/diff/200001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm#newcode26 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm:26: @end base/mac/sdk_forward_declarations.h ? https://codereview.chromium.org/1841813002/diff/200001/ui/base/clipboard/clipboard_mac.mm File ui/base/clipboard/clipboard_mac.mm (right): ...
4 years, 8 months ago (2016-04-01 22:31:25 UTC) #36
erikchen
https://codereview.chromium.org/1841813002/diff/200001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm (right): https://codereview.chromium.org/1841813002/diff/200001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm#newcode26 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm:26: @end On 2016/04/01 22:31:25, Avi wrote: > base/mac/sdk_forward_declarations.h ? ...
4 years, 8 months ago (2016-04-01 22:41:09 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841813002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841813002/220001
4 years, 8 months ago (2016-04-01 22:42:12 UTC) #40
commit-bot: I haz the power
Committed patchset #11 (id:220001)
4 years, 8 months ago (2016-04-02 00:03:54 UTC) #41
commit-bot: I haz the power
4 years, 8 months ago (2016-04-02 00:05:25 UTC) #43
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/df2f225a8b0e9bb797a0a8667ea601ac67941e28
Cr-Commit-Position: refs/heads/master@{#384739}

Powered by Google App Engine
This is Rietveld 408576698