blob: be5dbb953294f0575da0f533911d15dd642850ec [file] [log] [blame]
// Copyright (c) 2012 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 <string>
#include <vector>
#include "base/basictypes.h"
#include "ui/display/types/display_constants.h"
namespace ash {
class DisplayManager;
namespace test {
class DisplayManagerTestApi {
explicit DisplayManagerTestApi(DisplayManager* display_manager);
virtual ~DisplayManagerTestApi();
// Update the display configuration as given in |display_specs|. The format of
// |display_spec| is a list of comma separated spec for each displays. Please
// refer to the comment in |ash::DisplayInfo::CreateFromSpec| for the format
// of the display spec.
void UpdateDisplay(const std::string& display_specs);
// Set the 1st display as an internal display and returns the display Id for
// the internal display.
int64 SetFirstDisplayAsInternalDisplay();
// Don't update the display when the root window's size was changed.
void DisableChangeDisplayUponHostResize();
// Sets the available color profiles for |display_id|.
void SetAvailableColorProfiles(
int64 display_id,
const std::vector<ui::ColorCalibrationProfile>& profiles);
DisplayManager* display_manager_; // not owned
} // namespace test
} // namespace ash