Commit 4c09f9d5 authored by ellyjones's avatar ellyjones Committed by Commit bot

cocoa: hide icon in permission bubble from a11y tree

BUG=699774

Review-Url: https://codereview.chromium.org/2753753006
Cr-Commit-Position: refs/heads/master@{#457444}
parent e26333eb
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include "content/public/browser/native_web_keyboard_event.h" #include "content/public/browser/native_web_keyboard_event.h"
#include "content/public/browser/user_metrics.h" #include "content/public/browser/user_metrics.h"
#include "skia/ext/skia_utils_mac.h" #include "skia/ext/skia_utils_mac.h"
#include "ui/base/cocoa/a11y_util.h"
#include "ui/base/cocoa/cocoa_base_utils.h" #include "ui/base/cocoa/cocoa_base_utils.h"
#import "ui/base/cocoa/controls/hyperlink_text_view.h" #import "ui/base/cocoa/controls/hyperlink_text_view.h"
#import "ui/base/cocoa/menu_controller.h" #import "ui/base/cocoa/menu_controller.h"
...@@ -497,6 +498,7 @@ const NSInteger kFullscreenLeftOffset = 40; ...@@ -497,6 +498,7 @@ const NSInteger kFullscreenLeftOffset = 40;
setImage:NSImageFromImageSkia(gfx::CreateVectorIcon( setImage:NSImageFromImageSkia(gfx::CreateVectorIcon(
request->GetIconId(), 18, gfx::kChromeIconGrey))]; request->GetIconId(), 18, gfx::kChromeIconGrey))];
[permissionIcon setFrameSize:kPermissionIconSize]; [permissionIcon setFrameSize:kPermissionIconSize];
ui::a11y_util::HideImageFromAccessibilityOrder(permissionIcon);
[permissionView addSubview:permissionIcon]; [permissionView addSubview:permissionIcon];
base::scoped_nsobject<NSTextField> permissionLabel( base::scoped_nsobject<NSTextField> permissionLabel(
......
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