| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 SortDisplayIdList(&list); | 83 SortDisplayIdList(&list); |
| 84 return list; | 84 return list; |
| 85 } | 85 } |
| 86 | 86 |
| 87 // Creates sorted DisplayIdList. | 87 // Creates sorted DisplayIdList. |
| 88 DISPLAY_MANAGER_EXPORT DisplayIdList CreateDisplayIdList(const Displays& list); | 88 DISPLAY_MANAGER_EXPORT DisplayIdList CreateDisplayIdList(const Displays& list); |
| 89 | 89 |
| 90 DISPLAY_MANAGER_EXPORT std::string DisplayIdListToString( | 90 DISPLAY_MANAGER_EXPORT std::string DisplayIdListToString( |
| 91 const DisplayIdList& list); | 91 const DisplayIdList& list); |
| 92 | 92 |
| 93 // Returns true if one of following conditions is met. | |
| 94 // 1) id1 is internal. | |
| 95 // 2) output index of id1 < output index of id2 and id2 isn't internal. | |
| 96 DISPLAY_MANAGER_EXPORT bool CompareDisplayIds(int64_t id1, int64_t id2); | |
| 97 | |
| 98 } // namespace display | 93 } // namespace display |
| 99 | 94 |
| 100 #endif // UI_DISPLAY_MANAGER_DISPLAY_MANAGER_UTILITIES_H_ | 95 #endif // UI_DISPLAY_MANAGER_DISPLAY_MANAGER_UTILITIES_H_ |
| OLD | NEW |