Chromium Code Reviews| 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 #if 0 |
|
Ben Goodger (Google)
2012/09/06 21:39:15
que?
sadrul
2012/09/06 21:44:59
Meant to remove the block. Done :)
| |
| 10 ui::KeyEvent* event) { | 10 ui::EventResult WindowDelegate::OnKeyEvent(ui::KeyEvent* event) { |
| 11 return OnKeyEvent(event) ? ui::ER_HANDLED : ui::ER_UNHANDLED; | 11 return OnKeyEvent(event) ? ui::ER_HANDLED : ui::ER_UNHANDLED; |
| 12 } | 12 } |
| 13 | 13 |
| 14 ui::EventResult WindowDelegate::OnMouseEvent(ui::EventTarget* target, | 14 ui::EventResult WindowDelegate::OnMouseEvent(ui::MouseEvent* event) { |
| 15 ui::MouseEvent* event) { | |
| 16 return OnMouseEvent(event) ? ui::ER_HANDLED : ui::ER_UNHANDLED; | 15 return OnMouseEvent(event) ? ui::ER_HANDLED : ui::ER_UNHANDLED; |
| 17 } | 16 } |
| 18 | 17 |
| 19 ui::EventResult WindowDelegate::OnScrollEvent(ui::EventTarget* target, | 18 ui::TouchStatus WindowDelegate::OnTouchEvent(ui::TouchEvent* event) { |
| 20 ui::ScrollEvent* event) { | 19 return ui::TOUCH_STATUS_UNKNOWN; |
| 20 } | |
| 21 | |
| 22 ui::EventResult WindowDelegate::OnGestureEvent(ui::GestureEvent* event) { | |
| 23 return OnGestureEvent(event); | |
| 24 } | |
| 25 #endif | |
| 26 | |
| 27 ui::EventResult WindowDelegate::OnScrollEvent(ui::ScrollEvent* event) { | |
| 21 return ui::ER_UNHANDLED; | 28 return ui::ER_UNHANDLED; |
| 22 } | 29 } |
| 23 | 30 |
| 24 ui::TouchStatus WindowDelegate::OnTouchEvent(ui::EventTarget* target, | |
| 25 ui::TouchEvent* event) { | |
| 26 return ui::TOUCH_STATUS_UNKNOWN; | |
| 27 } | |
| 28 | |
| 29 ui::EventResult WindowDelegate::OnGestureEvent(ui::EventTarget* target, | |
| 30 ui::GestureEvent* event) { | |
| 31 return OnGestureEvent(event); | |
| 32 } | |
| 33 | |
| 34 } // namespace aura | 31 } // namespace aura |
| OLD | NEW |