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

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

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/event_processor_unittest.cc ('k') | ui/events/test/test_event_processor.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.h
diff --git a/ui/events/test/test_event_processor.h b/ui/events/test/test_event_processor.h
index e9ba0963d5ffc8d21ac9e38f5cdb47055de7ed7d..5d4d98a6d59c878a09104f35e9481ab966e456cf 100644
--- a/ui/events/test/test_event_processor.h
+++ b/ui/events/test/test_event_processor.h
@@ -16,16 +16,25 @@ class TestEventProcessor : public EventProcessor {
TestEventProcessor();
virtual ~TestEventProcessor();
+ int num_times_processing_finished() const {
+ return num_times_processing_finished_;
+ }
+
void SetRoot(scoped_ptr<EventTarget> root);
+ void ResetCounts();
// EventProcessor:
virtual bool CanDispatchToTarget(EventTarget* target) OVERRIDE;
virtual EventTarget* GetRootTarget() OVERRIDE;
virtual EventDispatchDetails OnEventFromSource(Event* event) OVERRIDE;
+ virtual void OnEventProcessingFinished(Event* event) OVERRIDE;
private:
scoped_ptr<EventTarget> root_;
+ // Counts the number of times OnEventProcessingFinished() has been called.
+ int num_times_processing_finished_;
+
DISALLOW_COPY_AND_ASSIGN(TestEventProcessor);
};
« no previous file with comments | « ui/events/event_processor_unittest.cc ('k') | ui/events/test/test_event_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698