| 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> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class Display; | 24 class Display; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace display { | 27 namespace display { |
| 28 using Display = gfx::Display; | 28 using Display = gfx::Display; |
| 29 | 29 |
| 30 // An identifier used to manage display layout in DisplayManager / | 30 // An identifier used to manage display layout in DisplayManager / |
| 31 // DisplayLayoutStore. | 31 // DisplayLayoutStore. |
| 32 using DisplayIdList = std::vector<int64_t>; | 32 using DisplayIdList = std::vector<int64_t>; |
| 33 | 33 |
| 34 using DisplayList = std::vector<gfx::Display>; | 34 using DisplayList = std::vector<display::Display>; |
| 35 | 35 |
| 36 // DisplayPlacement specifies where the display (D) is placed relative | 36 // DisplayPlacement specifies where the display (D) is placed relative |
| 37 // to parent (P) display. In the following example, the display (D) | 37 // to parent (P) display. In the following example, the display (D) |
| 38 // 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 |
| 39 // display (P) given by |parent_display_id|, with a negative offset. | 39 // display (P) given by |parent_display_id|, with a negative offset. |
| 40 // | 40 // |
| 41 // + +--------+ | 41 // + +--------+ |
| 42 // offset | | | | 42 // offset | | | |
| 43 // + | D +--------+ | 43 // + | D +--------+ |
| 44 // | | | | 44 // | | | |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 static bool ApplyDisplayPlacement(const DisplayPlacement& placement, | 120 static bool ApplyDisplayPlacement(const DisplayPlacement& placement, |
| 121 DisplayList* display_list, | 121 DisplayList* display_list, |
| 122 int minimum_offset_overlap); | 122 int minimum_offset_overlap); |
| 123 | 123 |
| 124 DISALLOW_COPY_AND_ASSIGN(DisplayLayout); | 124 DISALLOW_COPY_AND_ASSIGN(DisplayLayout); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace display | 127 } // namespace display |
| 128 | 128 |
| 129 #endif // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_H_ | 129 #endif // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_H_ |
| OLD | NEW |