arc: Make notifications from Android read by ChromeVox.
BUG=644154
TEST=Go through notification list in message center with ChromeVox,
then ChromeVox read ARC custom notifications
Committed: https://crrev.com/02f8ca650a8976e67ec89f0a9c87da70fc34ea2e
Cr-Commit-Position: refs/heads/master@{#417202}
4 years, 3 months ago
(2016-09-06 07:10:06 UTC)
#6
PTAL. Thanks.
yawano
https://codereview.chromium.org/2318463002/diff/40001/ui/arc/notification/arc_custom_notification_item.cc File ui/arc/notification/arc_custom_notification_item.cc (right): https://codereview.chromium.org/2318463002/diff/40001/ui/arc/notification/arc_custom_notification_item.cc#newcode85 ui/arc/notification/arc_custom_notification_item.cc:85: accessible_name_ = base::UTF8ToUTF16(data.accessible_name.get()); You will need to set empty ...
4 years, 3 months ago
(2016-09-06 08:07:17 UTC)
#7
4 years, 3 months ago
(2016-09-06 10:16:47 UTC)
#9
lgtm
xiyuan
lgtm
4 years, 3 months ago
(2016-09-06 16:07:27 UTC)
#10
lgtm
yoshiki
I think NotificationView::SetAccessibleName() may override the accessible name you've set. How about adding CustomNotificationView::SetAccessibleName() and ...
4 years, 3 months ago
(2016-09-06 18:47:20 UTC)
#11
I think NotificationView::SetAccessibleName() may override the accessible name
you've set.
How about adding CustomNotificationView::SetAccessibleName() and overriding
NotificationView::SetAccessibleName()? And I think it's ok to add a new field
named "custom_accessible_name" to message_center::Notification class, if you
need to pass the name.
xiyuan
CustomNotificationView derives from MessageView and is a sibling of NotificationView in the class hierarchy. So ...
4 years, 3 months ago
(2016-09-06 21:06:31 UTC)
#12
CustomNotificationView derives from MessageView and is a sibling of
NotificationView in the class hierarchy. So NotificationView::SetAccessibleName
should not affect CustomNotificationView's |accessible_name_| member.
yoshiki
On 2016/09/06 21:06:31, xiyuan wrote: > CustomNotificationView derives from MessageView and is a sibling of ...
4 years, 3 months ago
(2016-09-07 03:07:06 UTC)
#13
On 2016/09/06 21:06:31, xiyuan wrote:
> CustomNotificationView derives from MessageView and is a sibling of
> NotificationView in the class hierarchy. So
NotificationView::SetAccessibleName
> should not affect CustomNotificationView's |accessible_name_| member.
Good catch.
Then, how about just moving NotificationView::SetAccessibleName() method to
MessageView class? I think doing the same way as NotificationView and sharing
the code are good for code readability.
What I meant is:
1. Add a method Notification::set_accessible_name()
2. Add a method Notification::GetAccessibleName(), which returns the accessible
name set by the above method or the fallen-back string (title + message + ...,
see NotificationView::SetAccessibleName) if the string is not set.
3. Move NotificationView::SetAccessibleName() to
MessageView::SetAccessibleName(), and use Notification::GetAccessibleName() in
the method.
4. Call MessageView::SetAccessibleName() from CustomNotificationView ctor and
CustomNotificationView::UpdateWithNotification (as same as NotificationView).
yhanada
On 2016/09/07 03:07:06, yoshiki wrote: > On 2016/09/06 21:06:31, xiyuan wrote: > > CustomNotificationView derives ...
4 years, 3 months ago
(2016-09-07 08:05:02 UTC)
#14
On 2016/09/07 03:07:06, yoshiki wrote:
> On 2016/09/06 21:06:31, xiyuan wrote:
> > CustomNotificationView derives from MessageView and is a sibling of
> > NotificationView in the class hierarchy. So
> NotificationView::SetAccessibleName
> > should not affect CustomNotificationView's |accessible_name_| member.
>
> Good catch.
>
> Then, how about just moving NotificationView::SetAccessibleName() method to
> MessageView class? I think doing the same way as NotificationView and sharing
> the code are good for code readability.
>
> What I meant is:
> 1. Add a method Notification::set_accessible_name()
> 2. Add a method Notification::GetAccessibleName(), which returns the
accessible
> name set by the above method or the fallen-back string (title + message + ...,
> see NotificationView::SetAccessibleName) if the string is not set.
> 3. Move NotificationView::SetAccessibleName() to
> MessageView::SetAccessibleName(), and use Notification::GetAccessibleName() in
> the method.
> 4. Call MessageView::SetAccessibleName() from CustomNotificationView ctor and
> CustomNotificationView::UpdateWithNotification (as same as NotificationView).
I agree with you. I moved NotificationView::SetAccessibleName() to MessageView,
so
now NotificationView and CustomNotificationView shares the implementation about
accessible_name.
PTAL. Thanks!
yoshiki
Thanks! Almost there. https://codereview.chromium.org/2318463002/diff/100001/ui/arc/notification/arc_custom_notification_item.cc File ui/arc/notification/arc_custom_notification_item.cc (right): https://codereview.chromium.org/2318463002/diff/100001/ui/arc/notification/arc_custom_notification_item.cc#newcode68 ui/arc/notification/arc_custom_notification_item.cc:68: if (!data.accessible_name.is_null()) { nit: no need ...
4 years, 3 months ago
(2016-09-07 08:29:34 UTC)
#15
4 years, 3 months ago
(2016-09-08 05:51:11 UTC)
#31
Message was sent while issue was closed.
Committed patchset #9 (id:160001)
commit-bot: I haz the power
Description was changed from ========== arc: Make notifications from Android read by ChromeVox. BUG=644154 TEST=Go ...
4 years, 3 months ago
(2016-09-08 05:53:51 UTC)
#32
Message was sent while issue was closed.
Description was changed from
==========
arc: Make notifications from Android read by ChromeVox.
BUG=644154
TEST=Go through notification list in message center with ChromeVox,
then ChromeVox read ARC custom notifications
==========
to
==========
arc: Make notifications from Android read by ChromeVox.
BUG=644154
TEST=Go through notification list in message center with ChromeVox,
then ChromeVox read ARC custom notifications
Committed: https://crrev.com/02f8ca650a8976e67ec89f0a9c87da70fc34ea2e
Cr-Commit-Position: refs/heads/master@{#417202}
==========
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/02f8ca650a8976e67ec89f0a9c87da70fc34ea2e Cr-Commit-Position: refs/heads/master@{#417202}
4 years, 3 months ago
(2016-09-08 05:53:52 UTC)
#33
Issue 2318463002: arc: Make ChromeVox read an ARC custom notification
(Closed)
Created 4 years, 3 months ago by yhanada
Modified 4 years, 3 months ago
Reviewers: yoshiki, xiyuan, yawano, dcheng
Base URL:
Comments: 18