Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: ash/wallpaper/wallpaper_controller.cc

Issue 2729363002: chromeos: Move files in //ash/common to //ash, part 3 (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/wallpaper/wallpaper_controller.h ('k') | ash/wallpaper/wallpaper_controller_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "ash/common/ash_switches.h" 10 #include "ash/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"
17 #include "ash/public/cpp/shell_window_ids.h" 11 #include "ash/public/cpp/shell_window_ids.h"
18 #include "ash/root_window_controller.h" 12 #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
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
OLDNEW
« no previous file with comments | « ash/wallpaper/wallpaper_controller.h ('k') | ash/wallpaper/wallpaper_controller_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698