| 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_LAYOUT_H_ | 5 #ifndef UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_H_ |
| 6 #define UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_H_ | 6 #define UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/strings/string_piece.h" | 15 #include "base/strings/string_piece.h" |
| 16 #include "ui/display/display_export.h" | 16 #include "ui/display/display_export.h" |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class Value; | 19 class Value; |
| 20 template <typename T> class JSONValueConverter; | 20 template <typename T> class JSONValueConverter; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace gfx { | 23 namespace gfx { |
| 24 class Display; | 24 class Display; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace display { | 27 namespace display { |
| 28 using Display = gfx::Display; |
| 28 | 29 |
| 29 // An identifier used to manage display layout in DisplayManager / | 30 // An identifier used to manage display layout in DisplayManager / |
| 30 // DisplayLayoutStore. | 31 // DisplayLayoutStore. |
| 31 using DisplayIdList = std::vector<int64_t>; | 32 using DisplayIdList = std::vector<int64_t>; |
| 32 | 33 |
| 33 using DisplayList = std::vector<gfx::Display>; | 34 using DisplayList = std::vector<gfx::Display>; |
| 34 | 35 |
| 35 // DisplayPlacement specifies where the display (D) is placed relative | 36 // DisplayPlacement specifies where the display (D) is placed relative |
| 36 // to parent (P) display. In the following example, the display (D) | 37 // to parent (P) display. In the following example, the display (D) |
| 37 // given by |display_id| is placed at the left side of the parent | 38 // given by |display_id| is placed at the left side of the parent |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 static bool ApplyDisplayPlacement(const DisplayPlacement& placement, | 120 static bool ApplyDisplayPlacement(const DisplayPlacement& placement, |
| 120 DisplayList* display_list, | 121 DisplayList* display_list, |
| 121 int minimum_offset_overlap); | 122 int minimum_offset_overlap); |
| 122 | 123 |
| 123 DISALLOW_COPY_AND_ASSIGN(DisplayLayout); | 124 DISALLOW_COPY_AND_ASSIGN(DisplayLayout); |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 } // namespace display | 127 } // namespace display |
| 127 | 128 |
| 128 #endif // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_H_ | 129 #endif // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_H_ |
| OLD | NEW |