| 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/common/wallpaper/wallpaper_controller.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "ash/ash_switches.h" | 10 #include "ash/common/ash_switches.h" |
| 11 #include "ash/common/wallpaper/wallpaper_controller_observer.h" |
| 12 #include "ash/common/wallpaper/wallpaper_delegate.h" |
| 13 #include "ash/common/wallpaper/wallpaper_view.h" |
| 14 #include "ash/common/wallpaper/wallpaper_widget_controller.h" |
| 15 #include "ash/common/wm_shell.h" |
| 16 #include "ash/common/wm_window.h" |
| 11 #include "ash/public/cpp/shell_window_ids.h" | 17 #include "ash/public/cpp/shell_window_ids.h" |
| 12 #include "ash/root_window_controller.h" | 18 #include "ash/root_window_controller.h" |
| 13 #include "ash/wallpaper/wallpaper_controller_observer.h" | |
| 14 #include "ash/wallpaper/wallpaper_delegate.h" | |
| 15 #include "ash/wallpaper/wallpaper_view.h" | |
| 16 #include "ash/wallpaper/wallpaper_widget_controller.h" | |
| 17 #include "ash/wm_shell.h" | |
| 18 #include "ash/wm_window.h" | |
| 19 #include "base/bind.h" | 19 #include "base/bind.h" |
| 20 #include "base/command_line.h" | 20 #include "base/command_line.h" |
| 21 #include "base/logging.h" | 21 #include "base/logging.h" |
| 22 #include "base/task_runner.h" | 22 #include "base/task_runner.h" |
| 23 #include "components/wallpaper/wallpaper_color_calculator.h" | 23 #include "components/wallpaper/wallpaper_color_calculator.h" |
| 24 #include "components/wallpaper/wallpaper_resizer.h" | 24 #include "components/wallpaper/wallpaper_resizer.h" |
| 25 #include "ui/display/manager/managed_display_info.h" | 25 #include "ui/display/manager/managed_display_info.h" |
| 26 #include "ui/display/screen.h" | 26 #include "ui/display/screen.h" |
| 27 #include "ui/gfx/color_analysis.h" | 27 #include "ui/gfx/color_analysis.h" |
| 28 #include "ui/views/widget/widget.h" | 28 #include "ui/views/widget/widget.h" |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 color_calculator_->RemoveObserver(this); | 347 color_calculator_->RemoveObserver(this); |
| 348 | 348 |
| 349 color_calculator_ = base::MakeUnique<wallpaper::WallpaperColorCalculator>( | 349 color_calculator_ = base::MakeUnique<wallpaper::WallpaperColorCalculator>( |
| 350 GetWallpaper(), luma, saturation, task_runner_); | 350 GetWallpaper(), luma, saturation, task_runner_); |
| 351 color_calculator_->AddObserver(this); | 351 color_calculator_->AddObserver(this); |
| 352 if (!color_calculator_->StartCalculation()) | 352 if (!color_calculator_->StartCalculation()) |
| 353 SetProminentColor(SK_ColorTRANSPARENT); | 353 SetProminentColor(SK_ColorTRANSPARENT); |
| 354 } | 354 } |
| 355 | 355 |
| 356 } // namespace ash | 356 } // namespace ash |
| OLD | NEW |