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

Issue 402077: Adds popups to browser actions, completing the feature.... (Closed)

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

Description

Adds popups to browser actions, completing the feature. Adds functionality to choose between two different InfoBubbleView types: white background and gradient background. Screenshot: http://andybons.com/chrome/news_popup.png BUG=23881 TEST=Install a browser action extension that has a popup, click and observe the popup being shown. Initial unit test added, but disabled. Committed: r32589

Patch Set 1 #

Total comments: 25

Patch Set 2 : '' #

Total comments: 28

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+410 lines, -18 lines) Patch
MM chrome/browser/cocoa/extension_view_mac.mm View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/cocoa/extensions/browser_actions_controller.h View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/extensions/browser_actions_controller.mm View 1 2 3 4 chunks +31 lines, -5 lines 0 comments Download
A chrome/browser/cocoa/extensions/extension_popup_controller.h View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/extensions/extension_popup_controller.mm View 1 2 3 1 chunk +178 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/extensions/extension_popup_controller_unittest.mm View 2 1 chunk +90 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/info_bubble_view.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/info_bubble_view.mm View 1 2 chunks +17 lines, -12 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/views/extensions/extension_view.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Bons
11 years, 1 month ago (2009-11-19 02:09:31 UTC) #1
Bons
http://codereview.chromium.org/402077/diff/1/10 File chrome/browser/cocoa/extensions/extension_popup_controller.h (right): http://codereview.chromium.org/402077/diff/1/10#newcode1 Line 1: // Copyright (c) 2009 The Chromium Authors. All ...
11 years, 1 month ago (2009-11-19 02:15:08 UTC) #2
pink (ping after 24hrs)
a good start. http://codereview.chromium.org/402077/diff/1/6 File chrome/browser/cocoa/extensions/browser_actions_controller.mm (right): http://codereview.chromium.org/402077/diff/1/6#newcode425 Line 425: [ExtensionPopupController showURL:action->popup_url() see other comments, ...
11 years, 1 month ago (2009-11-19 03:57:49 UTC) #3
Aaron Boodman
Defer to pink on the code. Screen cap lgtm. http://codereview.chromium.org/402077/diff/1/2 File chrome/browser/extensions/extension_host.cc (right): http://codereview.chromium.org/402077/diff/1/2#newcode558 Line ...
11 years, 1 month ago (2009-11-19 06:09:49 UTC) #4
Erik does not do reviews
overall looks good. I'll defer to pink on the cocoa code.
11 years, 1 month ago (2009-11-19 20:27:34 UTC) #5
Bons
http://codereview.chromium.org/402077/diff/1/6 File chrome/browser/cocoa/extensions/browser_actions_controller.mm (right): http://codereview.chromium.org/402077/diff/1/6#newcode425 Line 425: [ExtensionPopupController showURL:action->popup_url() On 2009/11/19 03:57:49, pink wrote: > ...
11 years, 1 month ago (2009-11-20 00:40:38 UTC) #6
pink (ping after 24hrs)
sorry for not noticing the window controller ownership the first time. http://codereview.chromium.org/402077/diff/5001/5005 File chrome/browser/cocoa/extensions/browser_actions_controller.h (right): ...
11 years, 1 month ago (2009-11-20 01:09:41 UTC) #7
Bons
http://codereview.chromium.org/402077/diff/5001/5005 File chrome/browser/cocoa/extensions/browser_actions_controller.h (right): http://codereview.chromium.org/402077/diff/5001/5005#newcode48 Line 48: scoped_nsobject<ExtensionPopupController> popupController_; On 2009/11/20 01:09:42, pink wrote: > ...
11 years, 1 month ago (2009-11-20 01:38:56 UTC) #8
pink (ping after 24hrs)
LGTM with nits. http://codereview.chromium.org/402077/diff/5013/5018 File chrome/browser/cocoa/extensions/browser_actions_controller.mm (right): http://codereview.chromium.org/402077/diff/5013/5018#newcode322 Line 322: if (popupController_) no need to ...
11 years, 1 month ago (2009-11-20 01:55:55 UTC) #9
Bons
11 years, 1 month ago (2009-11-20 02:01:47 UTC) #10
http://codereview.chromium.org/402077/diff/5013/5018
File chrome/browser/cocoa/extensions/browser_actions_controller.mm (right):

http://codereview.chromium.org/402077/diff/5013/5018#newcode322
Line 322: if (popupController_)
On 2009/11/20 01:55:55, pink wrote:
> no need to check for nil, the runtime does that for you.

Done.

http://codereview.chromium.org/402077/diff/5013/5023
File chrome/browser/cocoa/extensions/extension_popup_controller.mm (right):

http://codereview.chromium.org/402077/diff/5013/5023#newcode121
Line 121: // Takes ownership of |host|.
On 2009/11/20 01:55:55, pink wrote:
> Also comment that this will autorelease itself when the window closes so don't
> use an autorelease here (so someone doesn't read it and think it's a leak).

Done.

http://codereview.chromium.org/402077/diff/5013/5023#newcode149
Line 149: windowOrigin.x -= (NSWidth(frame) - kBubbleArrowXOffset -
On 2009/11/20 01:55:55, pink wrote:
> do you need the outer layer of parens?

Done.

http://codereview.chromium.org/402077/diff/5013/5023#newcode151
Line 151: windowOrigin.y -= (NSHeight(frame) - (kBubbleArrowHeight / 2.0));
On 2009/11/20 01:55:55, pink wrote:
> same question

Done.

Powered by Google App Engine
This is Rietveld 408576698