Commit 1c744691 authored by Sidney San Martín's avatar Sidney San Martín Committed by Commit Bot

Hide a download's progress indicator on completion to remove it from the a11y tree.

Bug: 773944
Change-Id: Ic1ed323b5facb6479bdbeaf319260269426400a8
Reviewed-on: https://chromium-review.googlesource.com/783250Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Commit-Queue: Sidney San Martín <sdy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#518378}
parent 7b5f8dcd
...@@ -258,7 +258,7 @@ NSTextField* MakeLabel( ...@@ -258,7 +258,7 @@ NSTextField* MakeLabel(
imageView_.autoresizingMask = imageView_.autoresizingMask =
[NSView cr_localizedAutoresizingMask:NSViewMaxXMargin]; [NSView cr_localizedAutoresizingMask:NSViewMaxXMargin];
ui::a11y_util::HideImageFromAccessibilityOrder(imageView_); ui::a11y_util::HideImageFromAccessibilityOrder(imageView_);
imageView_.alphaValue = 0; imageView_.hidden = YES;
[self addSubview:imageView_]; [self addSubview:imageView_];
base::scoped_nsobject<MDDownloadItemProgressIndicator> progressIndicator( base::scoped_nsobject<MDDownloadItemProgressIndicator> progressIndicator(
...@@ -398,9 +398,9 @@ NSTextField* MakeLabel( ...@@ -398,9 +398,9 @@ NSTextField* MakeLabel(
[NSAnimationContext [NSAnimationContext
runAnimationGroup:^(NSAnimationContext* context) { runAnimationGroup:^(NSAnimationContext* context) {
context.duration = 0.3; context.duration = 0.3;
progressIndicator_.animator.alphaValue = 0; progressIndicator_.animator.hidden = YES;
context.duration = 1; context.duration = 1;
imageView_.animator.alphaValue = 1; imageView_.animator.hidden = NO;
} }
completionHandler:nil]; completionHandler:nil];
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment