Difference between chrome popup and panel

I am creating an extension for Chrome and I cannot solve it. If I have to use a popup like chrome.windows.create, a panel or a separate panel. I could not find a comparative study of the three options. Any links or short descriptions of the positives and limitations of each would be helpful. thank

+3


source to share


2 answers


enter image description here



Since chrome doesn't include permission bars by default, this needs to be configured to show the behavior of the bar instead of the popup. Note that the pop-ups can be moved and the console window can be viewed, but none of them are available in the panel.

+2


source


You are having difficulty understanding this because unless you specifically include an experimental feature, they are exactly the same, or rather, the latter are ignored and a type is created popup

.
Unfortunately, this means that this API is not publicly available until Google decides to mark it as stable.

Quoting the docs :

The "panel" and "detached_panel" types create a popup if the "--enable-panels" flag is not set.

As for the panels, here is a description of the API with a detailed description.



Panels are windows that are visible to the user even when the user is interacting with other applications. Small windows are located at the bottom of the screen with minimal manual control by the user. This API will allow extension developers to create and use panels.

[...]

The extension opens small "pop-up" windows such as individual chat sessions, calculator, media player, stock / sports / news ticker, task list, notepad, which the user wants to keep visible when using another application or browsing another website. Scattered pop-ups have a hard time keeping track of the user, so the panels are located at the bottom of the screen and are always on top.

The user would like to easily control the chat windows: find them, move them to the side, etc. Managing individual "pop ups" chat windows is time consuming. All panels can be minimized / enlarged together.

If you need a real-life example, Hangouts is added to use this type of window; what they create chat panels:

Hangouts screenshot

+4


source







All Articles