| 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_DISPLAY_LAYOUT_H_ | 5 #ifndef UI_DISPLAY_DISPLAY_LAYOUT_H_ |
| 6 #define UI_DISPLAY_DISPLAY_LAYOUT_H_ | 6 #define UI_DISPLAY_DISPLAY_LAYOUT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 int offset, | 62 int offset, |
| 63 OffsetReference offset_reference); | 63 OffsetReference offset_reference); |
| 64 DisplayPlacement(int64_t display_id, | 64 DisplayPlacement(int64_t display_id, |
| 65 int64_t parent_display_id, | 65 int64_t parent_display_id, |
| 66 Position position, | 66 Position position, |
| 67 int offset, | 67 int offset, |
| 68 OffsetReference offset_reference); | 68 OffsetReference offset_reference); |
| 69 | 69 |
| 70 DisplayPlacement(const DisplayPlacement& placement); | 70 DisplayPlacement(const DisplayPlacement& placement); |
| 71 | 71 |
| 72 bool operator==(const DisplayPlacement& other) const; |
| 73 bool operator!=(const DisplayPlacement& other) const; |
| 74 |
| 72 DisplayPlacement& Swap(); | 75 DisplayPlacement& Swap(); |
| 73 | 76 |
| 74 std::string ToString() const; | 77 std::string ToString() const; |
| 75 | 78 |
| 76 static std::string PositionToString(Position position); | 79 static std::string PositionToString(Position position); |
| 77 static bool StringToPosition(const base::StringPiece& string, | 80 static bool StringToPosition(const base::StringPiece& string, |
| 78 Position* position); | 81 Position* position); |
| 79 }; | 82 }; |
| 80 | 83 |
| 81 class DISPLAY_EXPORT DisplayLayout final { | 84 class DISPLAY_EXPORT DisplayLayout final { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 static bool ApplyDisplayPlacement(const DisplayPlacement& placement, | 128 static bool ApplyDisplayPlacement(const DisplayPlacement& placement, |
| 126 Displays* display_list, | 129 Displays* display_list, |
| 127 int minimum_offset_overlap); | 130 int minimum_offset_overlap); |
| 128 | 131 |
| 129 DISALLOW_COPY_AND_ASSIGN(DisplayLayout); | 132 DISALLOW_COPY_AND_ASSIGN(DisplayLayout); |
| 130 }; | 133 }; |
| 131 | 134 |
| 132 } // namespace display | 135 } // namespace display |
| 133 | 136 |
| 134 #endif // UI_DISPLAY_DISPLAY_LAYOUT_H_ | 137 #endif // UI_DISPLAY_DISPLAY_LAYOUT_H_ |
| OLD | NEW |