| 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_BUILDER_H_ | 5 #ifndef UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_BUILDER_H_ |
| 6 #define UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_BUILDER_H_ | 6 #define UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_BUILDER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "ui/display/display_export.h" | |
| 12 #include "ui/display/manager/display_layout.h" | 11 #include "ui/display/manager/display_layout.h" |
| 12 #include "ui/display/manager/display_manager_export.h" |
| 13 | 13 |
| 14 namespace display { | 14 namespace display { |
| 15 | 15 |
| 16 class DisplayLayout; | 16 class DisplayLayout; |
| 17 | 17 |
| 18 // A utility class to create a DisplayLayout instance. | 18 // A utility class to create a DisplayLayout instance. |
| 19 class DISPLAY_EXPORT DisplayLayoutBuilder final { | 19 class DISPLAY_MANAGER_EXPORT DisplayLayoutBuilder final { |
| 20 public: | 20 public: |
| 21 // Creates a builder that uses a copy of the |layout| as a source. | 21 // Creates a builder that uses a copy of the |layout| as a source. |
| 22 explicit DisplayLayoutBuilder(const DisplayLayout& layout); | 22 explicit DisplayLayoutBuilder(const DisplayLayout& layout); |
| 23 | 23 |
| 24 // Creates a builder with the primary display id. | 24 // Creates a builder with the primary display id. |
| 25 explicit DisplayLayoutBuilder(int64_t primary_id); | 25 explicit DisplayLayoutBuilder(int64_t primary_id); |
| 26 | 26 |
| 27 ~DisplayLayoutBuilder(); | 27 ~DisplayLayoutBuilder(); |
| 28 | 28 |
| 29 DisplayLayoutBuilder& SetDefaultUnified(bool default_unified); | 29 DisplayLayoutBuilder& SetDefaultUnified(bool default_unified); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 std::unique_ptr<DisplayLayout> layout_; | 55 std::unique_ptr<DisplayLayout> layout_; |
| 56 | 56 |
| 57 DISALLOW_COPY_AND_ASSIGN(DisplayLayoutBuilder); | 57 DISALLOW_COPY_AND_ASSIGN(DisplayLayoutBuilder); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace display | 60 } // namespace display |
| 61 | 61 |
| 62 #endif // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_BUILDER_H_ | 62 #endif // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_BUILDER_H_ |
| OLD | NEW |