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

Unified Diff: ui/aura/shared/compound_event_filter_unittest.cc

Issue 10960015: aura: Start converting event-filters into event-handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 years, 3 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/shared/compound_event_filter.cc ('k') | ui/base/events/event_target.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/shared/compound_event_filter_unittest.cc
diff --git a/ui/aura/shared/compound_event_filter_unittest.cc b/ui/aura/shared/compound_event_filter_unittest.cc
index 4a7bad2d4b184b5a07aaaee635b2288c2ef0c7f7..965b993d3140f1195dce8fb31039f32c4c7d8fed 100644
--- a/ui/aura/shared/compound_event_filter_unittest.cc
+++ b/ui/aura/shared/compound_event_filter_unittest.cc
@@ -89,7 +89,8 @@ namespace test {
typedef AuraTestBase CompoundEventFilterTest;
TEST_F(CompoundEventFilterTest, TouchHidesCursor) {
- aura::Env::GetInstance()->SetEventFilter(new shared::CompoundEventFilter());
+ aura::Env::GetInstance()->AddPreTargetHandler(
+ new shared::CompoundEventFilter());
TestWindowDelegate delegate;
scoped_ptr<Window> window(CreateTestWindowWithDelegate(&delegate, 1234,
gfx::Rect(5, 5, 100, 100), NULL));
@@ -137,7 +138,8 @@ TEST_F(CompoundEventFilterTest, TouchHidesCursor) {
// Tests that tapping a window gives the window focus.
TEST_F(CompoundEventFilterTest, GestureFocusesWindow) {
- aura::Env::GetInstance()->SetEventFilter(new shared::CompoundEventFilter());
+ aura::Env::GetInstance()->AddPreTargetHandler(
+ new shared::CompoundEventFilter());
TestWindowDelegate delegate;
scoped_ptr<Window> window(CreateTestWindowWithDelegate(&delegate, 1234,
gfx::Rect(5, 5, 100, 100), NULL));
@@ -159,7 +161,7 @@ TEST_F(CompoundEventFilterTest, FilterConsumedGesture) {
new shared::CompoundEventFilter();
scoped_ptr<EventFilter> gesture_filter(new ConsumeGestureEventFilter());
compound_filter->AddFilter(gesture_filter.get());
- aura::Env::GetInstance()->SetEventFilter(compound_filter);
+ aura::Env::GetInstance()->AddPreTargetHandler(compound_filter);
TestWindowDelegate delegate;
scoped_ptr<Window> window(CreateTestWindowWithDelegate(&delegate, 1234,
gfx::Rect(5, 5, 100, 100), NULL));
« no previous file with comments | « ui/aura/shared/compound_event_filter.cc ('k') | ui/base/events/event_target.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698