Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Unified Diff: views/widget/native_widget_aura.cc

Issue 8570011: Aura: windows in aura should honor Widget::InitParams::accept_events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor changes Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ui/aura/window_delegate.h ('K') | « views/widget/native_widget_aura.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« ui/aura/window_delegate.h ('K') | « views/widget/native_widget_aura.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698