javascript - 如何在 Chrome 打包应用程序的 list 中使用 "system_indicator"?

标签 javascript google-chrome chromium google-chrome-app

我正在尝试创建一个在系统菜单栏中带有图标的 Chrome 包应用程序,如下所述:https://docs.google.com/document/d/1QhhfR33Y28Yqnnoa_Sl3fnZK_mKtwt4dZe6kNyJ_MjU/edit ,

Google Hangout 应用程序可以实现此功能(这不是完全相同的行为),但我找不到任何好的文档来执行相同的操作。

在Google Packaged App的manifest页面中,我们可以看到“system_indicator”字段。是我要找的吗?当我尝试将此字段设置为图标的 url 时,Chrome 返回此错误:

'system_indicator' requires Google Chrome dev channel or newer, but this is the beta channel.

我还从 chromium 项目中找到了这个旧页面:http://www.chromium.org/developers/design-documents/extensions/proposed-changes/apis-under-development/system-indicator-api

所以我的问题很简单:我可以为我的应用程序构建此功能吗?如果是,怎么做?

感谢您的帮助! :-)

最佳答案

system_indicator 是一个实验性 API,部分在开发 channel 中引入,但后来被删除,因为 Chrome/Chromium 团队认为它在所有平台上的维护成本太高。此 API 的完整历史可在 issue 142450 获得。 .

换句话说,就目前而言,系统托盘图标没有API。

关于javascript - 如何在 Chrome 打包应用程序的 list 中使用 "system_indicator"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20306548/

相关文章:

CSS 网格在 Chrome 中不起作用,但在其他浏览器中起作用

selenium - 将 Selenium 与 Chromium 浏览器结合使用

javascript - AngularJS 中带有对象的 startWith 过滤器

javascript - 关联数组无法正常工作

javascript - 三.TextureLoader加载不上图片文件

javascript - 如何在文件 : protocol 处使用 webkitRequestFileSystem

google-chrome - 使用 Chrome DevTools 协议(protocol) Input.dispatchKeyEvent 或 Input.dispatchMouseEvent 发送事件

javascript - 有没有办法让使用服务器发送的事件持久化?

javascript - 如何将 JSON 数据放入 html/javascript 网格表中

google-chrome - Chrome 上 <select><option> 值修改和后退按钮的可能错误