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

Issue 1815053002: Update BookmarkBarController to use non-deprecated dragging APIs. (Closed)

Created:
4 years, 9 months ago by erikchen
Modified:
4 years, 9 months ago
CC:
chromium-reviews, tfarina, noyau+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@temp20_107_bluetooth
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update BookmarkBarController 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 three 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, NSDraggingSource, etc.) but the underlying logic is still the same. This CL renames some methods and variables. 3. The new API requires that custom PasteBoard types use reverse DNS notation. BUG=592663 Committed: https://crrev.com/f2200abc5d620cc7495635767bf833aacd7af48f Cr-Commit-Position: refs/heads/master@{#382722}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : REbase. #

Patch Set 4 : Compile error. #

Patch Set 5 : Fix test. #

Patch Set 6 : Test errors. #

Total comments: 4

Patch Set 7 : Comments from avi. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -42 lines) Patch
M base/mac/sdk_forward_declarations.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_button.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm View 1 2 3 4 5 6 11 chunks +55 lines, -33 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_button_unittest.mm View 1 2 3 4 5 1 chunk +19 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.mm View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1815053002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1815053002/20001
4 years, 9 months ago (2016-03-18 00:46:44 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/37383) android_chromium_gn_compile_dbg on ...
4 years, 9 months ago (2016-03-18 00:51:24 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1815053002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1815053002/40001
4 years, 9 months ago (2016-03-18 00:56:43 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/37378) chromeos_daisy_chromium_compile_only_ng on ...
4 years, 9 months ago (2016-03-18 01:00:38 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1815053002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1815053002/60001
4 years, 9 months ago (2016-03-18 16:54:53 UTC) #11
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/197407)
4 years, 9 months ago (2016-03-18 18:14:51 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1815053002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1815053002/80001
4 years, 9 months ago (2016-03-18 18:44:02 UTC) #15
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/197507)
4 years, 9 months ago (2016-03-18 19:02:39 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1815053002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1815053002/100001
4 years, 9 months ago (2016-03-18 20:14:10 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-18 21:27:47 UTC) #21
erikchen
avi: Please review.
4 years, 9 months ago (2016-03-18 21:33:28 UTC) #23
Avi (use Gerrit)
Reasonable. Some questions. https://codereview.chromium.org/1815053002/diff/100001/chrome/browser/ui/cocoa/bookmarks/bookmark_button.h File chrome/browser/ui/cocoa/bookmarks/bookmark_button.h (left): https://codereview.chromium.org/1815053002/diff/100001/chrome/browser/ui/cocoa/bookmarks/bookmark_button.h#oldcode193 chrome/browser/ui/cocoa/bookmarks/bookmark_button.h:193: @interface BookmarkButton : DraggableButton<ThemedWindowDrawing> { Are ...
4 years, 9 months ago (2016-03-18 21:41:03 UTC) #24
erikchen
avi: PTAL https://codereview.chromium.org/1815053002/diff/100001/chrome/browser/ui/cocoa/bookmarks/bookmark_button.h File chrome/browser/ui/cocoa/bookmarks/bookmark_button.h (left): https://codereview.chromium.org/1815053002/diff/100001/chrome/browser/ui/cocoa/bookmarks/bookmark_button.h#oldcode193 chrome/browser/ui/cocoa/bookmarks/bookmark_button.h:193: @interface BookmarkButton : DraggableButton<ThemedWindowDrawing> { On 2016/03/18 ...
4 years, 9 months ago (2016-03-18 22:20:35 UTC) #25
Avi (use Gerrit)
lgtm
4 years, 9 months ago (2016-03-18 22:28:15 UTC) #26
erikchen
mark: Please review base/
4 years, 9 months ago (2016-03-18 23:08:24 UTC) #28
Mark Mentovai
LGTM
4 years, 9 months ago (2016-03-22 22:01:13 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1815053002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1815053002/120001
4 years, 9 months ago (2016-03-22 22:04:04 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 9 months ago (2016-03-22 23:03:11 UTC) #32
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/f2200abc5d620cc7495635767bf833aacd7af48f Cr-Commit-Position: refs/heads/master@{#382722}
4 years, 9 months ago (2016-03-22 23:05:39 UTC) #34
erikchen
4 years, 8 months ago (2016-04-01 14:55:19 UTC) #35
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/1853503004/ by erikchen@chromium.org.

The reason for reverting is: Prevents drag and drop from bookmark bar to
tabstrip:
https://bugs.chromium.org/p/chromium/issues/detail?id=599522.

Powered by Google App Engine
This is Rietveld 408576698