Chromium Code Reviews| Index: components/exo/touch.cc |
| diff --git a/components/exo/touch.cc b/components/exo/touch.cc |
| index 255072270964c5ae08db902ac498371300d6f4bb..7255aa6ea1a7bd585d007141a78294d928f1dfa1 100644 |
| --- a/components/exo/touch.cc |
| +++ b/components/exo/touch.cc |
| @@ -46,6 +46,12 @@ Touch::~Touch() { |
| // ui::EventHandler overrides: |
| void Touch::OnTouchEvent(ui::TouchEvent* event) { |
| + if (!ash::Shell::GetInstance()->CanWindowReceiveEvents( |
|
reveman
2016/07/13 18:55:09
Same short comment here
hariank
2016/07/13 23:27:22
Done.
|
| + (aura::Window*)event->target())) { |
|
reveman
2016/07/13 18:55:09
use static_cast instead
hariank
2016/07/13 23:27:22
Done.
|
| + event->StopPropagation(); |
|
reveman
2016/07/13 18:55:09
Same question as for exo::Pointer. Should we be ca
|
| + return; |
| + } |
| + |
| switch (event->type()) { |
| case ui::ET_TOUCH_PRESSED: { |
| // Early out if event doesn't contain a valid target for touch device. |