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

Issue 1542001: Mac: Fill in geolocation bubble from model. (Closed)

Created:
10 years, 9 months ago by Nico
Modified:
9 years, 7 months ago
Reviewers:
viettrungluu
CC:
chromium-reviews, joth
Visibility:
Public.

Description

Mac: Fill in geolocation bubble from model. xib changes: Removed everything above the horizontal line and put an empty NSView there, as container for the geo stuff (maybe later, there should be only one xib file for all bubble types and the container should be filled from the bubble model in all cases. Not in this CL.) http://imgur.com/AtXiq BUG=11246 TEST=Start chromium with --enable-geolocation. Go to http://maxheapsize.com/static/html5geolocationdemo.html , click "Allow" or "Deny". Bubble should appear. It should behave like on windows or linux (except that it has buttons instead of links. We only use links for stuff that opens web pages on clicking on OS X.) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42923

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : 80col, comment #

Total comments: 27

Patch Set 5 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -171 lines) Patch
M chrome/app/nibs/ContentBubbleGeolocation.xib View 1 2 12 chunks +30 lines, -165 lines 0 comments Download
M chrome/browser/cocoa/content_blocked_bubble_controller.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/content_blocked_bubble_controller.mm View 1 2 3 4 7 chunks +116 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Nico
After this, only the exceptions dialog should be missing.
10 years, 9 months ago (2010-03-28 22:13:49 UTC) #1
viettrungluu
From the screenshot, the top margin looks too small. http://codereview.chromium.org/1542001/diff/2002/6003 File chrome/browser/cocoa/content_blocked_bubble_controller.mm (right): http://codereview.chromium.org/1542001/diff/2002/6003#newcode69 chrome/browser/cocoa/content_blocked_bubble_controller.mm:69: ...
10 years, 9 months ago (2010-03-29 00:37:35 UTC) #2
Nico
Thanks! http://codereview.chromium.org/1542001/diff/2002/6003 File chrome/browser/cocoa/content_blocked_bubble_controller.mm (right): http://codereview.chromium.org/1542001/diff/2002/6003#newcode69 chrome/browser/cocoa/content_blocked_bubble_controller.mm:69: float fontSize = [NSFont systemFontSizeForControlSize:controlSize]; On 2010/03/29 00:37:35, ...
10 years, 9 months ago (2010-03-29 01:28:40 UTC) #3
Nico
Oh, re top margin: I somewhat agree, but it matches the other bubbles and Cole ...
10 years, 9 months ago (2010-03-29 01:32:32 UTC) #4
viettrungluu
LGTM. http://codereview.chromium.org/1542001/diff/2002/6003 File chrome/browser/cocoa/content_blocked_bubble_controller.mm (right): http://codereview.chromium.org/1542001/diff/2002/6003#newcode69 chrome/browser/cocoa/content_blocked_bubble_controller.mm:69: float fontSize = [NSFont systemFontSizeForControlSize:controlSize]; On 2010/03/29 01:28:40, ...
10 years, 9 months ago (2010-03-29 01:46:05 UTC) #5
Nico
Submitted. Thanks again. http://codereview.chromium.org/1542001/diff/2002/6003 File chrome/browser/cocoa/content_blocked_bubble_controller.mm (right): http://codereview.chromium.org/1542001/diff/2002/6003#newcode336 chrome/browser/cocoa/content_blocked_bubble_controller.mm:336: frame.origin.y = NSMaxY(frame) + kGeoPadding; On ...
10 years, 9 months ago (2010-03-29 01:58:11 UTC) #6
joth
Thanks for implementing this. One question: is it intentional that the host name is not ...
10 years, 9 months ago (2010-03-29 16:22:11 UTC) #7
Nico
10 years, 9 months ago (2010-03-29 16:56:28 UTC) #8
I guess I can add that. Looked weird to me, and the popup bubble
doesn't do that either. I didn't realize it was in the mocks.

Nico

ps: Did you try showing the current form of the bubble to some
non-chromies? Is anyone able to make any sense of it? It took me quite
a while to understand what this bubble tries to tell me (I looked
through the source, what I guess most people won't do) :-/

On Mon, Mar 29, 2010 at 9:21 AM, Jonathan Dixon <joth@chromium.org> wrote:
> Thanks for implementing this.
> One question: is it intentional that the host name is not indented and not
> in bold, or would you do that as a follow up?
> (see http://mocks/glen/chrome/spec/89_geo2/4/#07_trackingbubble.png or the
> wave about it)
> Cheers,
> Joth
>
>
> On 29 March 2010 02:58, <thakis@chromium.org> wrote:
>>
>> Submitted. Thanks again.
>>
>>
>> http://codereview.chromium.org/1542001/diff/2002/6003
>> File chrome/browser/cocoa/content_blocked_bubble_controller.mm (right):
>>
>> http://codereview.chromium.org/1542001/diff/2002/6003#newcode336
>> chrome/browser/cocoa/content_blocked_bubble_controller.mm:336:
>> frame.origin.y = NSMaxY(frame) + kGeoPadding;
>> On 2010/03/29 01:46:05, viettrungluu wrote:
>>>
>>> On 2010/03/29 01:28:40, Nico wrote:
>>> > On 2010/03/29 00:37:35, viettrungluu wrote:
>>> > > The juxtaposition of this line with the previous is confusing.
>>
>> Hmm.
>>>
>>> >
>>> > You think? How would you write it?
>>
>>> It's mainly confusing because it kind of looks like you're doing a
>>
>> pointless +=
>>>
>>> on the previous line (which isn't actually the case. I might just
>>
>> write it as
>>>
>>> one big line.
>>
>> Duh! Done. Much better, thanks.
>>
>> http://codereview.chromium.org/1542001
>
>

Powered by Google App Engine
This is Rietveld 408576698