| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/ui/ws/drag_controller.h" | 5 #include "services/ui/ws/drag_controller.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "services/ui/public/interfaces/cursor.mojom.h" | 13 #include "services/ui/public/interfaces/cursor/cursor.mojom.h" |
| 14 #include "services/ui/ws/drag_source.h" | 14 #include "services/ui/ws/drag_source.h" |
| 15 #include "services/ui/ws/drag_target_connection.h" | 15 #include "services/ui/ws/drag_target_connection.h" |
| 16 #include "services/ui/ws/ids.h" | 16 #include "services/ui/ws/ids.h" |
| 17 #include "services/ui/ws/server_window.h" | 17 #include "services/ui/ws/server_window.h" |
| 18 #include "services/ui/ws/test_server_window_delegate.h" | 18 #include "services/ui/ws/test_server_window_delegate.h" |
| 19 #include "services/ui/ws/test_utils.h" | 19 #include "services/ui/ws/test_utils.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include "ui/events/base_event_utils.h" | 21 #include "ui/events/base_event_utils.h" |
| 22 | 22 |
| 23 namespace ui { | 23 namespace ui { |
| (...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 | 680 |
| 681 // Window 2 responding negatively to its queued messages shouldn't change the | 681 // Window 2 responding negatively to its queued messages shouldn't change the |
| 682 // cursor. | 682 // cursor. |
| 683 window2->Respond(false); | 683 window2->Respond(false); |
| 684 | 684 |
| 685 EXPECT_EQ(ui::mojom::CursorType::COPY, cursor()); | 685 EXPECT_EQ(ui::mojom::CursorType::COPY, cursor()); |
| 686 } | 686 } |
| 687 | 687 |
| 688 } // namespace ws | 688 } // namespace ws |
| 689 } // namespace ui | 689 } // namespace ui |
| OLD | NEW |