blob: 70dbd2ec6389e301aba91a4b6a1ad3218416a1d3 [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.
#ifndef ASH_TEST_DISPLAY_MANAGER_TEST_API_H_
#define ASH_TEST_DISPLAY_MANAGER_TEST_API_H_
#include <string>
#include "base/basictypes.h"
namespace ash {
namespace internal {
class DisplayManager;
} // internal
namespace test {
class DisplayManagerTestApi {
public:
explicit DisplayManagerTestApi(internal::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 |aura::DisplayManager::CreateDisplayFromSpec| 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();
private:
internal::DisplayManager* display_manager_; // not owned
DISALLOW_COPY_AND_ASSIGN(DisplayManagerTestApi);
};
} // namespace test
} // namespace ash
#endif // ASH_TEST_DISPLAY_MANAGER_TEST_API_H_