Mac: Add a shortcut to open the Apps page from the bookmark bar.
BUG=177377
TEST=Make sure that an app shortcut is available in the bookmark bar when instant extended is enabled, and that this button can be hidden/shown from the bookmark bar context menu.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187428
+jrg : For c/b/ui/cocoa/bookmarks/* +sky: For c/b/bookmarks
7 years, 9 months ago
(2013-03-07 21:05:46 UTC)
#4
+jrg : For c/b/ui/cocoa/bookmarks/*
+sky: For c/b/bookmarks
beaudoin
sky: Please also check c/b/ui/views/*
7 years, 9 months ago
(2013-03-07 21:06:40 UTC)
#5
sky: Please also check c/b/ui/views/*
Alexei Svitkine (slow)
LGTM https://codereview.chromium.org/12550006/diff/7001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm (right): https://codereview.chromium.org/12550006/diff/7001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm#newcode28 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm:28: profile_pref_registrar_.Init(browser->profile()->GetPrefs()); Are you only using |browser| to get ...
7 years, 9 months ago
(2013-03-07 21:17:07 UTC)
#6
I think asvitkine@ can be considered "active on Mac chrome". Alexei, don't hesitate to add ...
7 years, 9 months ago
(2013-03-08 00:02:50 UTC)
#8
I think asvitkine@ can be considered "active on Mac chrome". Alexei, don't
hesitate to add another reviewer if you think it would be useful.
@gideon : Do you have a link to mocks for this?
https://codereview.chromium.org/12550006/diff/7001/chrome/browser/ui/cocoa/bo...
File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm (right):
https://codereview.chromium.org/12550006/diff/7001/chrome/browser/ui/cocoa/bo...
chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm:28:
profile_pref_registrar_.Init(browser->profile()->GetPrefs());
On 2013/03/07 21:35:14, John Grabowski wrote:
> On 2013/03/07 21:17:07, Alexei Svitkine wrote:
> > Are you only using |browser| to get a profile? If so, pass in a profile.
>
> +1
Done.
https://codereview.chromium.org/12550006/diff/7001/chrome/browser/ui/cocoa/bo...
chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm:32:
base::Unretained(this)));
On 2013/03/07 21:17:07, Alexei Svitkine wrote:
> Indent this line 4 more.
Done.
sky
It's my understanding the 'apps' item on the bookmark bar is purely a button. It's ...
7 years, 9 months ago
(2013-03-08 00:52:05 UTC)
#9
It's my understanding the 'apps' item on the bookmark bar is purely a button.
It's not a place you can add bookmarks to. So, why are we changing the model for
this?
beaudoin
On 2013/03/08 00:52:05, sky wrote: > It's my understanding the 'apps' item on the bookmark ...
7 years, 9 months ago
(2013-03-08 03:15:56 UTC)
#10
On 2013/03/08 00:52:05, sky wrote:
> It's my understanding the 'apps' item on the bookmark bar is purely a button.
> It's not a place you can add bookmarks to. So, why are we changing the model
for
> this?
You're right, and I tried to keep it out, but the Mac bookmark bar buttons are
very tightly linked to bookmark nodes (they keep pointers to it). I'll try again
tomorrow to untangle this.
beaudoin
R: -sky
7 years, 9 months ago
(2013-03-08 19:33:34 UTC)
#11
R: -sky
beaudoin
R: -sky
7 years, 9 months ago
(2013-03-08 19:33:34 UTC)
#12
R: -sky
beaudoin
I made the BookmarkButtonCell a bit more flexible so it supports custom buttons that are ...
7 years, 9 months ago
(2013-03-08 19:35:25 UTC)
#13
I made the BookmarkButtonCell a bit more flexible so it supports custom buttons
that are not attached to a node. This means this CL no longer need to touch the
model or the views implementation.
@Alexei, John: PTAL.
Alexei Svitkine (slow)
https://codereview.chromium.org/12550006/diff/23001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm (right): https://codereview.chromium.org/12550006/diff/23001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm#newcode293 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm:293: // button is "apps page" shortcut: flash it Remove ...
7 years, 9 months ago
(2013-03-08 19:45:47 UTC)
#14
7 years, 9 months ago
(2013-03-08 22:07:17 UTC)
#15
Answered Alexei's comments.
https://codereview.chromium.org/12550006/diff/36001/chrome/browser/ui/cocoa/b...
File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm (right):
https://codereview.chromium.org/12550006/diff/36001/chrome/browser/ui/cocoa/b...
chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm:1421: -
(BookmarkButton*)createCustomBookmarksButton:(NSCell*)cell {
On 2013/03/08 19:45:48, Alexei Svitkine wrote:
> Don't pass the cell in and just call -setCell: from the callsite on the
returned
> button.
Looks like -setCell must be called before -setDelegate (or -setTarget?) so I
left it here.
https://codereview.chromium.org/12550006/diff/36001/chrome/browser/ui/cocoa/b...
chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm:1422:
On 2013/03/08 19:45:48, Alexei Svitkine wrote:
> Remove empty line.
Done.
https://codereview.chromium.org/12550006/diff/36001/chrome/browser/ui/cocoa/b...
chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm:1854:
[BookmarkButtonCell buttonCellForContextMenu:buttonFolderContextMenu_
On 2013/03/08 19:45:48, Alexei Svitkine wrote:
> -buttonCellForContextMenu: doesn't make sense.
>
> I suggest switching the order of params around and making this one
> -buttonCellWithText:image:contextMenu: and changing the param names and order
on
> the other method too, to be consistent.
Done.
beaudoin
John, Alexei: Can you PTAL this is getting close to the final version, rebased on ...
7 years, 9 months ago
(2013-03-09 01:57:06 UTC)
#16
John, Alexei: Can you PTAL this is getting close to the final version, rebased
on top of Alexei's changes.
Done that too, forgot to mark it. https://codereview.chromium.org/12550006/diff/62001/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm (right): https://codereview.chromium.org/12550006/diff/62001/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm#newcode190 chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm:190: // anything. ...
7 years, 9 months ago
(2013-03-11 21:02:51 UTC)
#20
Done that too, forgot to mark it.
https://codereview.chromium.org/12550006/diff/62001/chrome/browser/ui/cocoa/b...
File chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm (right):
https://codereview.chromium.org/12550006/diff/62001/chrome/browser/ui/cocoa/b...
chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm:190: // anything.
On 2013/03/11 14:31:04, Alexei Svitkine wrote:
> Hmm, my other refactoring CL didn't actually remove this whole method, as I
told
> you offline.
>
> I don't think this does what the current Windows implementation does. We still
> want to have some kind of context menu here, so that the user can at least
> uncheck App shortcut item in it.
Done.
Alexei Svitkine (slow)
https://codereview.chromium.org/12550006/diff/69001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm (right): https://codereview.chromium.org/12550006/diff/69001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm#newcode1523 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm:1523: prefs::kShowAppsShortcutInBookmarkBar, false); Please clean up after the test - ...
7 years, 9 months ago
(2013-03-11 21:06:43 UTC)
#21
7 years, 9 months ago
(2013-03-11 21:39:54 UTC)
#23
LGTM, thanks.
https://codereview.chromium.org/12550006/diff/69001/chrome/browser/ui/cocoa/b...
File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm
(right):
https://codereview.chromium.org/12550006/diff/69001/chrome/browser/ui/cocoa/b...
chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm:425: [button
setTarget:barController_];
On 2013/03/11 21:29:56, beaudoin wrote:
> On 2013/03/11 21:06:43, Alexei Svitkine wrote:
> > That shouldn't be showing up the diff, is your base set correctly?
>
> Hmmm, it seems ok, and no diff show up here for me. Bug on your side? Or are
you
> comparing to a previous patchset?
Ah, that was it, my bad!
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/beaudoin@chromium.org/12550006/67003
7 years, 9 months ago
(2013-03-11 22:01:40 UTC)
#24
Issue 12550006: Mac: Add a shortcut to open the Apps page from the bookmark bar.
(Closed)
Created 7 years, 9 months ago by beaudoin
Modified 7 years, 9 months ago
Reviewers: Alexei Svitkine (slow), John Grabowski, Robert Sesek
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 41