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

Issue 7054020: Refactors code for showing bookmark menus so that it can be used by (Closed)

Created:
9 years, 7 months ago by sky
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Refactors code for showing bookmark menus so that it can be used by both the bookmark bar and wrench menu and wires bookmarks into the wrench menu. BUG=81263 TEST=thoroughly test bookmarks in the wrench menu to make sure there aren't any crashes/weird behavior. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86175

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+502 lines, -614 lines) Patch
M chrome/browser/ui/toolbar/wrench_menu_model.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.h View 6 chunks +7 lines, -70 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.cc View 1 6 chunks +39 lines, -274 lines 0 comments Download
A + chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h View 7 chunks +78 lines, -94 lines 0 comments Download
A + chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc View 17 chunks +139 lines, -146 lines 0 comments Download
M chrome/browser/ui/views/wrench_menu.h View 5 chunks +55 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/wrench_menu.cc View 9 chunks +172 lines, -19 lines 0 comments Download
M chrome/chrome_browser.gypi View 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sky
Another approach I could have taken here is to have WrenchMenu and BookmarkMenuControllerViews extend BookmarkMenuDelegate. ...
9 years, 7 months ago (2011-05-20 21:23:06 UTC) #1
Ben Goodger (Google)
Feels a little weird to me to have the WrenchMenu know so much about the ...
9 years, 7 months ago (2011-05-20 21:31:32 UTC) #2
sky
MenuItemView only supports one MenuDelegate for all the descendants. Since WrenchMenu is already the MenuDelegate ...
9 years, 7 months ago (2011-05-20 21:41:51 UTC) #3
Ben Goodger (Google)
9 years, 7 months ago (2011-05-20 21:43:05 UTC) #4
Ah. Well I like this more than more invasive subclassing... LGTM.

On Fri, May 20, 2011 at 2:41 PM, Scott Violet <sky@chromium.org> wrote:

> MenuItemView only supports one MenuDelegate for all the descendants.
> Since WrenchMenu is already the MenuDelegate that means it has to
> forward interesting MenuDelegate methods to BookmarkMenuDelegate. This
> is why you see all the overrides, although they are nothing more than
> call through methods.
>
>  -Scott
>
> On Fri, May 20, 2011 at 2:31 PM,  <ben@chromium.org> wrote:
> > Feels a little weird to me to have the WrenchMenu know so much about the
> > bookmark menu. I assume the D&D stuff is to allow you to drag into the
> > wrench
> > icon and have it pop open?
> >
> > http://codereview.chromium.org/7054020/
> >
>

Powered by Google App Engine
This is Rietveld 408576698