OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_MANAGER_DISPLAY_MANAGER_UTILITIES_H_ | 5 #ifndef UI_DISPLAY_MANAGER_DISPLAY_MANAGER_UTILITIES_H_ |
6 #define UI_DISPLAY_MANAGER_DISPLAY_MANAGER_UTILITIES_H_ | 6 #define UI_DISPLAY_MANAGER_DISPLAY_MANAGER_UTILITIES_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "ui/display/display.h" | 10 #include "ui/display/display.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 while (first != last) { | 88 while (first != last) { |
89 list.push_back(generator(*first)); | 89 list.push_back(generator(*first)); |
90 ++first; | 90 ++first; |
91 } | 91 } |
92 SortDisplayIdList(&list); | 92 SortDisplayIdList(&list); |
93 return list; | 93 return list; |
94 } | 94 } |
95 | 95 |
96 // Creates sorted display::DisplayIdList. | 96 // Creates sorted display::DisplayIdList. |
97 DISPLAY_EXPORT display::DisplayIdList CreateDisplayIdList( | 97 DISPLAY_EXPORT display::DisplayIdList CreateDisplayIdList( |
98 const display::DisplayList& list); | 98 const display::Displays& list); |
99 | 99 |
100 DISPLAY_EXPORT std::string DisplayIdListToString( | 100 DISPLAY_EXPORT std::string DisplayIdListToString( |
101 const display::DisplayIdList& list); | 101 const display::DisplayIdList& list); |
102 | 102 |
103 // Returns true if one of following conditions is met. | 103 // Returns true if one of following conditions is met. |
104 // 1) id1 is internal. | 104 // 1) id1 is internal. |
105 // 2) output index of id1 < output index of id2 and id2 isn't internal. | 105 // 2) output index of id1 < output index of id2 and id2 isn't internal. |
106 DISPLAY_EXPORT bool CompareDisplayIds(int64_t id1, int64_t id2); | 106 DISPLAY_EXPORT bool CompareDisplayIds(int64_t id1, int64_t id2); |
107 | 107 |
108 } // namespace display | 108 } // namespace display |
109 | 109 |
110 #endif // UI_DISPLAY_MANAGER_DISPLAY_MANAGER_UTILITIES_H_ | 110 #endif // UI_DISPLAY_MANAGER_DISPLAY_MANAGER_UTILITIES_H_ |
OLD | NEW |