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

Issue 366029: Initial change for the implementation of browser actions on the mac.... (Closed)

Created:
11 years, 1 month ago by Bons
Modified:
9 years, 5 months ago
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org, John Grabowski, Erik does not do reviews, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Initial change for the implementation of browser actions on the mac. Popups are not implemented within this change. BUG=23881 TEST=Install a browser action extension on the mac. Observe that something actually happens in the UI. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31803

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Total comments: 38

Patch Set 3 : '' #

Total comments: 44

Patch Set 4 : '' #

Total comments: 6

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1464 lines, -67 lines) Patch
M chrome/app/nibs/Toolbar.xib View 1 2 3 4 35 chunks +875 lines, -49 lines 0 comments Download
A chrome/browser/cocoa/extensions/browser_actions_controller.h View 1 2 3 4 6 1 chunk +76 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/extensions/browser_actions_controller.mm View 1 2 3 4 6 1 chunk +421 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller.h View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller.mm View 1 2 3 4 9 chunks +77 lines, -11 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller_unittest.mm View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_action.cc View 3 4 1 chunk +8 lines, -6 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Bons
11 years, 1 month ago (2009-11-05 16:55:42 UTC) #1
Mark Mentovai
Who is mmentovai@chromium.org? fixed.
11 years, 1 month ago (2009-11-05 16:56:36 UTC) #2
Aaron Boodman
Please include screen caps for UI changes.
11 years, 1 month ago (2009-11-05 17:44:26 UTC) #3
Aaron Boodman
Here is a screen cap Andrew sent me separately: http://dl.getdropbox.com/u/124107/browser_actions_osx.png
11 years, 1 month ago (2009-11-05 17:47:16 UTC) #4
Aaron Boodman
+cole Also, the badge text looks a little scrunched and maybe off center in that ...
11 years, 1 month ago (2009-11-05 20:13:15 UTC) #5
Bons
OK. Ready for some more in-depth thrashing. Have at it. http://codereview.chromium.org/366029/diff/1/8 File chrome/browser/cocoa/extensions/browser_actions_controller.mm (right): http://codereview.chromium.org/366029/diff/1/8#newcode89 ...
11 years, 1 month ago (2009-11-10 18:44:12 UTC) #6
Bons
OK. Ready for some more in-depth thrashing. Have at it. http://codereview.chromium.org/366029/diff/1/8 File chrome/browser/cocoa/extensions/browser_actions_controller.mm (right): http://codereview.chromium.org/366029/diff/1/8#newcode89 ...
11 years, 1 month ago (2009-11-10 18:44:30 UTC) #7
Aaron Boodman
The screen cap from earlier isn't quite right. See: http://dl.dropbox.com/u/124107/not_quite_right.png Have you fixed this? If ...
11 years, 1 month ago (2009-11-10 19:35:23 UTC) #8
Aaron Boodman
The screen cap from earlier isn't quite right. See: http://dl.dropbox.com/u/124107/not_quite_right.png Have you fixed this? If ...
11 years, 1 month ago (2009-11-10 19:35:41 UTC) #9
Bons
On 2009/11/10 19:35:41, Aaron Boodman wrote: > The screen cap from earlier isn't quite right. ...
11 years, 1 month ago (2009-11-10 19:39:09 UTC) #10
Bons
On 2009/11/10 19:35:41, Aaron Boodman wrote: > The screen cap from earlier isn't quite right. ...
11 years, 1 month ago (2009-11-10 19:39:28 UTC) #11
Aaron Boodman
On 2009/11/10 19:35:23, Aaron Boodman wrote: > Also, I think many macs have arial installed. ...
11 years, 1 month ago (2009-11-10 19:48:27 UTC) #12
Aaron Boodman
On 2009/11/10 19:35:23, Aaron Boodman wrote: > Also, I think many macs have arial installed. ...
11 years, 1 month ago (2009-11-10 19:48:46 UTC) #13
Mark Mentovai
COMMENTS! http://codereview.chromium.org/366029/diff/6001/7006 File chrome/browser/cocoa/extensions/browser_actions_controller.h (right): http://codereview.chromium.org/366029/diff/6001/7006#newcode1 Line 1: // Copyright (c) 2009 The Chromium Authors. ...
11 years, 1 month ago (2009-11-10 19:57:20 UTC) #14
Bons
OK. Screen caps are done... phew. http://andybons.com/chrome/badge-fonts/123%20-%20Arial.png http://andybons.com/chrome/badge-fonts/123%20-%20Droid%20Sans.png http://andybons.com/chrome/badge-fonts/123%20-%20Helvetica%20Bold.png http://andybons.com/chrome/badge-fonts/123%20-%20Helvetica.png http://andybons.com/chrome/badge-fonts/123%20-%20Lucida%20Grande.png http://andybons.com/chrome/badge-fonts/abg%20-%20Arial.png http://andybons.com/chrome/badge-fonts/abg%20-%20Droid%20Sans.png http://andybons.com/chrome/badge-fonts/abg%20-%20Helvetica%20Bold.png http://andybons.com/chrome/badge-fonts/abg%20-%20Helvetica.png ...
11 years, 1 month ago (2009-11-10 21:34:24 UTC) #15
Bons
OK. Screen caps are done... phew. http://andybons.com/chrome/badge-fonts/123%20-%20Arial.png http://andybons.com/chrome/badge-fonts/123%20-%20Droid%20Sans.png http://andybons.com/chrome/badge-fonts/123%20-%20Helvetica%20Bold.png http://andybons.com/chrome/badge-fonts/123%20-%20Helvetica.png http://andybons.com/chrome/badge-fonts/123%20-%20Lucida%20Grande.png http://andybons.com/chrome/badge-fonts/abg%20-%20Arial.png http://andybons.com/chrome/badge-fonts/abg%20-%20Droid%20Sans.png http://andybons.com/chrome/badge-fonts/abg%20-%20Helvetica%20Bold.png http://andybons.com/chrome/badge-fonts/abg%20-%20Helvetica.png ...
11 years, 1 month ago (2009-11-10 21:34:42 UTC) #16
Erik does not do reviews
Thanks for doing this. Given these grabs, I'll continue to advocate for using Droid for ...
11 years, 1 month ago (2009-11-10 21:48:25 UTC) #17
Bons
OK. Take another look. Screen grabs are below (I've enabled borders just so you can ...
11 years, 1 month ago (2009-11-11 20:40:12 UTC) #18
Mark Mentovai
It's not likely that I'll be able to take another close look at this today, ...
11 years, 1 month ago (2009-11-11 20:43:14 UTC) #19
andybons
No worries. I will be looking into the QT plugin problem and implementing the browser ...
11 years, 1 month ago (2009-11-11 20:51:26 UTC) #20
Mark Mentovai
Nice job. http://codereview.chromium.org/366029/diff/11001/11007 File chrome/browser/cocoa/extensions/browser_actions_controller.h (right): http://codereview.chromium.org/366029/diff/11001/11007#newcode38 Line 38: // container view. What are the ...
11 years, 1 month ago (2009-11-12 06:18:52 UTC) #21
Bons
http://codereview.chromium.org/366029/diff/11001/11007 File chrome/browser/cocoa/extensions/browser_actions_controller.h (right): http://codereview.chromium.org/366029/diff/11001/11007#newcode38 Line 38: // container view. On 2009/11/12 06:18:52, Mark Mentovai ...
11 years, 1 month ago (2009-11-12 07:25:01 UTC) #22
Mark Mentovai
LGTM http://codereview.chromium.org/366029/diff/14001/14007 File chrome/browser/cocoa/extensions/browser_actions_controller.h (right): http://codereview.chromium.org/366029/diff/14001/14007#newcode43 Line 43: // The order of the button keys ...
11 years, 1 month ago (2009-11-12 15:10:14 UTC) #23
Bons
11 years, 1 month ago (2009-11-12 17:20:38 UTC) #24
http://codereview.chromium.org/366029/diff/14001/14007
File chrome/browser/cocoa/extensions/browser_actions_controller.h (right):

http://codereview.chromium.org/366029/diff/14001/14007#newcode43
Line 43: // The order of the button keys within the dictionary.
On 2009/11/12 15:10:15, Mark Mentovai wrote:
> This contains BrowserActionButtons now, not keys, right?

Done.

http://codereview.chromium.org/366029/diff/14001/14008
File chrome/browser/cocoa/extensions/browser_actions_controller.mm (right):

http://codereview.chromium.org/366029/diff/14001/14008#newcode167
Line 167: NSRect frame = NSMakeRect(
On 2009/11/12 15:10:15, Mark Mentovai wrote:
> You can do this as written here, but I think that these are more readable
> written as:
> 
>   NSRect frame = NSMakeRect(xOffset,
>                             kBrowserActionOriginYOffset,
>                             kBrowserActionWidth,
>                             kBrowserActionHeight);

Done.

http://codereview.chromium.org/366029/diff/14001/14003
File chrome/browser/cocoa/toolbar_controller.mm (right):

http://codereview.chromium.org/366029/diff/14001/14003#newcode7
Line 7: #include <algorithm>
On 2009/11/12 15:10:15, Mark Mentovai wrote:
> No longer needed, right?

Done.

Powered by Google App Engine
This is Rietveld 408576698