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/common/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/common/wallpaper/wallpaper_view.h" | |
11 #include "ash/common/wallpaper/wallpaper_widget_controller.h" | |
12 #include "ash/common/wm_shell.h" | |
13 #include "ash/common/wm_window.h" | |
14 #include "ash/public/cpp/shell_window_ids.h" | 10 #include "ash/public/cpp/shell_window_ids.h" |
15 #include "ash/root_window_controller.h" | 11 #include "ash/root_window_controller.h" |
16 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
17 #include "ash/test/test_wallpaper_delegate.h" | 13 #include "ash/test/test_wallpaper_delegate.h" |
| 14 #include "ash/wallpaper/wallpaper_view.h" |
| 15 #include "ash/wallpaper/wallpaper_widget_controller.h" |
| 16 #include "ash/wm_shell.h" |
| 17 #include "ash/wm_window.h" |
18 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
19 #include "base/run_loop.h" | 19 #include "base/run_loop.h" |
20 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
21 #include "base/threading/sequenced_worker_pool.h" | 21 #include "base/threading/sequenced_worker_pool.h" |
22 #include "third_party/skia/include/core/SkBitmap.h" | 22 #include "third_party/skia/include/core/SkBitmap.h" |
23 #include "third_party/skia/include/core/SkColor.h" | 23 #include "third_party/skia/include/core/SkColor.h" |
24 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 24 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
25 #include "ui/compositor/test/layer_animator_test_controller.h" | 25 #include "ui/compositor/test/layer_animator_test_controller.h" |
26 #include "ui/gfx/canvas.h" | 26 #include "ui/gfx/canvas.h" |
27 #include "ui/views/widget/widget.h" | 27 #include "ui/views/widget/widget.h" |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 { | 464 { |
465 SCOPED_TRACE(base::StringPrintf("1200x600/u@1.5 low resolution")); | 465 SCOPED_TRACE(base::StringPrintf("1200x600/u@1.5 low resolution")); |
466 controller_->SetWallpaperImage(image_low_res, WALLPAPER_LAYOUT_CENTER); | 466 controller_->SetWallpaperImage(image_low_res, WALLPAPER_LAYOUT_CENTER); |
467 WallpaperFitToNativeResolution( | 467 WallpaperFitToNativeResolution( |
468 wallpaper_view(), low_dsf, low_resolution.width(), | 468 wallpaper_view(), low_dsf, low_resolution.width(), |
469 low_resolution.height(), kCustomWallpaperColor); | 469 low_resolution.height(), kCustomWallpaperColor); |
470 } | 470 } |
471 } | 471 } |
472 | 472 |
473 } // namespace ash | 473 } // namespace ash |
OLD | NEW |