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

Issue 3461016: [Mac] Convert the page info window to a bubble. (Closed)

Created:
10 years, 3 months ago by Robert Sesek
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

[Mac] Convert the page info window to a bubble. BUG=52430, 52916 TEST=Enable Page Info Bubble in about:labs and click on the lock icon. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=61077

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 46

Patch Set 3 : Address thakis' comments #

Total comments: 10

Patch Set 4 : '' #

Total comments: 8

Patch Set 5 : Address nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+694 lines, -13 lines) Patch
M chrome/browser/cocoa/base_bubble_controller.h View 1 2 3 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/cocoa/base_bubble_controller.mm View 1 2 3 2 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/location_bar/location_bar_view_mac.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/location_bar/location_bar_view_mac.mm View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/location_bar/location_icon_decoration.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/location_bar/location_icon_decoration.mm View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/page_info_bubble_controller.h View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/page_info_bubble_controller.mm View 1 2 3 4 1 chunk +383 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/page_info_bubble_controller_unittest.mm View 1 2 3 4 1 chunk +191 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/page_info_window_mac.mm View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/labs.cc View 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/page_info_model.h View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Nico
http://codereview.chromium.org/3461016/diff/1/3 File chrome/browser/cocoa/base_bubble_controller.mm (right): http://codereview.chromium.org/3461016/diff/1/3#newcode56 chrome/browser/cocoa/base_bubble_controller.mm:56: DCHECK(theWindow); DCHECK([theWindow isKindOfClass:[InfoBubbleWindow class]]);?
10 years, 3 months ago (2010-09-22 16:04:29 UTC) #1
Robert Sesek
This is now ready for review. It's not quite perfect yet, but this CL is ...
10 years, 2 months ago (2010-09-28 19:39:47 UTC) #2
Nico
Could you use one of the two button styles ( :-/ ) we use in ...
10 years, 2 months ago (2010-09-28 20:25:50 UTC) #3
Nico
Nice! What's with the two spaces after periods in comments though? I recommend you read ...
10 years, 2 months ago (2010-09-28 22:02:45 UTC) #4
pink (ping after 24hrs)
On Tue, Sep 28, 2010 at 6:02 PM, <thakis@chromium.org> wrote: > What's with the two ...
10 years, 2 months ago (2010-09-29 13:06:25 UTC) #5
Robert Sesek
Addressed all of thakis' comments. Thanks! On 2010/09/29 13:06:25, pink wrote: > On Tue, Sep ...
10 years, 2 months ago (2010-09-29 13:52:35 UTC) #6
Nico
http://codereview.chromium.org/3461016/diff/4001/5008 File chrome/browser/cocoa/page_info_bubble_controller.mm (right): http://codereview.chromium.org/3461016/diff/4001/5008#newcode232 chrome/browser/cocoa/page_info_bubble_controller.mm:232: [textField setStringValue:base::SysUTF16ToNSString(info.description)]; On 2010/09/29 13:52:35, rsesek wrote: > On ...
10 years, 2 months ago (2010-09-29 18:09:56 UTC) #7
Robert Sesek
All comments addressed. I also changed the button appearance: http://cl.ly/9f42f48712e05baba295 http://codereview.chromium.org/3461016/diff/4001/5009 File chrome/browser/cocoa/page_info_bubble_controller_unittest.mm (right): http://codereview.chromium.org/3461016/diff/4001/5009#newcode49 ...
10 years, 2 months ago (2010-09-30 14:52:40 UTC) #8
Nico
LG! I would indent sections without image the same way you do indent sections with ...
10 years, 2 months ago (2010-09-30 15:10:18 UTC) #9
Robert Sesek
10 years, 2 months ago (2010-09-30 15:21:41 UTC) #10
Thanks. Addressed the nits; will land after green tryjob.

On 2010/09/30 15:10:18, Nico wrote:
> LG!
> 
> I would indent sections without image the same way you do indent sections with
> image, so that all the section texts are aligned to the same left edge.
> 

That's not how the mocks are.

> If the connection isn't secure due to non-https resources on an https site,
are
> there plans to show a list of the non-secure urls on the page? I heard a few
> people asking for this.

I don't know; I agree that would be a nice feature, though.

http://codereview.chromium.org/3461016/diff/4001/5009
File chrome/browser/cocoa/page_info_bubble_controller_unittest.mm (right):

http://codereview.chromium.org/3461016/diff/4001/5009#newcode30
chrome/browser/cocoa/page_info_bubble_controller_unittest.mm:30: type));
On 2010/09/30 15:10:18, Nico wrote:
> On 2010/09/29 13:52:35, rsesek wrote:
> > On 2010/09/28 22:02:45, Nico wrote:
> > > might fit into one line?
> > 
> > nope
> 
> I meant like this:
> 
>     sections_.push_back(SectionInfo(
>         state, title, string16(), description, type));
> 

Done.

http://codereview.chromium.org/3461016/diff/24001/25008
File chrome/browser/cocoa/page_info_bubble_controller.mm (right):

http://codereview.chromium.org/3461016/diff/24001/25008#newcode43
chrome/browser/cocoa/page_info_bubble_controller.mm:43: // The width of the
window. The height will be determined by the content.
On 2010/09/30 15:10:18, Nico wrote:
> "The width of the window, in view coordinates."

Done.

http://codereview.chromium.org/3461016/diff/24001/25008#newcode192
chrome/browser/cocoa/page_info_bubble_controller.mm:192: NSRect windowFrame =
NSMakeRect(0, 0, kWindowWidth, 50);
On 2010/09/30 15:10:18, Nico wrote:
> you don't use this until 50 lines later. can you move the declaration to
there?

Done.

http://codereview.chromium.org/3461016/diff/24001/25008#newcode253
chrome/browser/cocoa/page_info_bubble_controller.mm:253:
windowFrame.size.height);
On 2010/09/30 15:10:18, Nico wrote:
> NSHeight

Done.

http://codereview.chromium.org/3461016/diff/24001/25008#newcode368
chrome/browser/cocoa/page_info_bubble_controller.mm:368: -
(CGFloat)addImageViewForInfo:(const PageInfoModel::SectionInfo&)info
On 2010/09/30 15:10:18, Nico wrote:
> let this return void (and update the comment)?

Done.

Powered by Google App Engine
This is Rietveld 408576698