blob: 02f11f642f91f7f646243af8980f4760ce949b2d [file] [log] [blame]
// 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;
class ASH_EXPORT WallpaperControllerTestApi {
explicit WallpaperControllerTestApi(WallpaperController* controller);
virtual ~WallpaperControllerTestApi();
// Creates and sets a new wallpaper that cause the prominent color of the
// |controller_| to be a valid (i.e. not kInvalidWallpaperColor) color. The
// WallpaperControllerObservers should be notified as well. This assumes the
// default DARK-MUTED luma-saturation ranges are in effect.
// The expected prominent color is returned.
SkColor ApplyColorProducingWallpaper();
// Simulates starting the fullscreen wallpaper preview.
void StartWallpaperPreview();
// Simulates ending the fullscreen wallpaper preview.
// |confirm_preview_wallpaper| indicates if the preview wallpaper should be
// set as the actual user wallpaper.
void EndWallpaperPreview(bool confirm_preview_wallpaper);
WallpaperController* controller_;
} // namespace ash