1// Copyright (c) 2012 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#ifndef ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ 6#define ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ 7 8#include <string> 9 10#include "base/basictypes.h" 11 12namespace ash { 13namespace internal { 14class DisplayManager; 15} // internal 16 17namespace test { 18 19class DisplayManagerTestApi { 20 public: 21 explicit DisplayManagerTestApi(internal::DisplayManager* display_manager); 22 virtual ~DisplayManagerTestApi(); 23 24 // Update the display configuration as given in |display_specs|. The format of 25 // |display_spec| is a list of comma separated spec for each displays. Please 26 // refer to the comment in |aura::DisplayManager::CreateDisplayFromSpec| for 27 // the format of the display spec. 28 void UpdateDisplay(const std::string& display_specs); 29 30 // Set the 1st display as an internal display and returns the display Id for 31 // the internal display. 32 int64 SetFirstDisplayAsInternalDisplay(); 33 34 // Don't update the display when the root window's size was changed. 35 void DisableChangeDisplayUponHostResize(); 36 37 private: 38 internal::DisplayManager* display_manager_; // not owned 39 40 DISALLOW_COPY_AND_ASSIGN(DisplayManagerTestApi); 41}; 42 43} // namespace test 44} // namespace ash 45 46#endif // ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ 47