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 "ash/wallpaper/wallpaper_controller.h" | 5 #include "ash/wallpaper/wallpaper_controller.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <cstdlib> | 8 #include <cstdlib> |
9 | 9 |
10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
11 #include "ash/public/cpp/config.h" | 11 #include "ash/public/cpp/config.h" |
12 #include "ash/public/cpp/shell_window_ids.h" | 12 #include "ash/public/cpp/shell_window_ids.h" |
13 #include "ash/root_window_controller.h" | 13 #include "ash/root_window_controller.h" |
14 #include "ash/session/session_controller.h" | 14 #include "ash/session/session_controller.h" |
15 #include "ash/shell.h" | 15 #include "ash/shell.h" |
16 #include "ash/test/ash_test_base.h" | 16 #include "ash/test/ash_test_base.h" |
17 #include "ash/test/test_session_controller_client.h" | 17 #include "ash/test/test_session_controller_client.h" |
18 #include "ash/test/test_wallpaper_delegate.h" | 18 #include "ash/test/test_wallpaper_delegate.h" |
19 #include "ash/wallpaper/wallpaper_view.h" | 19 #include "ash/wallpaper/wallpaper_view.h" |
20 #include "ash/wallpaper/wallpaper_widget_controller.h" | 20 #include "ash/wallpaper/wallpaper_widget_controller.h" |
21 #include "ash/wm_window.h" | |
22 #include "base/command_line.h" | 21 #include "base/command_line.h" |
23 #include "base/message_loop/message_loop.h" | 22 #include "base/message_loop/message_loop.h" |
24 #include "base/run_loop.h" | 23 #include "base/run_loop.h" |
25 #include "base/strings/stringprintf.h" | 24 #include "base/strings/stringprintf.h" |
26 #include "base/threading/sequenced_worker_pool.h" | 25 #include "base/threading/sequenced_worker_pool.h" |
27 #include "third_party/skia/include/core/SkBitmap.h" | 26 #include "third_party/skia/include/core/SkBitmap.h" |
28 #include "third_party/skia/include/core/SkColor.h" | 27 #include "third_party/skia/include/core/SkColor.h" |
29 #include "ui/aura/window.h" | 28 #include "ui/aura/window.h" |
30 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 29 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
31 #include "ui/compositor/test/layer_animator_test_controller.h" | 30 #include "ui/compositor/test/layer_animator_test_controller.h" |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 EXPECT_TRUE(ShouldCalculateColors()); | 523 EXPECT_TRUE(ShouldCalculateColors()); |
525 | 524 |
526 SetSessionState(SessionState::LOCKED); | 525 SetSessionState(SessionState::LOCKED); |
527 EXPECT_FALSE(ShouldCalculateColors()); | 526 EXPECT_FALSE(ShouldCalculateColors()); |
528 | 527 |
529 SetSessionState(SessionState::LOGIN_SECONDARY); | 528 SetSessionState(SessionState::LOGIN_SECONDARY); |
530 EXPECT_FALSE(ShouldCalculateColors()); | 529 EXPECT_FALSE(ShouldCalculateColors()); |
531 } | 530 } |
532 | 531 |
533 } // namespace ash | 532 } // namespace ash |
OLD | NEW |