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

Unified Diff: ui/aura/test/aura_test_base.cc

Issue 147203004: aura: Remove event-dispatch methods from WindowTreeHostDelegate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win Created 6 years, 11 months 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
« no previous file with comments | « ui/aura/test/aura_test_base.h ('k') | ui/aura/test/event_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/aura_test_base.cc
diff --git a/ui/aura/test/aura_test_base.cc b/ui/aura/test/aura_test_base.cc
index 7dfe74db48ab24c7e8a828302fe43b2eb066ae6e..f59f1411e6e66d941f0d7381ea1c45630fa38767 100644
--- a/ui/aura/test/aura_test_base.cc
+++ b/ui/aura/test/aura_test_base.cc
@@ -10,6 +10,7 @@
#include "ui/aura/test/test_window_delegate.h"
#include "ui/aura/window.h"
#include "ui/base/ime/input_method_initializer.h"
+#include "ui/events/event_dispatcher.h"
#include "ui/events/gestures/gesture_configuration.h"
namespace aura {
@@ -106,5 +107,11 @@ void AuraTestBase::ParentWindow(Window* window) {
client::ParentWindowWithContext(window, root_window(), gfx::Rect());
}
+bool AuraTestBase::DispatchEventUsingWindowDispatcher(ui::Event* event) {
+ ui::EventDispatchDetails details = dispatcher()->OnEventFromSource(event);
+ CHECK(!details.dispatcher_destroyed);
+ return event->handled();
+}
+
} // namespace test
} // namespace aura
« no previous file with comments | « ui/aura/test/aura_test_base.h ('k') | ui/aura/test/event_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698