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

Unified Diff: ash/display/display_layout_store.h

Issue 2223063003: Move DisplayLayoutStore from ash to ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase/add TODO. Created 4 years, 4 months 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 | « ash/display/display_change_observer_chromeos.cc ('k') | ash/display/display_layout_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_layout_store.h
diff --git a/ash/display/display_layout_store.h b/ash/display/display_layout_store.h
deleted file mode 100644
index 699b8dfb6df3d1eb4ef0dfc1e90ead86a628b845..0000000000000000000000000000000000000000
--- a/ash/display/display_layout_store.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2013 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 ASH_DISPLAY_DISPLAY_LAYOUT_STORE_H_
-#define ASH_DISPLAY_DISPLAY_LAYOUT_STORE_H_
-
-#include <stdint.h>
-
-#include <map>
-#include <memory>
-
-#include "ash/ash_export.h"
-#include "base/macros.h"
-#include "ui/display/manager/display_layout.h"
-
-namespace ash {
-
-class ASH_EXPORT DisplayLayoutStore {
- public:
- DisplayLayoutStore();
- ~DisplayLayoutStore();
-
- void SetDefaultDisplayPlacement(const display::DisplayPlacement& placement);
-
- // Registeres the display layout info for the specified display(s).
- void RegisterLayoutForDisplayIdList(
- const display::DisplayIdList& list,
- std::unique_ptr<display::DisplayLayout> layout);
-
- // If no layout is registered, it creatas new layout using
- // |default_display_layout_|.
- const display::DisplayLayout& GetRegisteredDisplayLayout(
- const display::DisplayIdList& list);
-
- // Update the multi display state in the display layout for
- // |display_list|. This creates new display layout if no layout is
- // registered for |display_list|.
- void UpdateMultiDisplayState(const display::DisplayIdList& display_list,
- bool mirrored,
- bool default_unified);
-
- private:
- // Creates new layout for display list from |default_display_layout_|.
- display::DisplayLayout* CreateDefaultDisplayLayout(
- const display::DisplayIdList& display_list);
-
- // The default display placement.
- display::DisplayPlacement default_display_placement_;
-
- // Display layout per list of devices.
- std::map<display::DisplayIdList, std::unique_ptr<display::DisplayLayout>>
- layouts_;
-
- DISALLOW_COPY_AND_ASSIGN(DisplayLayoutStore);
-};
-
-} // namespace ash
-
-#endif // ASH_DISPLAY_DISPLAY_LAYOUT_STORE_H_
« no previous file with comments | « ash/display/display_change_observer_chromeos.cc ('k') | ash/display/display_layout_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698