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

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

Issue 10908127: events: Move EventTarget into Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 | Annotate | Revision Log
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 <vector> 7 #include <vector>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 EventFilters filters; 648 EventFilters filters;
649 if (target == this) 649 if (target == this)
650 GetEventFiltersToNotify(target, &filters); 650 GetEventFiltersToNotify(target, &filters);
651 else 651 else
652 GetEventFiltersToNotify(target->parent(), &filters); 652 GetEventFiltersToNotify(target->parent(), &filters);
653 653
654 // |target| can be deleted by any of the handlers below. 654 // |target| can be deleted by any of the handlers below.
655 WindowTracker tracker; 655 WindowTracker tracker;
656 tracker.Add(target); 656 tracker.Add(target);
657 657
658 event->set_target(target);
658 for (EventFilters::const_reverse_iterator it = filters.rbegin(), 659 for (EventFilters::const_reverse_iterator it = filters.rbegin(),
659 rend = filters.rend(); 660 rend = filters.rend();
660 it != rend; ++it) { 661 it != rend; ++it) {
661 ui::TouchStatus status = (*it)->PreHandleTouchEvent(target, event); 662 ui::TouchStatus status = (*it)->PreHandleTouchEvent(target, event);
662 if (status != ui::TOUCH_STATUS_UNKNOWN) 663 if (status != ui::TOUCH_STATUS_UNKNOWN)
663 return status; 664 return status;
664 } 665 }
665 666
666 if (tracker.Contains(target) && target->delegate()) { 667 if (tracker.Contains(target) && target->delegate()) {
667 ui::TouchStatus status = target->delegate()->OnTouchEvent(event); 668 ui::TouchStatus status = target->delegate()->OnTouchEvent(event);
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 void RootWindow::UnlockCompositor() { 1065 void RootWindow::UnlockCompositor() {
1065 DCHECK(compositor_lock_); 1066 DCHECK(compositor_lock_);
1066 compositor_lock_ = NULL; 1067 compositor_lock_ = NULL;
1067 if (draw_on_compositor_unlock_) { 1068 if (draw_on_compositor_unlock_) {
1068 draw_on_compositor_unlock_ = false; 1069 draw_on_compositor_unlock_ = false;
1069 ScheduleDraw(); 1070 ScheduleDraw();
1070 } 1071 }
1071 } 1072 }
1072 1073
1073 } // namespace aura 1074 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698