| OLD | NEW |
| 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/accessibility_delegate.h" | 8 #include "ash/accessibility_delegate.h" |
| 9 #include "ash/ash_switches.h" | 9 #include "ash/ash_switches.h" |
| 10 #include "ash/aura/wm_window_aura.h" | 10 #include "ash/aura/wm_window_aura.h" |
| 11 #include "ash/common/shell_window_ids.h" | 11 #include "ash/common/shell_window_ids.h" |
| 12 #include "ash/common/wm/mru_window_tracker.h" |
| 12 #include "ash/common/wm/panels/panel_layout_manager.h" | 13 #include "ash/common/wm/panels/panel_layout_manager.h" |
| 13 #include "ash/common/wm/window_state.h" | 14 #include "ash/common/wm/window_state.h" |
| 14 #include "ash/common/wm/wm_event.h" | 15 #include "ash/common/wm/wm_event.h" |
| 15 #include "ash/drag_drop/drag_drop_controller.h" | 16 #include "ash/drag_drop/drag_drop_controller.h" |
| 16 #include "ash/root_window_controller.h" | 17 #include "ash/root_window_controller.h" |
| 17 #include "ash/screen_util.h" | 18 #include "ash/screen_util.h" |
| 18 #include "ash/shelf/shelf.h" | 19 #include "ash/shelf/shelf.h" |
| 19 #include "ash/shelf/shelf_widget.h" | 20 #include "ash/shelf/shelf_widget.h" |
| 20 #include "ash/shell.h" | 21 #include "ash/shell.h" |
| 21 #include "ash/test/ash_test_base.h" | 22 #include "ash/test/ash_test_base.h" |
| 22 #include "ash/test/display_manager_test_api.h" | 23 #include "ash/test/display_manager_test_api.h" |
| 23 #include "ash/test/shelf_test_api.h" | 24 #include "ash/test/shelf_test_api.h" |
| 24 #include "ash/test/shelf_view_test_api.h" | 25 #include "ash/test/shelf_view_test_api.h" |
| 25 #include "ash/test/shell_test_api.h" | 26 #include "ash/test/shell_test_api.h" |
| 26 #include "ash/test/test_shelf_delegate.h" | 27 #include "ash/test/test_shelf_delegate.h" |
| 27 #include "ash/wm/maximize_mode/maximize_mode_controller.h" | 28 #include "ash/wm/maximize_mode/maximize_mode_controller.h" |
| 28 #include "ash/wm/mru_window_tracker.h" | |
| 29 #include "ash/wm/overview/window_grid.h" | 29 #include "ash/wm/overview/window_grid.h" |
| 30 #include "ash/wm/overview/window_selector.h" | 30 #include "ash/wm/overview/window_selector.h" |
| 31 #include "ash/wm/overview/window_selector_controller.h" | 31 #include "ash/wm/overview/window_selector_controller.h" |
| 32 #include "ash/wm/overview/window_selector_item.h" | 32 #include "ash/wm/overview/window_selector_item.h" |
| 33 #include "ash/wm/window_state_aura.h" | 33 #include "ash/wm/window_state_aura.h" |
| 34 #include "ash/wm/window_util.h" | 34 #include "ash/wm/window_util.h" |
| 35 #include "base/command_line.h" | 35 #include "base/command_line.h" |
| 36 #include "base/compiler_specific.h" | 36 #include "base/compiler_specific.h" |
| 37 #include "base/memory/scoped_vector.h" | 37 #include "base/memory/scoped_vector.h" |
| 38 #include "base/run_loop.h" | 38 #include "base/run_loop.h" |
| (...skipping 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1729 bounds.y()); | 1729 bounds.y()); |
| 1730 EXPECT_LE(transformed_rect.bottom(), bounds.bottom()); | 1730 EXPECT_LE(transformed_rect.bottom(), bounds.bottom()); |
| 1731 EXPECT_NEAR(transformed_rect.x() - bounds.x(), | 1731 EXPECT_NEAR(transformed_rect.x() - bounds.x(), |
| 1732 bounds.right() - transformed_rect.right(), 1); | 1732 bounds.right() - transformed_rect.right(), 1); |
| 1733 EXPECT_NEAR( | 1733 EXPECT_NEAR( |
| 1734 transformed_rect.y() + (int)(scale * inset) - header_height - bounds.y(), | 1734 transformed_rect.y() + (int)(scale * inset) - header_height - bounds.y(), |
| 1735 bounds.bottom() - transformed_rect.bottom(), 1); | 1735 bounds.bottom() - transformed_rect.bottom(), 1); |
| 1736 } | 1736 } |
| 1737 | 1737 |
| 1738 } // namespace ash | 1738 } // namespace ash |
| OLD | NEW |