| Index: ui/views/cocoa/bridged_native_widget.mm
|
| diff --git a/ui/views/cocoa/bridged_native_widget.mm b/ui/views/cocoa/bridged_native_widget.mm
|
| index 4c7a28cdd1f8a9d35456e7f9b08eec96109253b9..a9551f367b413d430dd05bd1484d576b65d4fb76 100644
|
| --- a/ui/views/cocoa/bridged_native_widget.mm
|
| +++ b/ui/views/cocoa/bridged_native_widget.mm
|
| @@ -28,6 +28,18 @@
|
| #include "ui/views/widget/widget.h"
|
| #include "ui/views/widget/widget_aura_utils.h"
|
|
|
| +// The NSView that hosts the composited CALayer drawing the UI. It fills the
|
| +// window but is not hittable so that accessibility hit tests always go to the
|
| +// BridgedContentView.
|
| +@interface ViewsCompositorSuperview : NSView
|
| +@end
|
| +
|
| +@implementation ViewsCompositorSuperview
|
| +- (NSView*)hitTest:(NSPoint)aPoint {
|
| + return nil;
|
| +}
|
| +@end
|
| +
|
| namespace {
|
|
|
| int kWindowPropertiesKey;
|
| @@ -690,7 +702,7 @@ void BridgedNativeWidget::DestroyCompositor() {
|
| void BridgedNativeWidget::AddCompositorSuperview() {
|
| DCHECK(!compositor_superview_);
|
| compositor_superview_.reset(
|
| - [[NSView alloc] initWithFrame:[bridged_view_ bounds]]);
|
| + [[ViewsCompositorSuperview alloc] initWithFrame:[bridged_view_ bounds]]);
|
|
|
| // Size and resize automatically with |bridged_view_|.
|
| [compositor_superview_
|
|
|