Not yet, but we want to add methods like getBackgroundPage() and getToolstrips().
See: http://code.google.com/p/chromium/issues/detail?id=13577 - a On Sun, Jun 7, 2009 at 9:15 AM, yohann.richard<[email protected]> wrote: > > Hi all, > > Is there a function call or pointer to get access to the background > page directly from the toolstrip ? > > Right now I need to discover it by cycling through the views, and it's > probably not the best solution: > > Background snippet : > var bIsBackground=true; > > Toolstrip snippet : > function getBackground(){ > var homepage=null > chrome.self.getViews().some(function(_view){ > if(_view.bIsBackground===true){ > homepage=obj; > return true; > } > }); > return homepage; > } > > Thanks, > > Yo > > > --~--~---------~--~----~------------~-------~--~----~ Chromium Discussion mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-discuss -~----------~----~----~----~------~----~------~--~---
