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

Unified Diff: ui/aura/test/test_window_delegate.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/test/test_window_delegate.h ('k') | ui/aura/window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/test_window_delegate.cc
===================================================================
--- ui/aura/test/test_window_delegate.cc (revision 150582)
+++ ui/aura/test/test_window_delegate.cc (working copy)
@@ -5,8 +5,8 @@
#include "ui/aura/test/test_window_delegate.h"
#include "base/stringprintf.h"
-#include "ui/aura/event.h"
#include "ui/aura/window.h"
+#include "ui/base/event.h"
#include "ui/base/hit_test.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/path.h"
@@ -38,7 +38,7 @@
void TestWindowDelegate::OnBlur() {
}
-bool TestWindowDelegate::OnKeyEvent(KeyEvent* event) {
+bool TestWindowDelegate::OnKeyEvent(ui::KeyEvent* event) {
return false;
}
@@ -56,15 +56,16 @@
return true;
}
-bool TestWindowDelegate::OnMouseEvent(MouseEvent* event) {
+bool TestWindowDelegate::OnMouseEvent(ui::MouseEvent* event) {
return false;
}
-ui::TouchStatus TestWindowDelegate::OnTouchEvent(TouchEvent* event) {
+ui::TouchStatus TestWindowDelegate::OnTouchEvent(ui::TouchEventImpl* event) {
return ui::TOUCH_STATUS_UNKNOWN;
}
-ui::GestureStatus TestWindowDelegate::OnGestureEvent(GestureEvent* event) {
+ui::GestureStatus TestWindowDelegate::OnGestureEvent(
+ ui::GestureEventImpl* event) {
return ui::GESTURE_STATUS_UNKNOWN;
}
@@ -108,7 +109,7 @@
ColorTestWindowDelegate::~ColorTestWindowDelegate() {
}
-bool ColorTestWindowDelegate::OnKeyEvent(KeyEvent* event) {
+bool ColorTestWindowDelegate::OnKeyEvent(ui::KeyEvent* event) {
last_key_code_ = event->key_code();
return true;
}
@@ -147,7 +148,7 @@
key_release_count_(0) {
}
-bool EventCountDelegate::OnMouseEvent(MouseEvent* event) {
+bool EventCountDelegate::OnMouseEvent(ui::MouseEvent* event) {
switch (event->type()) {
case ui::ET_MOUSE_MOVED:
mouse_move_count_++;
@@ -170,7 +171,7 @@
return false;
}
-bool EventCountDelegate::OnKeyEvent(KeyEvent* event) {
+bool EventCountDelegate::OnKeyEvent(ui::KeyEvent* event) {
switch (event->type()) {
case ui::ET_KEY_PRESSED:
key_press_count_++;
« no previous file with comments | « ui/aura/test/test_window_delegate.h ('k') | ui/aura/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698