OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_TEST_MULTI_DISPLAY_MANAGER_TEST_API_H_ | 5 #ifndef ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ |
6 #define ASH_TEST_MULTI_DISPLAY_MANAGER_TEST_API_H_ | 6 #define ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 namespace internal { | 13 namespace internal { |
14 class MultiDisplayManager; | 14 class DisplayManager; |
15 } // internal | 15 } // internal |
16 | 16 |
17 namespace test { | 17 namespace test { |
18 | 18 |
19 class MultiDisplayManagerTestApi { | 19 class DisplayManagerTestApi { |
20 public: | 20 public: |
21 explicit MultiDisplayManagerTestApi( | 21 explicit DisplayManagerTestApi(internal::DisplayManager* display_manager); |
22 internal::MultiDisplayManager* display_manager); | 22 virtual ~DisplayManagerTestApi(); |
23 virtual ~MultiDisplayManagerTestApi(); | |
24 | 23 |
25 // Update the display configuration as given in |display_specs|. The format of | 24 // Update the display configuration as given in |display_specs|. The format of |
26 // |display_spec| is a list of comma separated spec for each displays. Please | 25 // |display_spec| is a list of comma separated spec for each displays. Please |
27 // refer to the comment in |aura::DisplayManager::CreateDisplayFromSpec| for | 26 // refer to the comment in |aura::DisplayManager::CreateDisplayFromSpec| for |
28 // the format of the display spec. | 27 // the format of the display spec. |
29 void UpdateDisplay(const std::string& display_specs); | 28 void UpdateDisplay(const std::string& display_specs); |
30 | 29 |
31 private: | 30 private: |
32 internal::MultiDisplayManager* display_manager_; // not owned | 31 internal::DisplayManager* display_manager_; // not owned |
33 | 32 |
34 DISALLOW_COPY_AND_ASSIGN(MultiDisplayManagerTestApi); | 33 DISALLOW_COPY_AND_ASSIGN(DisplayManagerTestApi); |
35 }; | 34 }; |
36 | 35 |
37 } // namespace test | 36 } // namespace test |
38 } // namespace ash | 37 } // namespace ash |
39 | 38 |
40 #endif // ASH_TEST_MULTI_DISPLAY_MANAGER_TEST_API_H_ | 39 #endif // ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ |
OLD | NEW |