Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc

Issue 2900423002: [mus+ash] Removes WmWindow from ash/wm/root_window_finder.h (Closed)
Patch Set: Remove WmWindow from ash/wm/root_window_finder.h (tab drag test) Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.h" 5 #include "chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #endif 62 #endif
63 63
64 #if defined(USE_ASH) 64 #if defined(USE_ASH)
65 #include "ash/ash_switches.h" 65 #include "ash/ash_switches.h"
66 #include "ash/shell.h" 66 #include "ash/shell.h"
67 #include "ash/test/cursor_manager_test_api.h" 67 #include "ash/test/cursor_manager_test_api.h"
68 #include "ash/test/immersive_fullscreen_controller_test_api.h" 68 #include "ash/test/immersive_fullscreen_controller_test_api.h"
69 #include "ash/wm/root_window_finder.h" 69 #include "ash/wm/root_window_finder.h"
70 #include "ash/wm/window_state.h" 70 #include "ash/wm/window_state.h"
71 #include "ash/wm/window_util.h" 71 #include "ash/wm/window_util.h"
72 #include "ash/wm_window.h"
73 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" 72 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h"
74 #include "chrome/browser/ui/views/frame/immersive_mode_controller_ash.h" 73 #include "chrome/browser/ui/views/frame/immersive_mode_controller_ash.h"
75 #include "ui/aura/client/screen_position_client.h" 74 #include "ui/aura/client/screen_position_client.h"
76 #include "ui/aura/test/event_generator_delegate_aura.h" 75 #include "ui/aura/test/event_generator_delegate_aura.h"
77 #include "ui/aura/window_event_dispatcher.h" 76 #include "ui/aura/window_event_dispatcher.h"
78 #include "ui/display/manager/display_manager.h" 77 #include "ui/display/manager/display_manager.h"
79 #include "ui/events/test/event_generator.h" 78 #include "ui/events/test/event_generator.h"
80 #endif 79 #endif
81 80
82 using content::WebContents; 81 using content::WebContents;
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 InputSource input_source() const { 395 InputSource input_source() const {
397 return strstr(GetParam(), "mouse") ? 396 return strstr(GetParam(), "mouse") ?
398 INPUT_SOURCE_MOUSE : INPUT_SOURCE_TOUCH; 397 INPUT_SOURCE_MOUSE : INPUT_SOURCE_TOUCH;
399 } 398 }
400 399
401 // Set root window from a point in screen coordinates 400 // Set root window from a point in screen coordinates
402 void SetEventGeneratorRootWindow(const gfx::Point& point) { 401 void SetEventGeneratorRootWindow(const gfx::Point& point) {
403 if (input_source() == INPUT_SOURCE_MOUSE) 402 if (input_source() == INPUT_SOURCE_MOUSE)
404 return; 403 return;
405 #if defined(OS_CHROMEOS) 404 #if defined(OS_CHROMEOS)
406 event_generator_.reset( 405 event_generator_.reset(new ui::test::EventGenerator(
407 new ui::test::EventGenerator(new ScreenEventGeneratorDelegate( 406 new ScreenEventGeneratorDelegate(ash::wm::GetRootWindowAt(point))));
408 ash::WmWindow::GetAuraWindow(ash::wm::GetRootWindowAt(point)))));
409 #endif 407 #endif
410 } 408 }
411 409
412 // The following methods update one of the mouse or touch input depending upon 410 // The following methods update one of the mouse or touch input depending upon
413 // the InputSource. 411 // the InputSource.
414 bool PressInput(const gfx::Point& location) { 412 bool PressInput(const gfx::Point& location) {
415 if (input_source() == INPUT_SOURCE_MOUSE) { 413 if (input_source() == INPUT_SOURCE_MOUSE) {
416 return ui_test_utils::SendMouseMoveSync(location) && 414 return ui_test_utils::SendMouseMoveSync(location) &&
417 ui_test_utils::SendMouseEventsSync( 415 ui_test_utils::SendMouseEventsSync(
418 ui_controls::LEFT, ui_controls::DOWN); 416 ui_controls::LEFT, ui_controls::DOWN);
(...skipping 2045 matching lines...) Expand 10 before | Expand all | Expand 10 after
2464 DetachToBrowserTabDragControllerTest, 2462 DetachToBrowserTabDragControllerTest,
2465 ::testing::Values("mouse", "touch")); 2463 ::testing::Values("mouse", "touch"));
2466 INSTANTIATE_TEST_CASE_P(TabDragging, 2464 INSTANTIATE_TEST_CASE_P(TabDragging,
2467 DetachToBrowserTabDragControllerTestTouch, 2465 DetachToBrowserTabDragControllerTestTouch,
2468 ::testing::Values("touch")); 2466 ::testing::Values("touch"));
2469 #else 2467 #else
2470 INSTANTIATE_TEST_CASE_P(TabDragging, 2468 INSTANTIATE_TEST_CASE_P(TabDragging,
2471 DetachToBrowserTabDragControllerTest, 2469 DetachToBrowserTabDragControllerTest,
2472 ::testing::Values("mouse")); 2470 ::testing::Values("mouse"));
2473 #endif 2471 #endif
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_window_resizer.cc ('k') | chrome/browser/ui/views/tabs/window_finder_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698