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 "services/ui/public/interfaces/cursor.mojom.h" | 13 #include "services/ui/public/interfaces/cursor.mojom.h" |
13 #include "services/ui/ws/drag_source.h" | 14 #include "services/ui/ws/drag_source.h" |
14 #include "services/ui/ws/drag_target_connection.h" | 15 #include "services/ui/ws/drag_target_connection.h" |
15 #include "services/ui/ws/ids.h" | 16 #include "services/ui/ws/ids.h" |
16 #include "services/ui/ws/server_window.h" | 17 #include "services/ui/ws/server_window.h" |
17 #include "services/ui/ws/test_server_window_delegate.h" | 18 #include "services/ui/ws/test_server_window_delegate.h" |
18 #include "services/ui/ws/test_utils.h" | 19 #include "services/ui/ws/test_utils.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "ui/events/base_event_utils.h" | 21 #include "ui/events/base_event_utils.h" |
21 | 22 |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 | 711 |
711 // Window 2 responding negatively to its queued messages shouldn't change the | 712 // Window 2 responding negatively to its queued messages shouldn't change the |
712 // cursor. | 713 // cursor. |
713 window2->Respond(false); | 714 window2->Respond(false); |
714 | 715 |
715 EXPECT_EQ(ui::mojom::Cursor::COPY, cursor()); | 716 EXPECT_EQ(ui::mojom::Cursor::COPY, cursor()); |
716 } | 717 } |
717 | 718 |
718 } // namespace ws | 719 } // namespace ws |
719 } // namespace ui | 720 } // namespace ui |
OLD | NEW |