问题
chrome.windows API tells about 5 window types: "normal", "popup", "panel", "app", "shell".
- Normal windows are standard windows with tabs;
- Popup windows are 1) standalone windows with apps (this feature is currently available on Windows and Linux), 2) chrome devtools if its window is open separately;
But what are the other 3 window types? Official API provides very little information about this
回答1:
App used to be the application mode window (ran with
--app=http://...
) and is now replaced by popup type. Based on this and this.Shell I have my money on native system dialogs (Print using
Ctrl+Shift+P
) but can't really tell for sure.Panel are some snappy, buggy, always-on-top windows that dock near the tray area. You need to enable those with
--enable-panels
flag and they look like this on Windows:
来源:https://stackoverflow.com/questions/10672724/chrome-window-types-what-do-they-stand-for