OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/views/corewm/capture_controller.h" | 5 #include "ui/wm/core/capture_controller.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ui/aura/env.h" | 8 #include "ui/aura/env.h" |
9 #include "ui/aura/test/aura_test_base.h" | 9 #include "ui/aura/test/aura_test_base.h" |
10 #include "ui/aura/test/event_generator.h" | 10 #include "ui/aura/test/event_generator.h" |
11 #include "ui/aura/test/test_screen.h" | 11 #include "ui/aura/test/test_screen.h" |
12 #include "ui/aura/test/test_window_delegate.h" | 12 #include "ui/aura/test/test_window_delegate.h" |
13 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
14 #include "ui/aura/window_event_dispatcher.h" | 14 #include "ui/aura/window_event_dispatcher.h" |
15 #include "ui/events/event.h" | 15 #include "ui/events/event.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 EXPECT_EQ(static_cast<aura::Window*>(NULL), GetCaptureWindow()); | 159 EXPECT_EQ(static_cast<aura::Window*>(NULL), GetCaptureWindow()); |
160 EXPECT_EQ(static_cast<aura::Window*>(NULL), GetSecondCaptureWindow()); | 160 EXPECT_EQ(static_cast<aura::Window*>(NULL), GetSecondCaptureWindow()); |
161 ui::TouchEvent touch_event( | 161 ui::TouchEvent touch_event( |
162 ui::ET_TOUCH_PRESSED, gfx::Point(), 0, 0, ui::EventTimeForNow(), 1.0f, | 162 ui::ET_TOUCH_PRESSED, gfx::Point(), 0, 0, ui::EventTimeForNow(), 1.0f, |
163 1.0f, 1.0f, 1.0f); | 163 1.0f, 1.0f, 1.0f); |
164 EXPECT_EQ(static_cast<ui::GestureConsumer*>(w2.get()), | 164 EXPECT_EQ(static_cast<ui::GestureConsumer*>(w2.get()), |
165 ui::GestureRecognizer::Get()->GetTouchLockedTarget(touch_event)); | 165 ui::GestureRecognizer::Get()->GetTouchLockedTarget(touch_event)); |
166 } | 166 } |
167 | 167 |
168 } // namespace views | 168 } // namespace views |
OLD | NEW |