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

Unified Diff: ash/wm/panel_window_event_filter.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/panel_window_event_filter.h ('k') | ash/wm/partial_screenshot_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/panel_window_event_filter.cc
===================================================================
--- ash/wm/panel_window_event_filter.cc (revision 150582)
+++ ash/wm/panel_window_event_filter.cc (working copy)
@@ -7,11 +7,11 @@
#include "ash/wm/window_util.h"
#include "base/message_loop.h"
#include "ui/aura/client/aura_constants.h"
-#include "ui/aura/event.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
#include "ui/aura/window_delegate.h"
#include "ui/base/cursor/cursor.h"
+#include "ui/base/event.h"
#include "ui/base/hit_test.h"
#include "ui/base/ui_base_types.h"
#include "ui/compositor/scoped_layer_animation_settings.h"
@@ -34,12 +34,12 @@
}
bool PanelWindowEventFilter::PreHandleKeyEvent(aura::Window* target,
- aura::KeyEvent* event) {
+ ui::KeyEvent* event) {
return false;
}
bool PanelWindowEventFilter::PreHandleMouseEvent(aura::Window* target,
- aura::MouseEvent* event) {
+ ui::MouseEvent* event) {
switch (event->type()) {
case ui::ET_MOUSE_PRESSED: {
int hitResult = target->delegate()->
@@ -97,21 +97,21 @@
ui::TouchStatus PanelWindowEventFilter::PreHandleTouchEvent(
aura::Window* target,
- aura::TouchEvent* event) {
+ ui::TouchEventImpl* event) {
return ui::TOUCH_STATUS_UNKNOWN;
}
ui::GestureStatus PanelWindowEventFilter::PreHandleGestureEvent(
- aura::Window* target, aura::GestureEvent* event) {
+ aura::Window* target, ui::GestureEventImpl* event) {
return ui::GESTURE_STATUS_UNKNOWN;
}
bool PanelWindowEventFilter::HandleDrag(aura::Window* target,
- aura::LocatedEvent* event) {
+ ui::LocatedEvent* event) {
gfx::Rect target_bounds = dragged_panel_->bounds();
gfx::Point event_location_in_parent(event->location());
- aura::Window::ConvertPointToWindow(target,
+ aura::Window::ConvertPointToTarget(target,
target->parent(),
&event_location_in_parent);
target_bounds.set_x(
« no previous file with comments | « ash/wm/panel_window_event_filter.h ('k') | ash/wm/partial_screenshot_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698