2012-02-28 24 views
12

Google Hangouts extension有一個顯示在Chrome用戶界面外部的面板。如何構建Google環聊等Chrome擴展程序

它有點像通知,但不是。我在擴展程序開發人員文檔中沒有看到描述API的任何內容。這是一個Google特定的黑客攻擊嗎?我錯過了實驗性API中的某些內容嗎?

+1

相關:[如何擴展聊天谷歌創建面板窗口?](http://stackoverflow.com/questions/11614493/how-does-extension-chat-for-google-create-the-panel-window 「Google的擴展程序聊天如何創建面板窗口?」) – 2013-10-25 08:37:39

回答

21

它是chrome.windows.create的選項。確保你將type設置爲panel

chrome.windows.create({ url: 'https://mobile.twitter.com/', type: 'panel' }); 

panel可能不支持在所有平臺上,你可能必須明確地使面板在Chrome標誌chrome://flags/#enable-panels

+1

我沒有啓用'panel',但是'hangouts'管理無論如何都創建了一個。 – satoru 2013-06-30 08:35:14

+1

某些Google擴展程序在某些平臺上自動執行面板。 – abraham 2013-07-01 19:10:49

+0

@satoru你是什麼意思,「我沒有啓用面板」? – cprcrack 2015-01-23 16:20:43

相關問題