| Index: ui/views/cocoa/bridged_content_view.mm
|
| diff --git a/ui/views/cocoa/bridged_content_view.mm b/ui/views/cocoa/bridged_content_view.mm
|
| index e1c7497c1814578fca72bac2b56749befc3982d3..b8d3254add9c875f983c5e4f889296c679a8a839 100644
|
| --- a/ui/views/cocoa/bridged_content_view.mm
|
| +++ b/ui/views/cocoa/bridged_content_view.mm
|
| @@ -661,6 +661,14 @@ ui::KeyEvent GetCharacterEventFromNSEvent(NSEvent* event) {
|
| ui::CanvasPainter(&canvas, 1.f).context());
|
| }
|
|
|
| +- (BOOL)isOpaque {
|
| + if (!hostedView_)
|
| + return NO;
|
| +
|
| + ui::Layer* layer = hostedView_->GetWidget()->GetLayer();
|
| + return layer && layer->fills_bounds_opaquely();
|
| +}
|
| +
|
| // To maximize consistency with the Cocoa browser (mac_views_browser=0), accept
|
| // mouse clicks immediately so that clicking on Chrome from an inactive window
|
| // will allow the event to be processed, rather than merely activate the window.
|
|
|