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

Unified Diff: ash/wm/aura/aura_layout_manager_adapter.h

Issue 2035543004: Shuffles and renames ash/common/wm classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: random changes for chrome tests Created 4 years, 6 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: ash/wm/aura/aura_layout_manager_adapter.h
diff --git a/ash/wm/aura/aura_layout_manager_adapter.h b/ash/wm/aura/aura_layout_manager_adapter.h
deleted file mode 100644
index e5e7ac45a1333dab7a5c4c2d54e39e7ac9d6655f..0000000000000000000000000000000000000000
--- a/ash/wm/aura/aura_layout_manager_adapter.h
+++ /dev/null
@@ -1,49 +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 ASH_WM_AURA_AURA_LAYOUT_MANAGER_ADAPTER_H_
-#define ASH_WM_AURA_AURA_LAYOUT_MANAGER_ADAPTER_H_
-
-#include <memory>
-
-#include "ash/ash_export.h"
-#include "base/macros.h"
-#include "ui/aura/layout_manager.h"
-
-namespace ash {
-namespace wm {
-
-class WmLayoutManager;
-
-// AuraLayoutManagerAdapter is an aura::LayoutManager that calls to
-// WmLayoutManager. Use it when you have a WmLayoutManager you want to use
-// with an aura::Window.
-class ASH_EXPORT AuraLayoutManagerAdapter : public aura::LayoutManager {
- public:
- explicit AuraLayoutManagerAdapter(
- std::unique_ptr<WmLayoutManager> wm_layout_manager);
- ~AuraLayoutManagerAdapter() override;
-
- WmLayoutManager* wm_layout_manager() { return wm_layout_manager_.get(); }
-
- // aura::LayoutManager:
- void OnWindowResized() override;
- void OnWindowAddedToLayout(aura::Window* child) override;
- void OnWillRemoveWindowFromLayout(aura::Window* child) override;
- void OnWindowRemovedFromLayout(aura::Window* child) override;
- void OnChildWindowVisibilityChanged(aura::Window* child,
- bool visible) override;
- void SetChildBounds(aura::Window* child,
- const gfx::Rect& requested_bounds) override;
-
- private:
- std::unique_ptr<WmLayoutManager> wm_layout_manager_;
-
- DISALLOW_COPY_AND_ASSIGN(AuraLayoutManagerAdapter);
-};
-
-} // namespace wm
-} // namespace ash
-
-#endif // ASH_WM_AURA_AURA_LAYOUT_MANAGER_ADAPTER_H_

Powered by Google App Engine
This is Rietveld 408576698