| 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);
|
| };
|
|
|
|
|