| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/aura/window_delegate.h" | 5 #include "ui/aura/window_delegate.h" |
| 6 | 6 |
| 7 namespace aura { | 7 namespace aura { |
| 8 | 8 |
| 9 ui::EventResult WindowDelegate::OnKeyEvent(ui::EventTarget* target, | 9 ui::EventResult WindowDelegate::OnKeyEvent(ui::EventTarget* target, |
| 10 ui::KeyEvent* event) { | 10 ui::KeyEvent* event) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 return ui::ER_UNHANDLED; | 21 return ui::ER_UNHANDLED; |
| 22 } | 22 } |
| 23 | 23 |
| 24 ui::TouchStatus WindowDelegate::OnTouchEvent(ui::EventTarget* target, | 24 ui::TouchStatus WindowDelegate::OnTouchEvent(ui::EventTarget* target, |
| 25 ui::TouchEvent* event) { | 25 ui::TouchEvent* event) { |
| 26 return ui::TOUCH_STATUS_UNKNOWN; | 26 return ui::TOUCH_STATUS_UNKNOWN; |
| 27 } | 27 } |
| 28 | 28 |
| 29 ui::EventResult WindowDelegate::OnGestureEvent(ui::EventTarget* target, | 29 ui::EventResult WindowDelegate::OnGestureEvent(ui::EventTarget* target, |
| 30 ui::GestureEvent* event) { | 30 ui::GestureEvent* event) { |
| 31 return OnGestureEvent(event) == ui::GESTURE_STATUS_CONSUMED ? | 31 return OnGestureEvent(event); |
| 32 ui::ER_CONSUMED : ui::ER_UNHANDLED; | |
| 33 } | 32 } |
| 34 | 33 |
| 35 } // namespace aura | 34 } // namespace aura |
| OLD | NEW |