| 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/ash_switches.h" | |
| 9 #include "ash/aura/wm_window_aura.h" | 8 #include "ash/aura/wm_window_aura.h" |
| 10 #include "ash/common/accessibility_delegate.h" | 9 #include "ash/common/accessibility_delegate.h" |
| 10 #include "ash/common/ash_switches.h" |
| 11 #include "ash/common/material_design/material_design_controller.h" | 11 #include "ash/common/material_design/material_design_controller.h" |
| 12 #include "ash/common/shell_window_ids.h" | 12 #include "ash/common/shell_window_ids.h" |
| 13 #include "ash/common/wm/mru_window_tracker.h" | 13 #include "ash/common/wm/mru_window_tracker.h" |
| 14 #include "ash/common/wm/panels/panel_layout_manager.h" | 14 #include "ash/common/wm/panels/panel_layout_manager.h" |
| 15 #include "ash/common/wm/window_state.h" | 15 #include "ash/common/wm/window_state.h" |
| 16 #include "ash/common/wm/wm_event.h" | 16 #include "ash/common/wm/wm_event.h" |
| 17 #include "ash/drag_drop/drag_drop_controller.h" | 17 #include "ash/drag_drop/drag_drop_controller.h" |
| 18 #include "ash/root_window_controller.h" | 18 #include "ash/root_window_controller.h" |
| 19 #include "ash/screen_util.h" | 19 #include "ash/screen_util.h" |
| 20 #include "ash/shelf/shelf.h" | 20 #include "ash/shelf/shelf.h" |
| (...skipping 1796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1817 bounds.y()); | 1817 bounds.y()); |
| 1818 EXPECT_LE(transformed_rect.bottom(), bounds.bottom()); | 1818 EXPECT_LE(transformed_rect.bottom(), bounds.bottom()); |
| 1819 EXPECT_NEAR(transformed_rect.x() - bounds.x(), | 1819 EXPECT_NEAR(transformed_rect.x() - bounds.x(), |
| 1820 bounds.right() - transformed_rect.right(), 1); | 1820 bounds.right() - transformed_rect.right(), 1); |
| 1821 EXPECT_NEAR( | 1821 EXPECT_NEAR( |
| 1822 transformed_rect.y() + (int)(scale * inset) - header_height - bounds.y(), | 1822 transformed_rect.y() + (int)(scale * inset) - header_height - bounds.y(), |
| 1823 bounds.bottom() - transformed_rect.bottom(), 1); | 1823 bounds.bottom() - transformed_rect.bottom(), 1); |
| 1824 } | 1824 } |
| 1825 | 1825 |
| 1826 } // namespace ash | 1826 } // namespace ash |
| OLD | NEW |