How to make an extension popup persist when focus moved away?

8,451 views
Skip to first unread message

CqN

unread,
Mar 14, 2011, 2:24:03 AM3/14/11
to Chromium-extensions
When I open an popup with

"browser_action": {
"defult_poput":"x.html"
}

how do I keep the popup window remain when cursor focus is moved away?

CqN

Scott Fujan

unread,
Mar 14, 2011, 3:25:36 AM3/14/11
to CqN, Chromium-extensions

You can't. But you can open a window.

> --
> You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
> To post to this group, send email to chromium-...@chromium.org.
> To unsubscribe from this group, send email to chromium-extens...@chromium.org.
> For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
>

CqN

unread,
Mar 14, 2011, 10:50:32 AM3/14/11
to Chromium-extensions
Perhaps, I should have asked my question differently :) The google
voice extenson (by Google) has a 'Popout extension' button at the
bottom. Hitting it the popout becomes a persistent popup as panel
attached to the bottom bar. What is the api used for this?

CqN


On Mar 14, 12:25 am, Scott Fujan <scottfu...@gmail.com> wrote:
> You can't. But you can open a window.
> On Mar 14, 2011 1:24 AM, "CqN" <chackoner...@gmail.com> wrote:> When I open an popup with
>
> > "browser_action": {
> > "defult_poput":"x.html"
> > }
>
> > how do I keep the popup window remain when cursor focus is moved away?
>
> > CqN
>
> > --
> > You received this message because you are subscribed to the Google Groups
>
> "Chromium-extensions" group.> To post to this group, send email to chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
>
> chromium-extensions+unsubscr...@chromium.org.> For more options, visit this group at
>
> http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
>
>
>
>
>
>
>
>

Arne Roomann-Kurrik

unread,
Mar 15, 2011, 1:16:06 PM3/15/11
to CqN, Chromium-extensions
It looks like Google Voice is just calling

window.open(chrome.extension.getURL("popup.html"),"gc-popout-window","width=348,height=654")

Chrome OS is responsible for creating the panel from this code.  In desktop versions of Chrome it just looks like a normal window.

~Arne


To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.

CqN

unread,
Mar 15, 2011, 4:30:37 PM3/15/11
to Chromium-extensions
Arne,

Thank you! I am trying that. It appears to be the window creation.
Is the property gc-poppout-window automatically add the icon for the
Popuout Extension ?

BTW, where is the source of this gv extension? Available to view? If
not, a couple more lines to complete the syntax of usage will be
helpful. Thanks.

CqN


On Mar 15, 10:16 am, Arne Roomann-Kurrik <kur...@chromium.org> wrote:
> It looks like Google Voice is just calling
>
> window.open(chrome.extension.getURL("popup.html"),"gc-popout-window","width =348,height=654")

Arne Roomann-Kurrik

unread,
Mar 15, 2011, 9:21:41 PM3/15/11
to CqN, Chromium-extensions
I think the icon will be set if you specify a 16px icon in the icons section of your manifest.

You can see the source yourself by inspecting the popup page of the GV extension in the Chrome Developer Tools: http://code.google.com/chrome/devtools/docs/overview.html

Hope that helps,
~Arne


On Tue, Mar 15, 2011 at 1:29 PM, CqN <chacko...@gmail.com> wrote:
Arne,

Thank you!  I am trying that.  It appears to be the window creation.
Is the property gc-poppout-window automatically add the icon for the
Popuout Extension ?

BTW, where is the source of this gv extension?  Available to view?  If
not, a couple more lines to complete the syntax of usage will be
helpful.  Thanks.

CqN


On Mar 15, 10:16 am, Arne Roomann-Kurrik <kur...@chromium.org> wrote:
> It looks like Google Voice is just calling
>
> window.open(chrome.extension.getURL("popup.html"),"gc-popout-window","width =348,height=654")

CqN

unread,
Mar 15, 2011, 4:29:04 PM3/15/11
to Chromium-extensions
Arne,

Thank you! I am trying that. It appears to be the window creation.
Is the property gc-poppout-window automatically add the icon for the
Popuout Extension ?

BTW, where is the source of this gv extension? Available to view? If
not, a couple more lines to complete the syntax of usage will be
helpful. Thanks.

CqN


On Mar 15, 10:16 am, Arne Roomann-Kurrik <kur...@chromium.org> wrote:
> It looks like Google Voice is just calling
>
> window.open(chrome.extension.getURL("popup.html"),"gc-popout-window","width =348,height=654")

CqN

unread,
Mar 17, 2011, 12:54:20 PM3/17/11
to Chromium-extensions
Arne, Thanks. I think I can view all resources, except the manifest
through the inspect. Correct?

What are the permissions for this g-v ext ? I have not succeeded with
a very trivial test app to do this popout yet.

CqN

Arne Roomann-Kurrik

unread,
Mar 24, 2011, 8:12:14 PM3/24/11
to CqN, Chromium-extensions
You can get the manifest by going to the url of chrome-extension://xxxxxxxxxxxxxxxxxxxxxxxxxxxx/manifest.json where the xxxxxx part is replaced by the ID listed in the chrome:extensions page.

There shouldn't be any special permissions - this is a standard window.open call.

~Arne


To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.

Chacko

unread,
Mar 25, 2011, 12:39:19 AM3/25/11
to kur...@chromium.org, Chromium-extensions
Thanks!  That is good to know about manifest viewing.

BTW, I got yout window.open with that paramter working fine... Originally when I asked you about this, I had a typo...

Arne Roomann-Kurrik

unread,
Mar 25, 2011, 1:43:19 PM3/25/11
to Chacko, Chromium-extensions
Cool, glad to hear.

~Arne

Chacko

unread,
Mar 25, 2011, 6:04:16 PM3/25/11
to kur...@chromium.org, Chromium-extensions
Arne,

A suggestion:  since there is no easy way to view a file other than html, at least in the chrome cr-48 I know of, it seems like a good idea to have the debugger include the manifest.json file in addition to the resource --- all files in one place.  I assume there is no additional privacy exposure here since once can always view the manifest indirectly as you mentioned below.  If you don't see a problem with this, let me know where I should make this suggestion  for this -- it might be another forum?

BTW, I assume there is no way from the current debugger, while one is viewing/debugging a file, to make a change and save this, at least in the case of unpacked extensions.  Would adding this modify capability to the viewer of the debugger a good enhancement for the developer ease?

CqN
On Thu, Mar 24, 2011 at 9:39 PM, Chacko <chacko...@gmail.com> wrote:

Arne Roomann-Kurrik

unread,
Apr 5, 2011, 2:49:03 PM4/5/11
to CqN, Chromium-extensions
Sorry about the delay on this.  You should report any feature requests by following these steps: http://code.google.com/chrome/extensions/faq.html#faq-fea-02

As for saving the edited file back to disk, I'm not sure I would find it that useful and it seems a bit too specially geared for extensions (wouldn't work for editing a website, for example) but don't let me stop you from filing another feature request.

~Arne
Reply all
Reply to author
Forward
0 new messages