Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
204 views
in Technique[技术] by (71.8m points)

javascript - How to use "system_indicator" in the manisfet of a Chrome Packaged App?

I'm trying to create a Chrome package App with an icon in the system menu bar as explain here : https://docs.google.com/document/d/1QhhfR33Y28Yqnnoa_Sl3fnZK_mKtwt4dZe6kNyJ_MjU/edit ,

The Google Hangout App can implement this feature (it's not exactly the same behavior) but I don't find any good documentation to do the same.

In the manifest page of Google Packaged App, we can see the field "system_indicator". Is it what I'm looking for ? When I try to set this field to an url of an icon, Chrome return me this error :

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

I've also found this old page from the chromium project : http://www.chromium.org/developers/design-documents/extensions/proposed-changes/apis-under-development/system-indicator-api

So my question is simple : can I build this feature for my app ? And if yes, how ?

Thank you for your help ! :-)

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The system_indicator was an experimental API partly introduced in the dev channel, but was later removed, as the Chrome/Chromium team deemed it too costly to maintain across all platforms. The entire history of this API is available at issue 142450.

In other words, as for now, there is no API for a system tray icon.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...