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

Issue 596105: Bookmark Manager Drag and Drop backend.... (Closed)

Created:
10 years, 10 months ago by arv (Not doing code reviews)
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, brettw+cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Bookmark Manager Drag and Drop backend. This adds the following methods to chrome.experimental.bookmarkManager: startDrag(idList) drop(parentId, opt_index) as well as the following events: onDragEnter(function(BookmarkDragData)) onDragLeave(function(BookmarkDragData)) onDrop(function(BookmarkDragData)) BUG=32194 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=39540

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : Fix some lint warnings #

Patch Set 7 : '' #

Total comments: 4

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 8

Patch Set 10 : '' #

Total comments: 22

Patch Set 11 : '' #

Total comments: 23

Patch Set 12 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+566 lines, -20 lines) Patch
M chrome/browser/bookmarks/bookmark_drag_data.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_drag_data.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_utils.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +44 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_bookmark_manager_api.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +63 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_bookmark_manager_api.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +227 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_bookmarks_module_constants.h View 4 5 6 7 8 9 10 11 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_bookmarks_module_constants.cc View 4 5 6 7 8 9 10 11 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_dom_ui.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_dom_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -0 lines 2 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.h View 4 5 6 7 8 9 10 11 3 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.cc View 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_drop_target_win.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +22 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +100 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
sky
http://codereview.chromium.org/596105/diff/15001/15018 File chrome/browser/renderer_host/render_view_host_delegate.h (right): http://codereview.chromium.org/596105/diff/15001/15018#newcode63 chrome/browser/renderer_host/render_view_host_delegate.h:63: typedef OSExchangeData TabContentsBookmarkDragManagerDragData; You should consider moving this typedef ...
10 years, 10 months ago (2010-02-18 16:39:30 UTC) #1
arv (Not doing code reviews)
http://codereview.chromium.org/596105/diff/15001/15018 File chrome/browser/renderer_host/render_view_host_delegate.h (right): http://codereview.chromium.org/596105/diff/15001/15018#newcode63 chrome/browser/renderer_host/render_view_host_delegate.h:63: typedef OSExchangeData TabContentsBookmarkDragManagerDragData; On 2010/02/18 16:39:30, sky wrote: > ...
10 years, 10 months ago (2010-02-18 19:55:07 UTC) #2
sky
Did you update the patch? -Scott On Thu, Feb 18, 2010 at 11:55 AM, <arv@chromium.org> ...
10 years, 10 months ago (2010-02-18 20:38:48 UTC) #3
arv (Not doing code reviews)
Not yet. I'll ping you when done. erik On Thu, Feb 18, 2010 at 12:38, ...
10 years, 10 months ago (2010-02-18 21:12:54 UTC) #4
arv (Not doing code reviews)
Updated. Please take another look.
10 years, 10 months ago (2010-02-18 22:27:16 UTC) #5
sky
Be sure and get one of the extensions guys to review the extension related changes. ...
10 years, 10 months ago (2010-02-19 00:08:37 UTC) #6
arv (Not doing code reviews)
All done. I hope. Erik, do you mind looking at the extension parts of this? ...
10 years, 10 months ago (2010-02-19 02:06:08 UTC) #7
sky
LGTM
10 years, 10 months ago (2010-02-19 16:33:29 UTC) #8
Erik does not do reviews
On Thu, Feb 18, 2010 at 6:06 PM, <arv@chromium.org> wrote: > All done. I hope. ...
10 years, 10 months ago (2010-02-19 18:32:44 UTC) #9
Erik does not do reviews
http://codereview.chromium.org/596105/diff/19001/19004 File chrome/browser/extensions/extension_bookmark_manager_api.cc (right): http://codereview.chromium.org/596105/diff/19001/19004#newcode88 chrome/browser/extensions/extension_bookmark_manager_api.cc:88: for (int i = 0; i < node.GetChildCount(); ++i) ...
10 years, 10 months ago (2010-02-19 21:51:35 UTC) #10
arv (Not doing code reviews)
Thanks for the feedback. I resolved all the issues except moving things to ExtensionHost. I'll ...
10 years, 10 months ago (2010-02-19 23:28:21 UTC) #11
Erik does not do reviews
LGTM http://codereview.chromium.org/596105/diff/19001/19012 File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/596105/diff/19001/19012#newcode1960 chrome/common/extensions/api/extension_api.json:1960: "id": "BookmarkDragDataElement", On 2010/02/19 23:28:21, arv wrote: > ...
10 years, 10 months ago (2010-02-19 23:47:16 UTC) #12
arv (Not doing code reviews)
10 years, 10 months ago (2010-02-20 00:04:31 UTC) #13
http://codereview.chromium.org/596105/diff/20010/19027
File chrome/browser/extensions/extension_dom_ui.cc (right):

http://codereview.chromium.org/596105/diff/20010/19027#newcode54
chrome/browser/extensions/extension_dom_ui.cc:54: // TODO(arv): Move to
ExtensionHost?
On 2010/02/19 23:47:17, Erik Kay wrote:
> ExtensionsService - but maybe I misunderstood what was going on here.  Does
each
> DOMUI need its own router?  And is it specific to tab contents?  I was used to
> the other event routers which were more global.  If that's the case, then I
> think it's OK to keep it here.

Yes, each ExtensionDOMUI tab contents needs its own router. I was thinking that
maybe the extension service could be used to only dispatch to the view that the
user was dragging over.

After looking at ExtensionsService I think the current solution is clearer.

Powered by Google App Engine
This is Rietveld 408576698