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

Unified Diff: ash/wm/window_modality_controller.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 | « ash/wm/window_modality_controller.h ('k') | ash/wm/window_modality_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_modality_controller.cc
===================================================================
--- ash/wm/window_modality_controller.cc (revision 150582)
+++ ash/wm/window_modality_controller.cc (working copy)
@@ -10,9 +10,9 @@
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/capture_client.h"
#include "ui/aura/env.h"
-#include "ui/aura/event.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
+#include "ui/base/event.h"
#include "ui/base/ui_base_types.h"
namespace ash {
@@ -75,25 +75,25 @@
// WindowModalityController, aura::EventFilter implementation:
bool WindowModalityController::PreHandleKeyEvent(aura::Window* target,
- aura::KeyEvent* event) {
+ ui::KeyEvent* event) {
return !!wm::GetWindowModalTransient(target);
}
bool WindowModalityController::PreHandleMouseEvent(aura::Window* target,
- aura::MouseEvent* event) {
+ ui::MouseEvent* event) {
return ProcessLocatedEvent(target, event);
}
ui::TouchStatus WindowModalityController::PreHandleTouchEvent(
aura::Window* target,
- aura::TouchEvent* event) {
+ ui::TouchEventImpl* event) {
return ProcessLocatedEvent(target, event) ? ui::TOUCH_STATUS_CONTINUE :
ui::TOUCH_STATUS_UNKNOWN;
}
ui::GestureStatus WindowModalityController::PreHandleGestureEvent(
aura::Window* target,
- aura::GestureEvent* event) {
+ ui::GestureEventImpl* event) {
// TODO: make gestures work with modals.
return ui::GESTURE_STATUS_UNKNOWN;
}
@@ -122,7 +122,7 @@
}
bool WindowModalityController::ProcessLocatedEvent(aura::Window* target,
- aura::LocatedEvent* event) {
+ ui::LocatedEvent* event) {
aura::Window* modal_transient_child = wm::GetWindowModalTransient(target);
if (modal_transient_child && (event->type() == ui::ET_MOUSE_PRESSED ||
event->type() == ui::ET_TOUCH_PRESSED)) {
« no previous file with comments | « ash/wm/window_modality_controller.h ('k') | ash/wm/window_modality_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698