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

Side by Side Diff: ash/wm/gestures/overview_gesture_handler_unittest.cc

Issue 2084503007: Moves WindowSelectorController onto WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_overview
Patch Set: fix mash Created 4 years, 6 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/common/wm/overview/window_selector_controller.h" 5 #include "ash/common/wm/overview/window_selector_controller.h"
6 #include "ash/common/wm_shell.h"
6 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
7 #include "ash/shell.h" 8 #include "ash/shell.h"
8 #include "ash/test/ash_test_base.h" 9 #include "ash/test/ash_test_base.h"
9 #include "ui/aura/test/test_window_delegate.h" 10 #include "ui/aura/test/test_window_delegate.h"
10 #include "ui/aura/test/test_windows.h" 11 #include "ui/aura/test/test_windows.h"
11 #include "ui/aura/window.h" 12 #include "ui/aura/window.h"
12 #include "ui/aura/window_event_dispatcher.h" 13 #include "ui/aura/window_event_dispatcher.h"
13 #include "ui/events/test/event_generator.h" 14 #include "ui/events/test/event_generator.h"
14 #include "ui/views/widget/widget.h" 15 #include "ui/views/widget/widget.h"
15 16
16 namespace ash { 17 namespace ash {
17 18
18 class OverviewGestureHandlerTest : public test::AshTestBase { 19 class OverviewGestureHandlerTest : public test::AshTestBase {
19 public: 20 public:
20 OverviewGestureHandlerTest() {} 21 OverviewGestureHandlerTest() {}
21 ~OverviewGestureHandlerTest() override {} 22 ~OverviewGestureHandlerTest() override {}
22 23
23 aura::Window* CreateWindow(const gfx::Rect& bounds) { 24 aura::Window* CreateWindow(const gfx::Rect& bounds) {
24 return CreateTestWindowInShellWithDelegate(&delegate_, -1, bounds); 25 return CreateTestWindowInShellWithDelegate(&delegate_, -1, bounds);
25 } 26 }
26 27
27 bool IsSelecting() { 28 bool IsSelecting() {
28 return ash::Shell::GetInstance()->window_selector_controller()-> 29 return WmShell::Get()->window_selector_controller()->IsSelecting();
29 IsSelecting();
30 } 30 }
31 31
32 private: 32 private:
33 aura::test::TestWindowDelegate delegate_; 33 aura::test::TestWindowDelegate delegate_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(OverviewGestureHandlerTest); 35 DISALLOW_COPY_AND_ASSIGN(OverviewGestureHandlerTest);
36 }; 36 };
37 37
38 // Tests a swipe up with three fingers to enter and a swipe down to exit 38 // Tests a swipe up with three fingers to enter and a swipe down to exit
39 // overview. 39 // overview.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 start, 133 start,
134 timestamp, 134 timestamp,
135 0, 135 0,
136 0, 10, 136 0, 10,
137 0, 10, 137 0, 10,
138 num_fingers); 138 num_fingers);
139 generator.Dispatch(&fling_start); 139 generator.Dispatch(&fling_start);
140 } 140 }
141 141
142 } // namespace ash 142 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/gestures/overview_gesture_handler.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698