Oh, and for future reference:

http://code.google.com/chrome/extensions/extension.html#method-getViews

- a

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/(justpick the
>>> >> 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