Thank you both for the tips.

I've been able to play a little with it:
http://dev.jeremyselier.com/chrome-extensions/gmail-checker-2.crx
So of course it's the new notifier from the trunk. I removed canvas as
I wasn't able to make it worked. Instead I used the setIcon/
setBadgeText combo which is awesome!
I integrated a popup which prints your at best 3 unread mails, the
fact that the popup is fully customizable is great. It seems that you
planned to limit the popup size, I think it's a good idea, but it
would be cool to be able to resize the popup at the size we want (in
the limit of the max-size you allow). Or another way to deal with this
is to be able to set a transparent background for the body of our
popup, with this we can have nice design with border-radius.

Well, it was fun!


On 15 oct, 23:20, Matt Perry <[email protected]> wrote:
> This may be obvious, but note that getViews() will not return the popup if
> it is not currently visible. It's not just hidden, it's not loaded at all.
> For that reason, I think it might make more sense to have the popup talk to
> the background page.
>
>
>
> On Thu, Oct 15, 2009 at 2:04 PM, Aaron Boodman <[email protected]> wrote:
>
> > We don't have a getPopup() function. It would be a good thing to add,
> > but you can workaround by using the getViews() method which gets
> > everything.
>
> > var views = chrome.extension.getViews();
> > for (var i = 0; i < views.length; i++) {
> >  if (views[i].location.pathname == "/popup.html")
> >    // do something with views[i]
> > }
>
> > - a
>
> > On Thu, Oct 15, 2009 at 1:52 PM, Jeremy Selier <[email protected]>
> > wrote:
>
> > > Oh I wasn't aware of that. But is the reverse possible, I mean, can
> > > the popup talk to the background page?
> > > Maybe something like chrome.extension.getPopup().printUnreadEmails();
>
> > > On Oct 15, 10:49 pm, Aaron Boodman <[email protected]> wrote:
> > >> The popups can talk to the background page using APIs like
> > >> chrome.extension.getBackgroundPage(). Is that what you mean?
>
> > >> - a
>
> > >> On Thu, Oct 15, 2009 at 1:45 PM, Jeremy Selier <[email protected]>
> > wrote:
>
> > >> > I'va tested it and I find it pretty cool!
>
> > >> > Question:
> > >> > Is it planned to have interaction between background page and popup?
> > >> > I see an interesting use case for the GMail notifier, for example, the
> > >> > popup could display the title of unread emails.
>
> > >> > Anyway, this is going to be cool!
>
> > >> > --
> > >> > Jeremy
>
> > >> > On 15 oct, 20:48, Aaron Boodman <[email protected]> wrote:
> > >> >> On Thu, Oct 15, 2009 at 11:45 AM, Dan <[email protected]> wrote:
> > >> >> > Am I able to make the extension forward compatible, by adding the
> > new
> > >> >> > properties to the manifest.json as well?
>
> > >> >> Yes, the manifest parser tolerates extra properties. If you want to
> > test it,
> > >> >> you can download a trunk Chromium:
>
> >http://build.chromium.org/buildbot/snapshots/chromium-rel-xp/(justpickthe
> > >> >> one with the biggest number)
>
> > >> >> The programmatic API is also slightly different, but you can just use
> > object
> > >> >> detection to try both of them.
>
> > >> >> - a
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to