| Index: views/widget/native_widget_aura.cc
|
| diff --git a/views/widget/native_widget_aura.cc b/views/widget/native_widget_aura.cc
|
| index 4ff026efd56b3cf2cdc171c849595264aa28fecd..b644f3ac65e1c33233069a4c0e6282172b4aee14 100644
|
| --- a/views/widget/native_widget_aura.cc
|
| +++ b/views/widget/native_widget_aura.cc
|
| @@ -92,6 +92,7 @@ NativeWidgetAura::NativeWidgetAura(internal::NativeWidgetDelegate* delegate)
|
| ownership_(Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET),
|
| ALLOW_THIS_IN_INITIALIZER_LIST(close_widget_factory_(this)),
|
| can_activate_(true),
|
| + accept_events_(true),
|
| cursor_(gfx::kNullCursor) {
|
| }
|
|
|
| @@ -147,6 +148,7 @@ void NativeWidgetAura::InitNativeWidget(const Widget::InitParams& params) {
|
| SetAlwaysOnTop(params.keep_on_top);
|
| window_->SetParent(NULL);
|
| }
|
| + accept_events_ = params.accept_events;
|
| // TODO(beng): do this some other way.
|
| delegate_->OnNativeWidgetSizeChanged(params.bounds.size());
|
| can_activate_ = params.can_activate;
|
| @@ -597,6 +599,10 @@ bool NativeWidgetAura::ShouldActivate(aura::Event* event) {
|
| return can_activate_;
|
| }
|
|
|
| +bool NativeWidgetAura::ShouldAcceptEvents() {
|
| + return accept_events_;
|
| +}
|
| +
|
| void NativeWidgetAura::OnActivated() {
|
| delegate_->OnNativeWidgetActivationChanged(true);
|
| if (IsVisible() && GetWidget()->non_client_view())
|
|
|