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

Unified Diff: mash/wm/window_layout.h

Issue 1994763002: Wires up WorkspaceLayoutManager in mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 4 years, 7 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
Index: mash/wm/window_layout.h
diff --git a/mash/wm/window_layout.h b/mash/wm/window_layout.h
deleted file mode 100644
index 155933777b097b827627cfc88afac6842e609ee0..0000000000000000000000000000000000000000
--- a/mash/wm/window_layout.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2015 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 MASH_WM_WINDOW_LAYOUT_H_
-#define MASH_WM_WINDOW_LAYOUT_H_
-
-#include <stdint.h>
-
-#include "base/macros.h"
-#include "mash/wm/layout_manager.h"
-
-namespace mash {
-namespace wm {
-
-// Responsible for layout of top level windows.
-class WindowLayout : public LayoutManager {
- public:
- explicit WindowLayout(mus::Window* owner);
- ~WindowLayout() override;
-
- private:
- // Overridden from LayoutManager:
- void LayoutWindow(mus::Window* window) override;
- void OnWindowSharedPropertyChanged(
- mus::Window* window,
- const std::string& name,
- const std::vector<uint8_t>* old_data,
- const std::vector<uint8_t>* new_data) override;
-
- void FitToContainer(mus::Window* window);
- void CenterWindow(mus::Window* window, const gfx::Size& preferred_size);
-
- DISALLOW_COPY_AND_ASSIGN(WindowLayout);
-};
-
-} // namespace wm
-} // namespace mash
-
-#endif // MASH_WM_WINDOW_LAYOUT_H_

Powered by Google App Engine
This is Rietveld 408576698