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

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

Issue 2118643002: Move MaximizeModeController into ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: doh Created 4 years, 5 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 <algorithm> 5 #include <algorithm>
6 #include <vector> 6 #include <vector>
7 7
8 #include "ash/aura/wm_window_aura.h" 8 #include "ash/aura/wm_window_aura.h"
9 #include "ash/common/accessibility_delegate.h" 9 #include "ash/common/accessibility_delegate.h"
10 #include "ash/common/accessibility_types.h" 10 #include "ash/common/accessibility_types.h"
11 #include "ash/common/ash_switches.h" 11 #include "ash/common/ash_switches.h"
12 #include "ash/common/material_design/material_design_controller.h" 12 #include "ash/common/material_design/material_design_controller.h"
13 #include "ash/common/shell_window_ids.h" 13 #include "ash/common/shell_window_ids.h"
14 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
14 #include "ash/common/wm/mru_window_tracker.h" 15 #include "ash/common/wm/mru_window_tracker.h"
15 #include "ash/common/wm/overview/scoped_transform_overview_window.h" 16 #include "ash/common/wm/overview/scoped_transform_overview_window.h"
16 #include "ash/common/wm/overview/window_grid.h" 17 #include "ash/common/wm/overview/window_grid.h"
17 #include "ash/common/wm/overview/window_selector.h" 18 #include "ash/common/wm/overview/window_selector.h"
18 #include "ash/common/wm/overview/window_selector_controller.h" 19 #include "ash/common/wm/overview/window_selector_controller.h"
19 #include "ash/common/wm/overview/window_selector_item.h" 20 #include "ash/common/wm/overview/window_selector_item.h"
20 #include "ash/common/wm/panels/panel_layout_manager.h" 21 #include "ash/common/wm/panels/panel_layout_manager.h"
21 #include "ash/common/wm/window_state.h" 22 #include "ash/common/wm/window_state.h"
22 #include "ash/common/wm/wm_event.h" 23 #include "ash/common/wm/wm_event.h"
23 #include "ash/common/wm_shell.h" 24 #include "ash/common/wm_shell.h"
25 #include "ash/display/display_manager.h"
24 #include "ash/drag_drop/drag_drop_controller.h" 26 #include "ash/drag_drop/drag_drop_controller.h"
25 #include "ash/root_window_controller.h" 27 #include "ash/root_window_controller.h"
26 #include "ash/screen_util.h" 28 #include "ash/screen_util.h"
27 #include "ash/shelf/shelf.h" 29 #include "ash/shelf/shelf.h"
28 #include "ash/shelf/shelf_widget.h" 30 #include "ash/shelf/shelf_widget.h"
29 #include "ash/shell.h" 31 #include "ash/shell.h"
30 #include "ash/test/ash_test_base.h" 32 #include "ash/test/ash_test_base.h"
31 #include "ash/test/display_manager_test_api.h" 33 #include "ash/test/display_manager_test_api.h"
32 #include "ash/test/material_design_controller_test_api.h" 34 #include "ash/test/material_design_controller_test_api.h"
33 #include "ash/test/shelf_test_api.h" 35 #include "ash/test/shelf_test_api.h"
34 #include "ash/test/shelf_view_test_api.h" 36 #include "ash/test/shelf_view_test_api.h"
35 #include "ash/test/shell_test_api.h" 37 #include "ash/test/shell_test_api.h"
36 #include "ash/test/test_shelf_delegate.h" 38 #include "ash/test/test_shelf_delegate.h"
37 #include "ash/wm/maximize_mode/maximize_mode_controller.h"
38 #include "ash/wm/window_state_aura.h" 39 #include "ash/wm/window_state_aura.h"
39 #include "ash/wm/window_util.h" 40 #include "ash/wm/window_util.h"
40 #include "base/command_line.h" 41 #include "base/command_line.h"
41 #include "base/compiler_specific.h" 42 #include "base/compiler_specific.h"
42 #include "base/memory/scoped_vector.h" 43 #include "base/memory/scoped_vector.h"
43 #include "base/run_loop.h" 44 #include "base/run_loop.h"
44 #include "base/strings/string_piece.h" 45 #include "base/strings/string_piece.h"
45 #include "base/strings/utf_string_conversions.h" 46 #include "base/strings/utf_string_conversions.h"
46 #include "base/test/user_action_tester.h" 47 #include "base/test/user_action_tester.h"
47 #include "base/threading/thread_task_runner_handle.h" 48 #include "base/threading/thread_task_runner_handle.h"
(...skipping 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1822 bounds.y()); 1823 bounds.y());
1823 EXPECT_LE(transformed_rect.bottom(), bounds.bottom()); 1824 EXPECT_LE(transformed_rect.bottom(), bounds.bottom());
1824 EXPECT_NEAR(transformed_rect.x() - bounds.x(), 1825 EXPECT_NEAR(transformed_rect.x() - bounds.x(),
1825 bounds.right() - transformed_rect.right(), 1); 1826 bounds.right() - transformed_rect.right(), 1);
1826 EXPECT_NEAR( 1827 EXPECT_NEAR(
1827 transformed_rect.y() + (int)(scale * inset) - header_height - bounds.y(), 1828 transformed_rect.y() + (int)(scale * inset) - header_height - bounds.y(),
1828 bounds.bottom() - transformed_rect.bottom(), 1); 1829 bounds.bottom() - transformed_rect.bottom(), 1);
1829 } 1830 }
1830 1831
1831 } // namespace ash 1832 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.h ('k') | ash/wm/power_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698