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

Unified Diff: ash/accelerators/accelerator_controller_unittest.cc

Issue 1059903002: Allow Alt-Tab to move the focus to docked windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/switchable_windows.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller_unittest.cc
diff --git a/ash/accelerators/accelerator_controller_unittest.cc b/ash/accelerators/accelerator_controller_unittest.cc
index de0f057ba96363599111cc64d945a1a8ab5e6bdd..1d731b3c4f3fc92831b0c20174e0ff120fcb8d2a 100644
--- a/ash/accelerators/accelerator_controller_unittest.cc
+++ b/ash/accelerators/accelerator_controller_unittest.cc
@@ -653,9 +653,10 @@ TEST_F(AcceleratorControllerTest, CenterWindowAccelerator) {
// Add the window to docked container and try to center it.
window->SetBounds(gfx::Rect(0, 0, 20, 20));
- aura::Window* docked_container = Shell::GetContainer(
- window->GetRootWindow(), kShellWindowId_DockedContainer);
- docked_container->AddChild(window.get());
+ const wm::WMEvent event(wm::WM_EVENT_DOCK);
+ wm::GetWindowState(window.get())->OnWMEvent(&event);
+ EXPECT_EQ(kShellWindowId_DockedContainer, window->parent()->id());
+
gfx::Rect docked_bounds = window->GetBoundsInScreen();
GetController()->PerformActionIfEnabled(WINDOW_POSITION_CENTER);
// It should not get centered and should remain docked.
« no previous file with comments | « no previous file | ash/switchable_windows.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698