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

Unified Diff: ash/aura/aura_layout_manager_adapter.h

Issue 2871813002: Converts remaining usage of WmLayoutManager to aura::LayoutManager (Closed)
Patch Set: cleanup Created 3 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
« no previous file with comments | « ash/BUILD.gn ('k') | ash/aura/aura_layout_manager_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/aura_layout_manager_adapter.h
diff --git a/ash/aura/aura_layout_manager_adapter.h b/ash/aura/aura_layout_manager_adapter.h
deleted file mode 100644
index 9e29f396db494e4f348cc31ea6b499b40a621c15..0000000000000000000000000000000000000000
--- a/ash/aura/aura_layout_manager_adapter.h
+++ /dev/null
@@ -1,52 +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_AURA_AURA_LAYOUT_MANAGER_ADAPTER_H_
-#define ASH_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 {
-
-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:
- AuraLayoutManagerAdapter(aura::Window* window,
- std::unique_ptr<WmLayoutManager> wm_layout_manager);
- ~AuraLayoutManagerAdapter() override;
-
- // Returns the AuraLayoutManagerAdapter installed on |window|, or null if
- // an AuraLayoutManagerAdapter is not installed on |window|.
- static AuraLayoutManagerAdapter* Get(aura::Window* window);
-
- 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:
- aura::Window* window_;
- std::unique_ptr<WmLayoutManager> wm_layout_manager_;
-
- DISALLOW_COPY_AND_ASSIGN(AuraLayoutManagerAdapter);
-};
-
-} // namespace ash
-
-#endif // ASH_AURA_AURA_LAYOUT_MANAGER_ADAPTER_H_
« no previous file with comments | « ash/BUILD.gn ('k') | ash/aura/aura_layout_manager_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698