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/launcher/launcher.h" | 8 #include "ash/launcher/launcher.h" |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/test/ash_test_base.h" | 10 #include "ash/test/ash_test_base.h" |
11 #include "ash/wm/shadow.h" | 11 #include "ash/wm/shadow.h" |
12 #include "ash/wm/shadow_controller.h" | 12 #include "ash/wm/shadow_controller.h" |
13 #include "ash/wm/shadow_types.h" | 13 #include "ash/wm/shadow_types.h" |
14 #include "ash/wm/window_properties.h" | 14 #include "ash/wm/window_properties.h" |
15 #include "ash/wm/window_util.h" | 15 #include "ash/wm/window_util.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "ui/aura/client/activation_client.h" | 17 #include "ui/aura/client/activation_client.h" |
18 #include "ui/aura/root_window.h" | 18 #include "ui/aura/root_window.h" |
19 #include "ui/aura/window.h" | 19 #include "ui/aura/window.h" |
20 #include "ui/gfx/compositor/layer.h" | 20 #include "ui/compositor/layer.h" |
21 #include "ui/gfx/insets.h" | 21 #include "ui/gfx/insets.h" |
22 #include "ui/gfx/monitor.h" | 22 #include "ui/gfx/monitor.h" |
23 #include "ui/gfx/screen.h" | 23 #include "ui/gfx/screen.h" |
24 #include "ui/views/widget/widget.h" | 24 #include "ui/views/widget/widget.h" |
25 | 25 |
26 #if defined(ENABLE_DIP) | 26 #if defined(ENABLE_DIP) |
27 #define MAYBE_Shadow FAILS_Shadow | 27 #define MAYBE_Shadow FAILS_Shadow |
28 #define MAYBE_WorkArea FAILS_WorkArea | 28 #define MAYBE_WorkArea FAILS_WorkArea |
29 #else | 29 #else |
30 #define MAYBE_Shadow DISABLED_Shadow | 30 #define MAYBE_Shadow DISABLED_Shadow |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 EXPECT_EQ(work_area.ToString(), monitor_2x.work_area().ToString()); | 89 EXPECT_EQ(work_area.ToString(), monitor_2x.work_area().ToString()); |
90 | 90 |
91 Launcher* launcher = Shell::GetInstance()->launcher(); | 91 Launcher* launcher = Shell::GetInstance()->launcher(); |
92 EXPECT_EQ( | 92 EXPECT_EQ( |
93 monitor_2x.bounds().InsetsFrom(work_area).height() * 2, | 93 monitor_2x.bounds().InsetsFrom(work_area).height() * 2, |
94 launcher->widget()->GetNativeView()->layer()->bounds().height()); | 94 launcher->widget()->GetNativeView()->layer()->bounds().height()); |
95 } | 95 } |
96 | 96 |
97 } // namespace ash | 97 } // namespace ash |
OLD | NEW |