hi
> It is actually possible to close a browser action popup already by
> calling window.close() inside the popup.
great!
> It isn't possible to *open* a popup on purpose. We were afraid that
> this would get annoying for users and wouldn't be done in a consistent
> way. What is your use case for wanting to open the popup
> programmatically?
Specifically, I would like to have a popup be displayed when the user
enters a keyboard shortcut.
I am thinking to use the following:
content_script -> catch custom event -> postMessage
to notify Chrome, and have the popup window be displayed.
Alternatively, if the manifest.json file was able to be specified as
below:
"browser_action": {
"popup": "background/popup.html",
"keyboard": "Shift + Ctrl + :"
},
I believe that popups could de displayed more safely.
There are probably many users who would like to use the keyboard to
perform a browser action.
-----
Yuichi Tateno
On 11月13日, 午前3:55, Aaron Boodman <[email protected]> wrote:
> On Wed, Nov 11, 2009 at 6:35 PM, Yuichi Tateno <[email protected]> wrote:
> > Hi all,
>
> > I have a question in regards to "popup view" that can be used from the
> > BrowserAction API.
>
> > Is the "getPopupView()" API that is currently part of the experimental
> > API scheduled to be included in the standard API release?
>
> > Also as included in:
>
> > chrome.experimental.extention.getPopupView().close();
>
> That method actually relates to a different feature than the browser
> actions. There is an experimental "popup" feature that is different
> than the popups that go with browser actions. The experimental popup
> is more like an overlay. It allows a small rectangular window with no
> chrome to be placed anywhere over the browser. This close() method
> goes with that.
>
> It is actually possible to close a browser action popup already by
> calling window.close() inside the popup.
>
> It isn't possible to *open* a popup on purpose. We were afraid that
> this would get annoying for users and wouldn't be done in a consistent
> way. What is your use case for wanting to open the popup
> programmatically?
>
> - 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=.