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

Issue 515027: Fixes bug where a Page Action icon was not being properly displayed upon page... (Closed)

Created:
10 years, 12 months ago by Bons
Modified:
9 years, 5 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Fixes bug where a Page Action icon was not being properly displayed upon page load unless the Omnibar was being forced to redraw (via clicking within it). BUG=12281 TEST=Load a page that has a page action, observe that it appears without having to select the text in the omnibar. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35252

Patch Set 1 #

Patch Set 2 : Second upload to get try server. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -1 line) Patch
M chrome/browser/cocoa/location_bar_view_mac.h View 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.mm View 1 2 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Bons
10 years, 12 months ago (2009-12-24 01:30:41 UTC) #1
Nico
The code looks alright, but I'm not sure why you need this: The windows and ...
10 years, 12 months ago (2009-12-24 01:45:04 UTC) #2
andybons
I agree, but we have win, which has each image be it's own proper subview ...
10 years, 12 months ago (2009-12-24 02:16:18 UTC) #3
Nico
Your call. LG if you don't want to do that, but it'd be nicer IMHO. ...
10 years, 12 months ago (2009-12-24 02:37:12 UTC) #4
andybons
I'll submit and wait for comments from Pam, who was also looking into this, as ...
10 years, 12 months ago (2009-12-24 02:43:54 UTC) #5
Pam (message me for reviews)
I'd propose leaving this as it is, with a TODO and/or bug to make the ...
10 years, 11 months ago (2009-12-28 23:19:51 UTC) #6
andybons
10 years, 11 months ago (2009-12-29 03:25:35 UTC) #7
On Mon, Dec 28, 2009 at 6:19 PM,  <pam@chromium.org> wrote:
> I'd propose leaving this as it is, with a TODO and/or bug to make the three
> implementations more consistent. There's already a ton of duplicated code in
> the
> location bar, and it'd be nice to straighten out the whole mess at once
> rather
> than piecemeal.
Agreed.

> Aside: would it be helpful to make the Mac image "view" classes truly
> subclasses
> of NSView, or is that more complication than it's worth?

It would simplify the tooltip code that I'm about to send out and
maybe fix this cursor bug I'm running into, but it depends on
implementation cost. If you have time, then go for it :).

>
> - Pam
>
> On 2009/12/24 02:43:54, andybons_google.com wrote:
>>
>> I'll submit and wait for comments from Pam, who was also looking into
>> this, as well as look for a way to fix the plumbing since I'll be in
>> this code doing tooltips and cursor changes as well.
>
>> On Wed, Dec 23, 2009 at 9:36 PM, Nico Weber <mailto:thakis@chromium.org>
>
> wrote:
>>
>> > Your call. LG if you don't want to do that, but it'd be nicer IMHO.
>> >
>> > On Dec 23, 2009 6:16 PM, "Andrew Bonventre (Bons)"
>
> <mailto:andybons@google.com>
>>
>> > wrote:
>> >
>> > I agree, but we have win, which has each image be it's own proper
>> > subview and can therefore call schedulePaint, linux, which seems to
>> > redraw if the layout changes regardless and mac, where the image view
>> > classes are not proper subclasses of NSView and therefore cannot call
>> > redraw in the same way that windows does.
>> >
>> > If I were to change things to be more consistent, I would change the
>> > other implementations to be looking for the page action visibility
>> > notification change instead of redrawing in every function where it
>> > _may_ have changed.
>> >
>> > A
>> >
>> > On Wed, Dec 23, 2009 at 8:45 PM, <mailto:thakis@chromium.org> wrote: >
>> > The
>
> code
>>
>> > looks alright, but I'm no...
>
>
>
>
> http://codereview.chromium.org/515027
>

Powered by Google App Engine
This is Rietveld 408576698