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

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

Issue 2314203002: Move DisplayList to display; add ScreenBase. (Closed)
Patch Set: Update unit test namespace. Created 4 years, 3 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « ui/display/manager/display_layout_unittest.cc ('k') | ui/display/manager/display_manager_utilities.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698