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

Unified Diff: ui/aura/demo/demo_main.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/client/tooltip_client.h ('k') | ui/aura/desktop/desktop_activation_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/demo/demo_main.cc
===================================================================
--- ui/aura/demo/demo_main.cc (revision 150582)
+++ ui/aura/demo/demo_main.cc (working copy)
@@ -10,12 +10,12 @@
#include "third_party/skia/include/core/SkXfermode.h"
#include "ui/aura/client/stacking_client.h"
#include "ui/aura/env.h"
-#include "ui/aura/event.h"
#include "ui/aura/root_window.h"
#include "ui/aura/single_display_manager.h"
#include "ui/aura/shared/root_window_capture_client.h"
#include "ui/aura/window.h"
#include "ui/aura/window_delegate.h"
+#include "ui/base/event.h"
#include "ui/base/hit_test.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_paths.h"
@@ -42,7 +42,7 @@
const gfx::Rect& new_bounds) OVERRIDE {}
virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE {}
virtual void OnBlur() OVERRIDE {}
- virtual bool OnKeyEvent(aura::KeyEvent* event) OVERRIDE {
+ virtual bool OnKeyEvent(ui::KeyEvent* event) OVERRIDE {
return false;
}
virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE {
@@ -56,13 +56,14 @@
const gfx::Point& location) OVERRIDE {
return true;
}
- virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE {
+ virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE {
return true;
}
- virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE {
+ virtual ui::TouchStatus OnTouchEvent(ui::TouchEventImpl* event) OVERRIDE {
return ui::TOUCH_STATUS_END;
}
- virtual ui::GestureStatus OnGestureEvent(aura::GestureEvent* event) OVERRIDE {
+ virtual ui::GestureStatus OnGestureEvent(
+ ui::GestureEventImpl* event) OVERRIDE {
return ui::GESTURE_STATUS_UNKNOWN;
}
virtual bool CanFocus() OVERRIDE { return true; }
« no previous file with comments | « ui/aura/client/tooltip_client.h ('k') | ui/aura/desktop/desktop_activation_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698