Lines Matching refs:event_handler
24 #include "ui/base/events/event_handler.h"
143 TestEventHandler event_handler;
144 Shell::GetInstance()->AddPreTargetHandler(&event_handler);
161 EXPECT_EQ("50,90", event_handler.GetLocationAndReset());
180 EXPECT_EQ("110,70", event_handler.GetLocationAndReset());
203 EXPECT_EQ("95,80", event_handler.GetLocationAndReset());
222 EXPECT_EQ("70,120", event_handler.GetLocationAndReset());
227 Shell::GetInstance()->RemovePreTargetHandler(&event_handler);
234 TestEventHandler event_handler;
235 Shell::GetInstance()->AddPreTargetHandler(&event_handler);
256 EXPECT_EQ("299,150", event_handler.GetLocationAndReset());
272 Shell::GetInstance()->RemovePreTargetHandler(&event_handler);
276 TestEventHandler event_handler;
277 Shell::GetInstance()->AddPreTargetHandler(&event_handler);
294 EXPECT_FLOAT_EQ(0.2f, event_handler.touch_radius_x());
295 EXPECT_FLOAT_EQ(0.2f, event_handler.touch_radius_y());
302 EXPECT_FLOAT_EQ(event_handler.scroll_x_offset(),
303 event_handler.scroll_x_offset_ordinal() * 2 * 2.5f);
304 EXPECT_FLOAT_EQ(event_handler.scroll_y_offset(),
305 event_handler.scroll_y_offset_ordinal() * 2 * 2.5f);
308 Shell::GetInstance()->RemovePreTargetHandler(&event_handler);
312 TestEventHandler event_handler;
313 Shell::GetInstance()->AddPreTargetHandler(&event_handler);
329 EXPECT_EQ("150,224", event_handler.GetLocationAndReset());
333 EXPECT_EQ("150,224", event_handler.GetLocationAndReset());
335 EXPECT_EQ("187,261", event_handler.GetLocationAndReset());
337 EXPECT_EQ("237,299", event_handler.GetLocationAndReset());
339 EXPECT_EQ("137,348", event_handler.GetLocationAndReset());
354 EXPECT_EQ("224,149", event_handler.GetLocationAndReset());
358 EXPECT_EQ("224,148", event_handler.GetLocationAndReset());
360 EXPECT_EQ("261,111", event_handler.GetLocationAndReset());
362 EXPECT_EQ("299,60", event_handler.GetLocationAndReset());
364 EXPECT_EQ("348,159", event_handler.GetLocationAndReset());
379 EXPECT_EQ("149,225", event_handler.GetLocationAndReset());
383 EXPECT_EQ("148,224", event_handler.GetLocationAndReset());
385 EXPECT_EQ("111,187", event_handler.GetLocationAndReset());
387 EXPECT_EQ("60,149", event_handler.GetLocationAndReset());
389 EXPECT_EQ("159,99", event_handler.GetLocationAndReset());
394 Shell::GetInstance()->RemovePreTargetHandler(&event_handler);