Mark //testing/perf target testonly.
[chromium-blink-merge.git] / ash / test / display_manager_test_api.h
blobf9f5c41fdcd1ff86092f7d5065072a9452419854
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.
5 #ifndef ASH_TEST_DISPLAY_MANAGER_TEST_API_H_
6 #define ASH_TEST_DISPLAY_MANAGER_TEST_API_H_
8 #include <string>
9 #include <vector>
11 #include "base/basictypes.h"
12 #include "ui/display/types/display_constants.h"
14 namespace ash {
15 class DisplayManager;
17 namespace test {
19 class DisplayManagerTestApi {
20 public:
21 explicit DisplayManagerTestApi(DisplayManager* display_manager);
22 virtual ~DisplayManagerTestApi();
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 |ash::DisplayInfo::CreateFromSpec| for the format
27 // of the display spec.
28 void UpdateDisplay(const std::string& display_specs);
30 // Set the 1st display as an internal display and returns the display Id for
31 // the internal display.
32 int64 SetFirstDisplayAsInternalDisplay();
34 // Sets the display id for internal display and
35 // update the display mode list if necessary.
36 void SetInternalDisplayId(int64 id);
38 // Don't update the display when the root window's size was changed.
39 void DisableChangeDisplayUponHostResize();
41 // Sets the available color profiles for |display_id|.
42 void SetAvailableColorProfiles(
43 int64 display_id,
44 const std::vector<ui::ColorCalibrationProfile>& profiles);
46 private:
47 DisplayManager* display_manager_; // not owned
49 DISALLOW_COPY_AND_ASSIGN(DisplayManagerTestApi);
52 } // namespace test
53 } // namespace ash
55 #endif // ASH_TEST_DISPLAY_MANAGER_TEST_API_H_