| 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 { | |
| 19 class Value; | |
| 20 template <typename T> class JSONValueConverter; | |
| 21 } | |
| 22 | |
| 23 namespace display { | 18 namespace display { |
| 24 class Display; | 19 class Display; |
| 25 | 20 |
| 26 // An identifier used to manage display layout in DisplayManager / | 21 // An identifier used to manage display layout in DisplayManager / |
| 27 // DisplayLayoutStore. | 22 // DisplayLayoutStore. |
| 28 using DisplayIdList = std::vector<int64_t>; | 23 using DisplayIdList = std::vector<int64_t>; |
| 29 | 24 |
| 30 using Displays = std::vector<Display>; | 25 using Displays = std::vector<Display>; |
| 31 | 26 |
| 32 // DisplayPlacement specifies where the display (D) is placed relative to | 27 // DisplayPlacement specifies where the display (D) is placed relative to |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 static bool ApplyDisplayPlacement(const DisplayPlacement& placement, | 124 static bool ApplyDisplayPlacement(const DisplayPlacement& placement, |
| 130 Displays* display_list, | 125 Displays* display_list, |
| 131 int minimum_offset_overlap); | 126 int minimum_offset_overlap); |
| 132 | 127 |
| 133 DISALLOW_COPY_AND_ASSIGN(DisplayLayout); | 128 DISALLOW_COPY_AND_ASSIGN(DisplayLayout); |
| 134 }; | 129 }; |
| 135 | 130 |
| 136 } // namespace display | 131 } // namespace display |
| 137 | 132 |
| 138 #endif // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_H_ | 133 #endif // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_H_ |
| OLD | NEW |