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

Unified Diff: ui/aura/test/test_window_delegate.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
Index: ui/aura/test/test_window_delegate.cc
diff --git a/ui/aura/test/test_window_delegate.cc b/ui/aura/test/test_window_delegate.cc
index b179fda6960a70de62afbf36d53a1a2cfc68dd31..0565bb36ac99034d3ebc348c91c167b915a7d431 100644
--- a/ui/aura/test/test_window_delegate.cc
+++ b/ui/aura/test/test_window_delegate.cc
@@ -16,7 +16,7 @@ namespace test {
////////////////////////////////////////////////////////////////////////////////
// TestWindowDelegate
-TestWindowDelegate::TestWindowDelegate() {
+TestWindowDelegate::TestWindowDelegate() : accept_events_(true) {
}
TestWindowDelegate::~TestWindowDelegate() {
@@ -56,6 +56,10 @@ bool TestWindowDelegate::ShouldActivate(Event* event) {
return true;
}
+bool TestWindowDelegate::ShouldAcceptEvents() {
+ return accept_events_;
+}
+
void TestWindowDelegate::OnActivated() {
}

Powered by Google App Engine
This is Rietveld 408576698