How does the Google Hangouts extension create the panel window?

后端 未结 1 912
谎友^
谎友^ 2020-12-01 22:09

The Doc says if you want to create a panel window ,you should use

chrome.windows.create({...,type:\"panel\"}, function callback)

At the sa

相关标签:
1条回答
  • 2020-12-01 22:37

    The Google Hangouts extension (formerly called "Chat for Google") is explicitly whitelisted in the source code, which allows it to use the panel feature even when --enable-panels flag is unset:

    bool PanelManager::ShouldUsePanels(const std::string& extension_id) {
     ...
        return CommandLine::ForCurrentProcess()->HasSwitch(
            switches::kEnablePanels) ||
            extension_id == std::string("nckgahadagoaajjgafhacjanaoiihapd") ||
     ...
    
    0 讨论(0)
提交回复
热议问题