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

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

Issue 2814843007: Fix expected PlacementList sort order. (Closed)
Patch Set: 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
« no previous file with comments | « chrome/browser/chromeos/display/display_preferences.cc ('k') | ui/display/display.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_DISPLAY_H_ 5 #ifndef UI_DISPLAY_DISPLAY_H_
6 #define UI_DISPLAY_DISPLAY_H_ 6 #define UI_DISPLAY_DISPLAY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "mojo/public/cpp/bindings/struct_traits.h" 11 #include "mojo/public/cpp/bindings/struct_traits.h"
12 #include "ui/display/display_export.h" 12 #include "ui/display/display_export.h"
13 #include "ui/display/types/display_constants.h" 13 #include "ui/display/types/display_constants.h"
14 #include "ui/gfx/geometry/rect.h" 14 #include "ui/gfx/geometry/rect.h"
15 #include "ui/gfx/icc_profile.h" 15 #include "ui/gfx/icc_profile.h"
16 16
17 namespace display { 17 namespace display {
18 18
19 namespace mojom { 19 namespace mojom {
20 class DisplayDataView; 20 class DisplayDataView;
21 } 21 }
22 22
23 // Returns true if one of following conditions is met.
24 // 1) id1 is internal.
25 // 2) output index of id1 < output index of id2 and id2 isn't internal.
26 DISPLAY_EXPORT bool CompareDisplayIds(int64_t id1, int64_t id2);
afakhry 2017/04/13 00:49:03 This was moved from ui/display/manager/display_man
27
23 // This class typically, but does not always, correspond to a physical display 28 // This class typically, but does not always, correspond to a physical display
24 // connected to the system. A fake Display may exist on a headless system, or a 29 // connected to the system. A fake Display may exist on a headless system, or a
25 // Display may correspond to a remote, virtual display. 30 // Display may correspond to a remote, virtual display.
26 // 31 //
27 // Note: The screen and display currently uses pixel coordinate 32 // Note: The screen and display currently uses pixel coordinate
28 // system. For platforms that support DIP (density independent pixel), 33 // system. For platforms that support DIP (density independent pixel),
29 // |bounds()| and |work_area| will return values in DIP coordinate 34 // |bounds()| and |work_area| will return values in DIP coordinate
30 // system, not in backing pixels. 35 // system, not in backing pixels.
31 class DISPLAY_EXPORT Display final { 36 class DISPLAY_EXPORT Display final {
32 public: 37 public:
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 gfx::Size maximum_cursor_size_; 208 gfx::Size maximum_cursor_size_;
204 gfx::ICCProfile icc_profile_; 209 gfx::ICCProfile icc_profile_;
205 int color_depth_; 210 int color_depth_;
206 int depth_per_component_; 211 int depth_per_component_;
207 bool is_monochrome_ = false; 212 bool is_monochrome_ = false;
208 }; 213 };
209 214
210 } // namespace display 215 } // namespace display
211 216
212 #endif // UI_DISPLAY_DISPLAY_H_ 217 #endif // UI_DISPLAY_DISPLAY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/display/display_preferences.cc ('k') | ui/display/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698