| 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/views/corewm/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/root_window.h" | |
| 10 #include "ui/aura/test/event_generator.h" | 9 #include "ui/aura/test/event_generator.h" |
| 11 #include "ui/aura/test/test_window_delegate.h" | 10 #include "ui/aura/test/test_window_delegate.h" |
| 11 #include "ui/aura/window_event_dispatcher.h" |
| 12 #include "ui/events/event.h" | 12 #include "ui/events/event.h" |
| 13 #include "ui/views/test/views_test_base.h" | 13 #include "ui/views/test/views_test_base.h" |
| 14 #include "ui/views/view.h" | 14 #include "ui/views/view.h" |
| 15 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" | 15 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" |
| 16 #include "ui/views/widget/desktop_aura/desktop_screen_position_client.h" | 16 #include "ui/views/widget/desktop_aura/desktop_screen_position_client.h" |
| 17 #include "ui/views/widget/root_view.h" | 17 #include "ui/views/widget/root_view.h" |
| 18 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
| 19 | 19 |
| 20 // NOTE: these tests do native capture, so they have to be in | 20 // NOTE: these tests do native capture, so they have to be in |
| 21 // interactive_ui_tests. | 21 // interactive_ui_tests. |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 root2->DispatchGestureEvent(&g1); | 163 root2->DispatchGestureEvent(&g1); |
| 164 EXPECT_TRUE(v2->received_gesture_event()); | 164 EXPECT_TRUE(v2->received_gesture_event()); |
| 165 EXPECT_FALSE(v1->received_gesture_event()); | 165 EXPECT_FALSE(v1->received_gesture_event()); |
| 166 | 166 |
| 167 widget1->CloseNow(); | 167 widget1->CloseNow(); |
| 168 widget2->CloseNow(); | 168 widget2->CloseNow(); |
| 169 RunPendingMessages(); | 169 RunPendingMessages(); |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace views | 172 } // namespace views |
| OLD | NEW |