| 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 <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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |