Here's the source: http://dev.jeremyselier.com/chrome-extensions/source/ I haven't done a big work on this, the Chrome team had already the majority of it.
Also I can't seem to be able to close the popup just after clicking the button. Probably because there is no interaction at all with the popup (apart the display of it)? -- Jeremy On 16 oct, 01:53, shahfazal <shahfa...@gmail.com> wrote: > I wasn't able to make the new Gmail checker sample under trunk work either. > All I'd get is a blank toolbar button with a 'Gmail' title. Clicking on it > would open Gmail in a new tab. > Jeremy, would you mind sharing your code for the checker you wrote? > > On Thu, Oct 15, 2009 at 4:49 PM, Jeremy Selier <jerem.sel...@gmail.com>wrote: > > > > > > > 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 <mpcompl...@chromium.org> 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 <a...@chromium.org> > > 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 <jerem.sel...@gmail.com > > > > > 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 <a...@chromium.org> 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 < > > jerem.sel...@gmail.com> > > > > 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 <a...@chromium.org> wrote: > > > > >> >> On Thu, Oct 15, 2009 at 11:45 AM, Dan <d...@dancryer.com> 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/(justpic... > > > > >> >> 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 chromium-extensions@googlegroups.com To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en -~----------~----~----~----~------~----~------~--~---