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

Unified Diff: ui/aura/test/test_event_handler.h

Issue 206593004: Move TestEventHandler to ui/events/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/aura.gyp ('k') | ui/aura/test/test_event_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/test_event_handler.h
diff --git a/ui/aura/test/test_event_handler.h b/ui/aura/test/test_event_handler.h
deleted file mode 100644
index 4998630e314500664e6c960cd5d7ba567af8c175..0000000000000000000000000000000000000000
--- a/ui/aura/test/test_event_handler.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_AURA_TEST_TEST_EVENT_HANDLER_H_
-#define UI_AURA_TEST_TEST_EVENT_HANDLER_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ui/events/event_handler.h"
-
-namespace aura {
-namespace test {
-
-// A simple EventHandler that keeps track of the number of key events that it's
-// seen.
-class TestEventHandler : public ui::EventHandler {
- public:
- TestEventHandler();
- virtual ~TestEventHandler();
-
- int num_key_events() const { return num_key_events_; }
- int num_mouse_events() const { return num_mouse_events_; }
- int num_scroll_events() const { return num_scroll_events_; }
- int num_touch_events() const { return num_touch_events_; }
- int num_gesture_events() const { return num_gesture_events_; }
-
- void Reset();
-
- // ui::EventHandler overrides:
- virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
- virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
- virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE;
- virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
- virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
-
- private:
- // How many events have been received of each type?
- int num_key_events_;
- int num_mouse_events_;
- int num_scroll_events_;
- int num_touch_events_;
- int num_gesture_events_;
-
- DISALLOW_COPY_AND_ASSIGN(TestEventHandler);
-};
-
-} // namespace test
-} // namespace aura
-
-#endif // UI_AURA_TEST_TEST_EVENT_HANDLER_H_
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/test/test_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698