Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: ui/display/manager/display_layout_builder.h

Issue 2540313002: Split //ui/display and create //ui/display/manager. (Closed)
Patch Set: Cleanup export header. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/display/manager/display_layout.cc ('k') | ui/display/manager/display_layout_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/manager/display_layout_builder.h
diff --git a/ui/display/manager/display_layout_builder.h b/ui/display/manager/display_layout_builder.h
deleted file mode 100644
index b93683e39a5763625b1ddc73768d5c5132d84d97..0000000000000000000000000000000000000000
--- a/ui/display/manager/display_layout_builder.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_BUILDER_H_
-#define UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_BUILDER_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "ui/display/display_export.h"
-#include "ui/display/manager/display_layout.h"
-
-namespace display {
-
-class DisplayLayout;
-
-// A utility class to create a DisplayLayout instance.
-class DISPLAY_EXPORT DisplayLayoutBuilder final {
- public:
- // Creates a builder that uses a copy of the |layout| as a source.
- explicit DisplayLayoutBuilder(const DisplayLayout& layout);
-
- // Creates a builder with the primary display id.
- explicit DisplayLayoutBuilder(int64_t primary_id);
-
- ~DisplayLayoutBuilder();
-
- DisplayLayoutBuilder& SetDefaultUnified(bool default_unified);
-
- DisplayLayoutBuilder& SetMirrored(bool mirrored);
-
- DisplayLayoutBuilder& ClearPlacements();
-
- // Adds a display placement.
- DisplayLayoutBuilder& AddDisplayPlacement(int64_t display_id,
- int64_t parent_id,
- DisplayPlacement::Position position,
- int offset);
-
- // Adds a display placement.
- DisplayLayoutBuilder& AddDisplayPlacement(
- const DisplayPlacement& placement);
-
- // Sets the display placement for the secondary display.
- DisplayLayoutBuilder& SetSecondaryPlacement(
- int64_t secondary_id,
- DisplayPlacement::Position position,
- int offset);
-
- // Returns the DisplayLayout. After this call, the builder becomes invalid.
- std::unique_ptr<DisplayLayout> Build();
-
- private:
- std::unique_ptr<DisplayLayout> layout_;
-
- DISALLOW_COPY_AND_ASSIGN(DisplayLayoutBuilder);
-};
-
-} // namespace display
-
-#endif // UI_DISPLAY_MANAGER_DISPLAY_LAYOUT_BUILDER_H_
« no previous file with comments | « ui/display/manager/display_layout.cc ('k') | ui/display/manager/display_layout_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698