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

Issue 1813003: Vertical scrolling arrows in bookmark bar folder windows when needed.... (Closed)

Created:
10 years, 7 months ago by John Grabowski
Modified:
9 years, 6 months ago
Reviewers:
mrossetti, dhollowa
CC:
chromium-reviews, John Grabowski, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Vertical scrolling arrows in bookmark bar folder windows when needed. pdfs from Cole. BUG=42026 TEST=\ 1) Small folders --> no arrows. 2) Big folders --> arrow at bottom initially. 3) Move browser to bottom of screen so a small folder falls off the bottom and has an arrow. Open it and gently use scroll wheel to scroll. Make sure transition to "no arrow" looks good. Close and reopen. Scroll super-fast. Make sure it ends up in the same nice place. 4) Open big big folder. Scroll so top goes offscreen so you now have 2 scroll arrows. Use scroll wheel to gently go up and down (arrow hides and shows). Make sure transitions OK. Scroll all the way so bottom arrow disappears. Gently up and down; watch for transitions. Now FAST up and down. Make sure destination looks OK. BookmarkBarFolderWindow.xib change: BookmarkBarFolderWindowScrollView border turned off. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=46114

Patch Set 1 #

Total comments: 14

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -40 lines) Patch
M chrome/app/nibs/BookmarkBarFolderWindow.xib View 7 chunks +11 lines, -28 lines 0 comments Download
A chrome/app/theme/menu_overflow_down.pdf View Binary file 0 comments Download
A chrome/app/theme/menu_overflow_up.pdf View Binary file 0 comments Download
M chrome/browser/cocoa/bookmark_bar_folder_controller.h View 1 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_folder_controller.mm View 1 8 chunks +97 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_folder_controller_unittest.mm View 1 6 chunks +27 lines, -7 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_folder_window.h View 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/cocoa/bookmark_bar_folder_window.mm View 1 4 chunks +43 lines, -1 line 0 comments Download
M chrome/chrome_dll.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
John Grabowski
10 years, 7 months ago (2010-04-30 03:35:39 UTC) #1
mrossetti
LGTM Coupla nits. http://codereview.chromium.org/1813003/diff/1/9 File chrome/browser/cocoa/bookmark_bar_folder_controller.mm (right): http://codereview.chromium.org/1813003/diff/1/9#newcode52 chrome/browser/cocoa/bookmark_bar_folder_controller.mm:52: CGFloat kVerticalScrollArrowOffset = 20.0; How do ...
10 years, 7 months ago (2010-04-30 17:17:49 UTC) #2
dhollowa
LGTM. http://codereview.chromium.org/1813003/diff/1/7 File chrome/browser/cocoa/bookmark_bar_folder_controller_unittest.mm (right): http://codereview.chromium.org/1813003/diff/1/7#newcode135 chrome/browser/cocoa/bookmark_bar_folder_controller_unittest.mm:135: int nodecount = 150; const int kNodeCount = ...
10 years, 7 months ago (2010-04-30 18:00:20 UTC) #3
John Grabowski
10 years, 7 months ago (2010-04-30 20:31:01 UTC) #4
Thanks guys.  All feedback applied except...

http://codereview.chromium.org/1813003/diff/1/9
File chrome/browser/cocoa/bookmark_bar_folder_controller.mm (right):

http://codereview.chromium.org/1813003/diff/1/9#newcode400
chrome/browser/cocoa/bookmark_bar_folder_controller.mm:400: arrowAdjustment +=
kVerticalScrollArrowOffset;
On 2010/04/30 17:17:50, mrossetti wrote:
> Ditto on the conditional expression.

left this one in for clarity

http://codereview.chromium.org/1813003/diff/1/9#newcode402
chrome/browser/cocoa/bookmark_bar_folder_controller.mm:402: NSPoint
scrollPosition = [scrollView_ documentVisibleRect].origin;
On 2010/04/30 17:17:50, mrossetti wrote:
> You don't use scrollPosition until line 411 so this line should be moved down.

I don't agree; there are times it makes sense to say "get all data" then 'act on
it'.

http://codereview.chromium.org/1813003/diff/1/9#newcode408
chrome/browser/cocoa/bookmark_bar_folder_controller.mm:408: if (NSHeight([[self
window] frame]) == NSHeight(documentRect))
On 2010/04/30 17:17:50, mrossetti wrote:
> I had to think about this for a while but it finally made sense.

same here

http://codereview.chromium.org/1813003/diff/1/6
File chrome/browser/cocoa/bookmark_bar_folder_window.h (right):

http://codereview.chromium.org/1813003/diff/1/6#newcode9
chrome/browser/cocoa/bookmark_bar_folder_window.h:9: #import
"base/cocoa_protocols_mac.h"
On 2010/04/30 17:17:50, mrossetti wrote:
> Needed for the NSWindowDelegate?

yes

Powered by Google App Engine
This is Rietveld 408576698