Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: ui/display/manager/display_manager_utilities.h

Issue 2814843007: Fix expected PlacementList sort order. (Closed)
Patch Set: Don't register invalid layouts Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698