XCLUB-COOL STUFF AROUND YOU

 找回密码
 Register
查看: 181|回复: 0
打印 上一主题 下一主题

Chrome OS Will Soon get Android-like Notification Badges

[复制链接]

489

主题

9782

帖子

1万

积分

Golden Star LV21

20M2019Xclub Kolpost star1post star2sign star1sign star2sign star3sign star4X'Club badge exclusive for Nigeria

跳转到指定楼层
#1
发表于 2018-01-13 06:46:05 来自手机 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
[br] [br]Mobile operating systems like Apple’s iOS have had notification badges for years, but it’s not a feature that Android supported natively until recently. It’s a welcome addition, and a new commit suggests it’s coming to another Google operating system — Chrome OS — in the near future.[br][br]According to the commit in question, which was discovered by Chrome Story, Google’s calling them “notification indicators,” and an upcoming version of Chrome OS will add notification badges to shelf app icons throughout the operating system.[br][br]cros: Add Notification indicators for shelf app icons[br][br]This CL includes:[br]– New feature flag (omitting the chrome://flag for now per pm request)[br]– Added functionality to Shelf MVC with tests.[br]– Added new view to ShelfButton.[br]– Added new field to ShelfItem.[br][br]Flow:[br]– ShelfController now observes MessageCenter.[br]– ShelfController sends the Notification ID to the ShelfModel.[br]– ShelfModel updates the appropriate ShelfItem.[br]– ShelfView::OnShelfItemChanged handles updating the icons indicator.[br][br]About the two new maps in ShelfModel:[br]– We need the NotificationId-]AppId map because when the Notification is deleted, we[br]lose the ability to look up the Notification’s AppId.[br]– We need the AppId-]NotificationId map so an app can look-up all of[br]its notifications.[br][br]Bug:801014[br][br]A related bug report suggests that the notification indicators appear next to apps pinned to the taskbar. There aren’t any images of them in action yet, but they’re described as numbers or dots “in the top right corner of the image [that] represent an active notification.” That certainly matches how things look with Android’s Notification Dots feature, and it isn’t unreasonable to assume they’ll be similar.[br][br]A comment on the commit mentions that Chrome OS notification indicators will work on both Android applications and Chrome OS applications. Interestingly, there’s another comment that says a piece of code “enables the touchable app context menus.” Notification Dots on Android allow users to long press on icons to bring up App Shortcuts and see a concatenated version of the notification, and there’s a good chance that notification badges on Chrome OS will work much the same way.
https://www.evutisblog.com.ng
回复

使用道具 举报

高级模式
B Color Link Quote Code Smilies |上传

本版积分规则

Infinix Official Website|Infinix official mall|infinix Note 4|XCLUB-COOL STUFF AROUND YOU

GMT+8, 2025-01-26 16:47 , Processed in 0.035755 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表