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

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

Issue 10956045: events: Cleanup the EventDispatcher API. (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
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/base/events/event_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 void RootWindow::OnWindowAddedToRootWindow(Window* attached) { 802 void RootWindow::OnWindowAddedToRootWindow(Window* attached) {
803 if (attached->IsVisible() && 803 if (attached->IsVisible() &&
804 attached->ContainsPointInRoot(GetLastMouseLocationInRoot())) 804 attached->ContainsPointInRoot(GetLastMouseLocationInRoot()))
805 PostMouseMoveEventAfterWindowChange(); 805 PostMouseMoveEventAfterWindowChange();
806 } 806 }
807 807
808 bool RootWindow::CanDispatchToTarget(ui::EventTarget* target) { 808 bool RootWindow::CanDispatchToTarget(ui::EventTarget* target) {
809 return event_dispatch_target_ == target; 809 return event_dispatch_target_ == target;
810 } 810 }
811 811
812 void RootWindow::ProcessPreTargetList(ui::EventHandlerList* list) {
813 }
814
815 void RootWindow::ProcessPostTargetList(ui::EventHandlerList* list) {
816 }
817
818 bool RootWindow::DispatchLongPressGestureEvent(ui::GestureEvent* event) { 812 bool RootWindow::DispatchLongPressGestureEvent(ui::GestureEvent* event) {
819 return DispatchGestureEvent(event); 813 return DispatchGestureEvent(event);
820 } 814 }
821 815
822 bool RootWindow::DispatchCancelTouchEvent(ui::TouchEvent* event) { 816 bool RootWindow::DispatchCancelTouchEvent(ui::TouchEvent* event) {
823 return OnHostTouchEvent(event); 817 return OnHostTouchEvent(event);
824 } 818 }
825 819
826 void RootWindow::OnLayerAnimationEnded( 820 void RootWindow::OnLayerAnimationEnded(
827 ui::LayerAnimationSequence* animation) { 821 ui::LayerAnimationSequence* animation) {
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 void RootWindow::UnlockCompositor() { 1102 void RootWindow::UnlockCompositor() {
1109 DCHECK(compositor_lock_); 1103 DCHECK(compositor_lock_);
1110 compositor_lock_ = NULL; 1104 compositor_lock_ = NULL;
1111 if (draw_on_compositor_unlock_) { 1105 if (draw_on_compositor_unlock_) {
1112 draw_on_compositor_unlock_ = false; 1106 draw_on_compositor_unlock_ = false;
1113 ScheduleDraw(); 1107 ScheduleDraw();
1114 } 1108 }
1115 } 1109 }
1116 1110
1117 } // namespace aura 1111 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/base/events/event_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698