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

Side by Side Diff: ui/aura/root_window.cc

Issue 9773024: This patch implements Chromium's Aura gesture recognizer in terms of utouch-grail and utouch-frame … (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 8 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 unified diff | Download patch
OLDNEW
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
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(
rjkroege 2012/04/02 17:05:15 this change seems unnecessary?
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698