OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ash/ash_export.h" |
| 6 #include "base/macros.h" |
| 7 #include "third_party/skia/include/core/SkColor.h" |
| 8 |
| 9 namespace ash { |
| 10 |
| 11 class WallpaperController; |
| 12 |
| 13 namespace test { |
| 14 |
| 15 class ASH_EXPORT WallpaperControllerTestApi { |
| 16 public: |
| 17 explicit WallpaperControllerTestApi(WallpaperController* controller); |
| 18 virtual ~WallpaperControllerTestApi(); |
| 19 |
| 20 // Creates and sets a new wallpaper that cause the prominent color of the |
| 21 // |controller_| to be a valid (aka not kInvalidColor) color. The |
| 22 // WallpaperControllerObservers should be notified as well. This is assumes |
| 23 // the default DARK-MUTED luma-saturation ranges are in effect. |
| 24 // |
| 25 // The expected prominent color is returned. |
| 26 SkColor ApplyColorProducingWallpaper(); |
| 27 |
| 28 private: |
| 29 WallpaperController* controller_; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(WallpaperControllerTestApi); |
| 32 }; |
| 33 |
| 34 } // namespace test |
| 35 } // namespace ash |
OLD | NEW |