OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/common/material_design/material_design_controller.h" | 8 #include "ash/common/material_design/material_design_controller.h" |
9 #include "ash/common/shelf/shelf_widget.h" | 9 #include "ash/common/shelf/shelf_widget.h" |
10 #include "ash/common/shelf/wm_shelf.h" | 10 #include "ash/common/shelf/wm_shelf.h" |
11 #include "ash/display/display_manager.h" | |
12 #include "ash/shell.h" | 11 #include "ash/shell.h" |
13 #include "ash/test/ash_md_test_base.h" | 12 #include "ash/test/ash_md_test_base.h" |
14 #include "ash/wm/window_properties.h" | 13 #include "ash/wm/window_properties.h" |
15 #include "ash/wm/window_util.h" | 14 #include "ash/wm/window_util.h" |
16 #include "base/command_line.h" | 15 #include "base/command_line.h" |
17 #include "ui/aura/window.h" | 16 #include "ui/aura/window.h" |
18 #include "ui/aura/window_event_dispatcher.h" | 17 #include "ui/aura/window_event_dispatcher.h" |
19 #include "ui/compositor/layer.h" | 18 #include "ui/compositor/layer.h" |
20 #include "ui/display/display.h" | 19 #include "ui/display/display.h" |
| 20 #include "ui/display/manager/display_manager.h" |
21 #include "ui/display/screen.h" | 21 #include "ui/display/screen.h" |
22 #include "ui/gfx/geometry/insets.h" | 22 #include "ui/gfx/geometry/insets.h" |
23 #include "ui/views/widget/widget.h" | 23 #include "ui/views/widget/widget.h" |
24 #include "ui/wm/core/shadow.h" | 24 #include "ui/wm/core/shadow.h" |
25 #include "ui/wm/core/shadow_controller.h" | 25 #include "ui/wm/core/shadow_controller.h" |
26 #include "ui/wm/core/shadow_types.h" | 26 #include "ui/wm/core/shadow_types.h" |
27 #include "ui/wm/public/activation_client.h" | 27 #include "ui/wm/public/activation_client.h" |
28 | 28 |
29 namespace ash { | 29 namespace ash { |
30 | 30 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 // Sanity check if the workarea's inset hight is same as | 76 // Sanity check if the workarea's inset hight is same as |
77 // the shelf's height. | 77 // the shelf's height. |
78 WmShelf* shelf = GetPrimaryShelf(); | 78 WmShelf* shelf = GetPrimaryShelf(); |
79 EXPECT_EQ(display_2x.bounds().InsetsFrom(work_area).height(), | 79 EXPECT_EQ(display_2x.bounds().InsetsFrom(work_area).height(), |
80 shelf->shelf_widget()->GetNativeView()->layer()->bounds().height()); | 80 shelf->shelf_widget()->GetNativeView()->layer()->bounds().height()); |
81 } | 81 } |
82 #endif // defined(OS_CHROMEOS) | 82 #endif // defined(OS_CHROMEOS) |
83 | 83 |
84 } // namespace ash | 84 } // namespace ash |
OLD | NEW |