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

Unified Diff: ui/events/test/test_event_processor.cc

Issue 533323004: Remove RootView::DispatchGestureEvent() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test added, member name changed Created 6 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/events/test/test_event_processor.h ('k') | ui/views/view_targeter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/test_event_processor.cc
diff --git a/ui/events/test/test_event_processor.cc b/ui/events/test/test_event_processor.cc
index 995912831f7fea47a4942e045892ec4f8fb4e73b..86d4e44095f3837d835fb7a928eb85ef467d84cb 100644
--- a/ui/events/test/test_event_processor.cc
+++ b/ui/events/test/test_event_processor.cc
@@ -9,13 +9,17 @@
namespace ui {
namespace test {
-TestEventProcessor::TestEventProcessor() {}
+TestEventProcessor::TestEventProcessor() : num_times_processing_finished_(0) {}
TestEventProcessor::~TestEventProcessor() {}
void TestEventProcessor::SetRoot(scoped_ptr<EventTarget> root) {
root_ = root.Pass();
}
+void TestEventProcessor::ResetCounts() {
+ num_times_processing_finished_ = 0;
+}
+
bool TestEventProcessor::CanDispatchToTarget(EventTarget* target) {
return true;
}
@@ -28,5 +32,9 @@ EventDispatchDetails TestEventProcessor::OnEventFromSource(Event* event) {
return EventProcessor::OnEventFromSource(event);
}
+void TestEventProcessor::OnEventProcessingFinished(Event* event) {
+ num_times_processing_finished_++;
+}
+
} // namespace test
} // namespace ui
« no previous file with comments | « ui/events/test/test_event_processor.h ('k') | ui/views/view_targeter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698