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

Side by Side Diff: ash/wm/overview/window_selector_unittest.cc

Issue 251103005: Added arrow key navigation to Overview Mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with latest changes, test stub (don't look into that yet!) Created 6 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 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 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 1168
1169 // Rotate the display, windows should be repositioned to be within the screen 1169 // Rotate the display, windows should be repositioned to be within the screen
1170 // bounds. 1170 // bounds.
1171 UpdateDisplay("600x200/r"); 1171 UpdateDisplay("600x200/r");
1172 EXPECT_EQ("0,0 200x600", root_window->bounds().ToString()); 1172 EXPECT_EQ("0,0 200x600", root_window->bounds().ToString());
1173 for (ScopedVector<aura::Window>::iterator iter = windows.begin(); 1173 for (ScopedVector<aura::Window>::iterator iter = windows.begin();
1174 iter != windows.end(); ++iter) { 1174 iter != windows.end(); ++iter) {
1175 EXPECT_TRUE(root_window->bounds().Contains( 1175 EXPECT_TRUE(root_window->bounds().Contains(
1176 ToEnclosingRect(GetTransformedTargetBounds(*iter)))); 1176 ToEnclosingRect(GetTransformedTargetBounds(*iter))));
1177 } 1177 }
1178
1179 // Tests selecting a window in OM with the arrow keys.
1180 TEST_F(WindowSelectorTest, ArrowKeyNavigation) {
1181 gfx::Rect bounds1(0, 0, 100, 100);
1182 gfx::Rect bounds2(450, 450, 550, 550);
1183
1184 scoped_ptr<aura::Window> window1(CreateWindow(bounds1));
1185 scoped_ptr<aura::Window> window2(CreateWindow(bounds1));
1186 wm::ActivateWindow(window1.get());
1187
1188
1189
1190 ToggleOverview();
1191
1178 } 1192 }
1179 1193
1180 } // namespace ash 1194 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698