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

Issue 606593002: Move bookmark's folder menu upwards only when its parent button is moved (Closed)

Created:
6 years, 2 months ago by Gaja
Modified:
6 years, 2 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Move bookmark's folder menu upwards only when its parent button is moved. On dragging and dropping an item on a folder that is currently showing its folder menu; the menu moves upwards by an offset, regardless of its parent button moved or not. This CL fixes the issue that the folder menu is moved only when its parent button is moved. Also, the offset value should be kBookmarkFolderButtonHeight. BUG=311155 R=asvitkine@chromium.org TEST= 1) Launch chrome and add a bookmark folder(folder1) to Bookmarks Bar 2) Add two folders(folder2 and folder3) within folder1. 3) Open folder1, now drag folder3 and hover it on folder2, wait until folder2 opens its folder menu, now drop the folder i.e release the mouse, and observe. 4) folder2's folder menu should not shift upwards, it should horizontally align with its button's frame. Committed: https://crrev.com/333c2298ec9bf673294fe75f6a819c032bb2155c Cr-Commit-Position: refs/heads/master@{#299037}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Addressing comments and refactor code covering one more test case. #

Total comments: 4

Patch Set 3 : Reverting to previous loop logic but adding index check. #

Patch Set 4 : nit : additional space #

Total comments: 4

Patch Set 5 : Addressing comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm View 1 2 3 4 1 chunk +9 lines, -4 lines 1 comment Download

Messages

Total messages: 14 (1 generated)
Gaja
@asvitkine, Please take a look. Thanks. https://codereview.chromium.org/606593002/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm (left): https://codereview.chromium.org/606593002/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm#oldcode1942 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm:1942: offsetFolderMenuWindow:NSMakeSize(0.0, chrome::kBookmarkBarHeight)]; @asvitkine, ...
6 years, 2 months ago (2014-09-25 09:00:39 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/606593002/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm (left): https://codereview.chromium.org/606593002/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm#oldcode1939 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm:1939: // If this button is showing its menu then ...
6 years, 2 months ago (2014-09-26 15:14:37 UTC) #2
Gaja
https://codereview.chromium.org/606593002/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm (left): https://codereview.chromium.org/606593002/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm#oldcode1939 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm:1939: // If this button is showing its menu then ...
6 years, 2 months ago (2014-09-27 05:56:34 UTC) #3
Gaja
@asvitkine, Please take a look at Patch Set #2. Writing test for this CL seems ...
6 years, 2 months ago (2014-09-29 13:19:07 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/606593002/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm (right): https://codereview.chromium.org/606593002/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm#newcode1937 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm:1937: // In case of Drag & Drop within a ...
6 years, 2 months ago (2014-10-02 20:55:59 UTC) #5
Gaja
@asvitkine Comments addressed in Patch set #3. Please review. https://codereview.chromium.org/606593002/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm (right): https://codereview.chromium.org/606593002/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm#newcode1937 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm:1937: ...
6 years, 2 months ago (2014-10-05 05:41:27 UTC) #6
Alexei Svitkine (slow)
https://codereview.chromium.org/606593002/diff/60001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm (right): https://codereview.chromium.org/606593002/diff/60001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm#newcode1941 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm:1941: NSInteger targetIndex = [buttons_ indexOfObject:aButton]; This results in O(n^2) ...
6 years, 2 months ago (2014-10-06 15:37:30 UTC) #7
Gaja
Changes in Patch Set #5. Please review. Thanks. https://codereview.chromium.org/606593002/diff/60001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm (right): https://codereview.chromium.org/606593002/diff/60001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm#newcode1941 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm:1941: NSInteger ...
6 years, 2 months ago (2014-10-07 04:39:12 UTC) #8
Gaja
On 2014/10/07 04:39:12, gaja wrote: > Changes in Patch Set #5. Please review. Thanks. > ...
6 years, 2 months ago (2014-10-08 17:50:03 UTC) #9
Alexei Svitkine (slow)
lgtm
6 years, 2 months ago (2014-10-09 20:08:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/606593002/80001
6 years, 2 months ago (2014-10-10 00:54:19 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 2 months ago (2014-10-10 02:01:44 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 02:05:09 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/333c2298ec9bf673294fe75f6a819c032bb2155c
Cr-Commit-Position: refs/heads/master@{#299037}

Powered by Google App Engine
This is Rietveld 408576698