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

Unified Diff: ash/test/wallpaper_controller_test_api.h

Issue 2867413002: [ash-md] Updated the overflow shelf to change colors based on the wallpaper. (Closed)
Patch Set: Added ShelfViewTest.OverflowShelfColorIsDerivedFromWallpaper test. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/test/BUILD.gn ('k') | ash/test/wallpaper_controller_test_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/wallpaper_controller_test_api.h
diff --git a/ash/test/wallpaper_controller_test_api.h b/ash/test/wallpaper_controller_test_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..4e0b4f6088ae97a993555b4dd5f14cf8cef1a858
--- /dev/null
+++ b/ash/test/wallpaper_controller_test_api.h
@@ -0,0 +1,35 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ash/ash_export.h"
+#include "base/macros.h"
+#include "third_party/skia/include/core/SkColor.h"
+
+namespace ash {
+
+class WallpaperController;
+
+namespace test {
+
+class ASH_EXPORT WallpaperControllerTestApi {
+ public:
+ explicit WallpaperControllerTestApi(WallpaperController* controller);
+ virtual ~WallpaperControllerTestApi();
+
+ // Creates and sets a new wallpaper that cause the prominent color of the
+ // |controller_| to be a valid (aka not kInvalidColor) color. The
+ // WallpaperControllerObservers should be notified as well. This is assumes
+ // the default DARK-MUTED luma-saturation ranges are in effect.
+ //
+ // The expected prominent color is returned.
+ SkColor ApplyColorProducingWallpaper();
+
+ private:
+ WallpaperController* controller_;
+
+ DISALLOW_COPY_AND_ASSIGN(WallpaperControllerTestApi);
+};
+
+} // namespace test
+} // namespace ash
« no previous file with comments | « ash/test/BUILD.gn ('k') | ash/test/wallpaper_controller_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698