Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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_ |
| OLD | NEW |