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/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 return DispatchGestureEvent(static_cast<GestureEvent*>(event)); | 855 return DispatchGestureEvent(static_cast<GestureEvent*>(event)); |
856 } | 856 } |
857 | 857 |
858 bool RootWindow::DispatchCancelTouchEvent(ui::TouchEvent* event) { | 858 bool RootWindow::DispatchCancelTouchEvent(ui::TouchEvent* event) { |
859 return DispatchTouchEvent(static_cast<TouchEvent*>(event)); | 859 return DispatchTouchEvent(static_cast<TouchEvent*>(event)); |
860 } | 860 } |
861 | 861 |
862 ui::GestureEvent* RootWindow::CreateGestureEvent(ui::EventType type, | 862 ui::GestureEvent* RootWindow::CreateGestureEvent(ui::EventType type, |
863 const gfx::Point& location, | 863 const gfx::Point& location, |
864 int flags, | 864 int flags, |
865 const base::Time time, | 865 base::Time time, |
866 float param_first, | 866 float param_first, |
867 float param_second, | 867 float param_second, |
868 unsigned int touch_id_bitfield) { | 868 unsigned int touch_id_bitfield) { |
869 return new GestureEvent(type, location.x(), location.y(), flags, time, | 869 return new GestureEvent(type, location.x(), location.y(), flags, time, |
870 param_first, param_second, touch_id_bitfield); | 870 param_first, param_second, touch_id_bitfield); |
871 } | 871 } |
872 | 872 |
873 ui::TouchEvent* RootWindow::CreateTouchEvent(ui::EventType type, | 873 ui::TouchEvent* RootWindow::CreateTouchEvent(ui::EventType type, |
874 const gfx::Point& location, | 874 const gfx::Point& location, |
875 int touch_id, | 875 int touch_id, |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 void RootWindow::UnlockCompositor() { | 1017 void RootWindow::UnlockCompositor() { |
1018 DCHECK(compositor_lock_); | 1018 DCHECK(compositor_lock_); |
1019 compositor_lock_ = NULL; | 1019 compositor_lock_ = NULL; |
1020 if (draw_on_compositor_unlock_) { | 1020 if (draw_on_compositor_unlock_) { |
1021 draw_on_compositor_unlock_ = false; | 1021 draw_on_compositor_unlock_ = false; |
1022 ScheduleDraw(); | 1022 ScheduleDraw(); |
1023 } | 1023 } |
1024 } | 1024 } |
1025 | 1025 |
1026 } // namespace aura | 1026 } // namespace aura |
OLD | NEW |