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

Issue 9042: Adds support for autoscrolling on drag to bookmark tree/table.... (Closed)

Created:
12 years, 1 month ago by sky
Modified:
7 years, 5 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Adds support for autoscrolling on drag to bookmark tree/table. BUG=674 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=4625

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+469 lines, -255 lines) Patch
A chrome/browser/bookmarks/bookmark_drop_info.h View 1 2 1 chunk +85 lines, -0 lines 0 comments Download
A chrome/browser/bookmarks/bookmark_drop_info.cc View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_utils.h View 1 2 1 chunk +4 lines, -8 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_utils.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/browser.vcproj View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/views/bookmark_bar_view.cc View 1 2 4 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/views/bookmark_folder_tree_view.h View 1 2 2 chunks +56 lines, -38 lines 1 comment Download
M chrome/browser/views/bookmark_folder_tree_view.cc View 1 2 10 chunks +77 lines, -89 lines 1 comment Download
M chrome/browser/views/bookmark_table_view.h View 1 2 2 chunks +53 lines, -26 lines 0 comments Download
M chrome/browser/views/bookmark_table_view.cc View 1 2 11 chunks +83 lines, -76 lines 1 comment Download
M chrome/views/chrome_menu.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/views/chrome_menu.cc View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
A chrome/views/view_constants.h View 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/views/view_constants.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/views/views.vcproj View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sky
12 years, 1 month ago (2008-11-03 17:12:10 UTC) #1
ncarter (slow)
http://codereview.chromium.org/9042/diff/202/40 File chrome/browser/bookmarks/bookmark_drop_info.cc (right): http://codereview.chromium.org/9042/diff/202/40#newcode27 Line 27: scroll_up_ = (last_y <= top_margin_ + views::kAutoscrollSize); Why ...
12 years, 1 month ago (2008-11-04 01:23:08 UTC) #2
sky
Disregard my comments about not refactoring the drop position into a struct. In the end ...
12 years, 1 month ago (2008-11-04 17:27:31 UTC) #3
ncarter (slow)
12 years, 1 month ago (2008-11-04 18:39:47 UTC) #4
The new design looks a lot better, and I'm happy to see that the DropPosition
idea worked out.

LGTM.

http://codereview.chromium.org/9042/diff/209/56
File chrome/browser/views/bookmark_folder_tree_view.cc (right):

http://codereview.chromium.org/9042/diff/209/56#newcode137
Line 137: BookmarkFolderTreeView::DropPosition BookmarkFolderTreeView::
Is the first scope resolution necessary?

http://codereview.chromium.org/9042/diff/209/54
File chrome/browser/views/bookmark_folder_tree_view.h (right):

http://codereview.chromium.org/9042/diff/209/54#newcode122
Line 122: int FolderIndexToBookmarkIndex(FolderNode* node, int index, bool
drop_on);
This could be made to take a DropPosition too.

http://codereview.chromium.org/9042/diff/209/52
File chrome/browser/views/bookmark_table_view.cc (right):

http://codereview.chromium.org/9042/diff/209/52#newcode280
Line 280: if (position.on) {
btw, what confused me about this function in the earlier review was that I
thought this if() was conditioned on turn_on, not drop_on.

Powered by Google App Engine
This is Rietveld 408576698