文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> 资讯>Chrome 5 完全开放扩展桌面提醒 API

Chrome 5 完全开放扩展桌面提醒 API

时间:2010-05-31  来源:linux论坛

很多扩展都使用 Chrome 的 Browser Action 技术给扩展实现一些消息提醒功能,比如检查电子邮件、日历、任务计划等等,几乎都采用了这个技术。但很多开发者都不愿意去搞那个图标,对于用户来说扩展装 多了也会显得浏览器上非常拥挤。现在,使用 Chrome 的桌面提醒(Desktop Notifications) API 终于可以解决这个问题了。
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://pub.chinaunix.net//uploadfile/2010/0531/20100531085808432.png');}" onmousewheel="return imgzoom(this);" alt="" />
其实 Desktop Notifications 在 Chrome 4 的时候就已经部署到浏览器中,不过当时只支持Windows,而且并未默认开启。现在,这个功能已经在最新的 Chrome 5 稳定版中完全面向开发者开放,各位扩展作者可以利用这个 API 做出一些非常好的扩展了。比如上面截图中的 Gmail Notifier 就已经采用了这个 API。
不过,笔者在试用 Gmail Notifier 的桌面提醒功能的时候,发现弹出的提醒没法点击直接进入收件箱,感觉很不方便。

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载