| 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/root_window.h" | 5 #include "ui/aura/root_window.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 rend = filters.rend(); | 582 rend = filters.rend(); |
| 583 it != rend; ++it) { | 583 it != rend; ++it) { |
| 584 ui::TouchStatus status = (*it)->PreHandleTouchEvent(target, event); | 584 ui::TouchStatus status = (*it)->PreHandleTouchEvent(target, event); |
| 585 if (status != ui::TOUCH_STATUS_UNKNOWN) | 585 if (status != ui::TOUCH_STATUS_UNKNOWN) |
| 586 return status; | 586 return status; |
| 587 } | 587 } |
| 588 | 588 |
| 589 return target->delegate()->OnTouchEvent(event); | 589 return target->delegate()->OnTouchEvent(event); |
| 590 } | 590 } |
| 591 | 591 |
| 592 ui::GestureStatus RootWindow::ProcessGestureEvent(Window* target, | 592 ui::GestureStatus RootWindow::ProcessGestureEvent( |
| 593 GestureEvent* event) { | 593 Window* target, |
| 594 GestureEvent* event) { |
| 594 if (!target->IsVisible()) | 595 if (!target->IsVisible()) |
| 595 return ui::GESTURE_STATUS_UNKNOWN; | 596 return ui::GESTURE_STATUS_UNKNOWN; |
| 596 | 597 |
| 597 EventFilters filters; | 598 EventFilters filters; |
| 598 GetEventFiltersToNotify(target->parent(), &filters); | 599 GetEventFiltersToNotify(target->parent(), &filters); |
| 599 ui::GestureStatus status = ui::GESTURE_STATUS_UNKNOWN; | 600 ui::GestureStatus status = ui::GESTURE_STATUS_UNKNOWN; |
| 600 for (EventFilters::const_reverse_iterator it = filters.rbegin(), | 601 for (EventFilters::const_reverse_iterator it = filters.rbegin(), |
| 601 rend = filters.rend(); | 602 rend = filters.rend(); |
| 602 it != rend; ++it) { | 603 it != rend; ++it) { |
| 603 status = (*it)->PreHandleGestureEvent(target, event); | 604 status = (*it)->PreHandleGestureEvent(target, event); |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 // is currently broken. See/ crbug.com/107931. | 834 // is currently broken. See/ crbug.com/107931. |
| 834 MouseEvent event(ui::ET_MOUSE_MOVED, | 835 MouseEvent event(ui::ET_MOUSE_MOVED, |
| 835 orig_mouse_location, | 836 orig_mouse_location, |
| 836 orig_mouse_location, | 837 orig_mouse_location, |
| 837 ui::EF_IS_SYNTHESIZED); | 838 ui::EF_IS_SYNTHESIZED); |
| 838 DispatchMouseEvent(&event); | 839 DispatchMouseEvent(&event); |
| 839 #endif | 840 #endif |
| 840 } | 841 } |
| 841 | 842 |
| 842 } // namespace aura | 843 } // namespace aura |
| OLD | NEW |