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

Unified Diff: ui/aura/event_filter_unittest.cc

Issue 10827145: Convert Aura to use ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/event_filter.h ('k') | ui/aura/event_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/event_filter_unittest.cc
===================================================================
--- ui/aura/event_filter_unittest.cc (revision 150582)
+++ ui/aura/event_filter_unittest.cc (working copy)
@@ -6,13 +6,13 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "ui/aura/event.h"
#include "ui/aura/focus_manager.h"
#include "ui/aura/root_window.h"
#include "ui/aura/test/aura_test_base.h"
#include "ui/aura/test/event_generator.h"
#include "ui/aura/test/test_event_filter.h"
#include "ui/aura/test/test_window_delegate.h"
+#include "ui/base/event.h"
#if defined(OS_WIN)
// Windows headers define macros for these function names which screw with us.
@@ -45,19 +45,20 @@
int touch_event_count() const { return touch_event_count_; }
// Overridden from TestWindowDelegate:
- virtual bool OnKeyEvent(KeyEvent* event) OVERRIDE {
+ virtual bool OnKeyEvent(ui::KeyEvent* event) OVERRIDE {
++key_event_count_;
return true;
}
- virtual bool OnMouseEvent(MouseEvent* event) OVERRIDE {
+ virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE {
++mouse_event_count_;
return true;
}
- virtual ui::TouchStatus OnTouchEvent(TouchEvent* event) OVERRIDE {
+ virtual ui::TouchStatus OnTouchEvent(ui::TouchEventImpl* event) OVERRIDE {
++touch_event_count_;
return ui::TOUCH_STATUS_UNKNOWN;
}
- virtual ui::GestureStatus OnGestureEvent(GestureEvent* event) OVERRIDE {
+ virtual ui::GestureStatus OnGestureEvent(
+ ui::GestureEventImpl* event) OVERRIDE {
return ui::GESTURE_STATUS_UNKNOWN;
}
@@ -106,7 +107,7 @@
// and the w1111's delegate should receive the event.
EventGenerator generator(root_window(), w1111.get());
generator.PressLeftButton();
- KeyEvent key_event(ui::ET_KEY_PRESSED, ui::VKEY_A, 0);
+ ui::KeyEvent key_event(ui::ET_KEY_PRESSED, ui::VKEY_A, 0);
root_window()->AsRootWindowHostDelegate()->OnHostKeyEvent(&key_event);
// TODO(sadrul): TouchEvent!
« no previous file with comments | « ui/aura/event_filter.h ('k') | ui/aura/event_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698