OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "ash/drag_drop/drag_drop_controller.h" | 5 #include "ash/drag_drop/drag_drop_controller.h" |
6 #include "ash/root_window_controller.h" | 6 #include "ash/root_window_controller.h" |
7 #include "ash/screen_util.h" | 7 #include "ash/screen_util.h" |
8 #include "ash/shelf/shelf.h" | 8 #include "ash/shelf/shelf.h" |
9 #include "ash/shelf/shelf_widget.h" | 9 #include "ash/shelf/shelf_widget.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 ToggleOverview(); | 262 ToggleOverview(); |
263 EXPECT_EQ(NULL, GetFocusedWindow()); | 263 EXPECT_EQ(NULL, GetFocusedWindow()); |
264 EXPECT_FALSE(WindowsOverlapping(window1.get(), window2.get())); | 264 EXPECT_FALSE(WindowsOverlapping(window1.get(), window2.get())); |
265 EXPECT_FALSE(WindowsOverlapping(window1.get(), panel1.get())); | 265 EXPECT_FALSE(WindowsOverlapping(window1.get(), panel1.get())); |
266 // Panels 1 and 2 should still be overlapping being in a single selector | 266 // Panels 1 and 2 should still be overlapping being in a single selector |
267 // item. | 267 // item. |
268 EXPECT_TRUE(WindowsOverlapping(panel1.get(), panel2.get())); | 268 EXPECT_TRUE(WindowsOverlapping(panel1.get(), panel2.get())); |
269 | 269 |
270 // The cursor should be visible and locked as a pointer | 270 // The cursor should be visible and locked as a pointer |
271 EXPECT_EQ(ui::kCursorPointer, | 271 EXPECT_EQ(ui::kCursorPointer, |
272 root_window->GetDispatcher()->host()->last_cursor().native_type()); | 272 root_window->GetHost()->last_cursor().native_type()); |
273 EXPECT_TRUE(aura::client::GetCursorClient(root_window)->IsCursorLocked()); | 273 EXPECT_TRUE(aura::client::GetCursorClient(root_window)->IsCursorLocked()); |
274 EXPECT_TRUE(aura::client::GetCursorClient(root_window)->IsCursorVisible()); | 274 EXPECT_TRUE(aura::client::GetCursorClient(root_window)->IsCursorVisible()); |
275 | 275 |
276 // Clicking window 1 should activate it. | 276 // Clicking window 1 should activate it. |
277 ClickWindow(window1.get()); | 277 ClickWindow(window1.get()); |
278 EXPECT_TRUE(wm::IsActiveWindow(window1.get())); | 278 EXPECT_TRUE(wm::IsActiveWindow(window1.get())); |
279 EXPECT_FALSE(wm::IsActiveWindow(window2.get())); | 279 EXPECT_FALSE(wm::IsActiveWindow(window2.get())); |
280 EXPECT_EQ(window1.get(), GetFocusedWindow()); | 280 EXPECT_EQ(window1.get(), GetFocusedWindow()); |
281 | 281 |
282 // Cursor should have been unlocked. | 282 // Cursor should have been unlocked. |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 ui::MouseEvent event(ui::ET_MOUSE_MOVED, points[p], points[p], | 1081 ui::MouseEvent event(ui::ET_MOUSE_MOVED, points[p], points[p], |
1082 ui::EF_NONE, ui::EF_NONE); | 1082 ui::EF_NONE, ui::EF_NONE); |
1083 EXPECT_EQ(windows[w], | 1083 EXPECT_EQ(windows[w], |
1084 targeter->FindTargetForEvent(root_target, &event)); | 1084 targeter->FindTargetForEvent(root_target, &event)); |
1085 } | 1085 } |
1086 } | 1086 } |
1087 } | 1087 } |
1088 | 1088 |
1089 } // namespace internal | 1089 } // namespace internal |
1090 } // namespace ash | 1090 } // namespace ash |
OLD | NEW |