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 UI_DISPLAY_TEST_DISPLAY_MANAGER_TEST_API_H_ | 5 #ifndef UI_DISPLAY_TEST_DISPLAY_MANAGER_TEST_API_H_ |
6 #define UI_DISPLAY_TEST_DISPLAY_MANAGER_TEST_API_H_ | 6 #define UI_DISPLAY_TEST_DISPLAY_MANAGER_TEST_API_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 friend class ScopedSetInternalDisplayId; | 64 friend class ScopedSetInternalDisplayId; |
65 // Sets the display id for internal display and | 65 // Sets the display id for internal display and |
66 // update the display mode list if necessary. | 66 // update the display mode list if necessary. |
67 void SetInternalDisplayId(int64_t id); | 67 void SetInternalDisplayId(int64_t id); |
68 | 68 |
69 DisplayManager* display_manager_; // not owned | 69 DisplayManager* display_manager_; // not owned |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(DisplayManagerTestApi); | 71 DISALLOW_COPY_AND_ASSIGN(DisplayManagerTestApi); |
72 }; | 72 }; |
73 | 73 |
74 class DISPLAY_EXPORT ScopedDisable125DSFForUIScaling { | |
75 public: | |
76 ScopedDisable125DSFForUIScaling(); | |
77 ~ScopedDisable125DSFForUIScaling(); | |
78 | |
79 private: | |
80 DISALLOW_COPY_AND_ASSIGN(ScopedDisable125DSFForUIScaling); | |
81 }; | |
82 | |
83 class DISPLAY_EXPORT ScopedSetInternalDisplayId { | 74 class DISPLAY_EXPORT ScopedSetInternalDisplayId { |
84 public: | 75 public: |
85 ScopedSetInternalDisplayId(DisplayManager* test_api, int64_t id); | 76 ScopedSetInternalDisplayId(DisplayManager* test_api, int64_t id); |
86 ~ScopedSetInternalDisplayId(); | 77 ~ScopedSetInternalDisplayId(); |
87 | 78 |
88 private: | 79 private: |
89 DISALLOW_COPY_AND_ASSIGN(ScopedSetInternalDisplayId); | 80 DISALLOW_COPY_AND_ASSIGN(ScopedSetInternalDisplayId); |
90 }; | 81 }; |
91 | 82 |
92 // Sets the display mode that matches the |resolution| for |display_id|. | 83 // Sets the display mode that matches the |resolution| for |display_id|. |
(...skipping 12 matching lines...) Expand all Loading... |
105 int offset); | 96 int offset); |
106 | 97 |
107 // Creates the DisplayIdList from ints. | 98 // Creates the DisplayIdList from ints. |
108 DISPLAY_EXPORT DisplayIdList CreateDisplayIdList2(int64_t id1, int64_t id2); | 99 DISPLAY_EXPORT DisplayIdList CreateDisplayIdList2(int64_t id1, int64_t id2); |
109 DISPLAY_EXPORT DisplayIdList CreateDisplayIdListN(size_t count, ...); | 100 DISPLAY_EXPORT DisplayIdList CreateDisplayIdListN(size_t count, ...); |
110 | 101 |
111 } // namespace test | 102 } // namespace test |
112 } // namespace display | 103 } // namespace display |
113 | 104 |
114 #endif // UI_DISPLAY_TEST_DISPLAY_MANAGER_TEST_API_H_ | 105 #endif // UI_DISPLAY_TEST_DISPLAY_MANAGER_TEST_API_H_ |
OLD | NEW |