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

Unified Diff: ash/wm_window.cc

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/wm_window.h ('k') | chrome/browser/chromeos/login/ui/webui_login_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm_window.cc
diff --git a/ash/wm_window.cc b/ash/wm_window.cc
index 186d14e381fc6775ee8adfd28c9a0b19efd711e3..d8387b9099aeed58d0164fba11edc6b82882b593 100644
--- a/ash/wm_window.cc
+++ b/ash/wm_window.cc
@@ -5,7 +5,6 @@
#include "ash/wm_window.h"
#include "ash/ash_constants.h"
-#include "ash/aura/aura_layout_manager_adapter.h"
#include "ash/public/cpp/config.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/public/cpp/window_properties.h"
@@ -20,7 +19,6 @@
#include "ash/wm/window_state.h"
#include "ash/wm/window_state_aura.h"
#include "ash/wm/window_util.h"
-#include "ash/wm_layout_manager.h"
#include "ash/wm_transient_window_observer.h"
#include "base/memory/ptr_util.h"
#include "services/ui/public/interfaces/window_manager_constants.mojom.h"
@@ -309,23 +307,6 @@ bool WmWindow::MoveToEventRoot(const ui::Event& event) {
return ash::wm::MoveWindowToEventRoot(window_, event);
}
-void WmWindow::SetLayoutManager(
- std::unique_ptr<WmLayoutManager> layout_manager) {
- // See ~AuraLayoutManagerAdapter for why SetLayoutManager(nullptr) is called.
- window_->SetLayoutManager(nullptr);
- if (!layout_manager)
- return;
-
- // |window_| takes ownership of AuraLayoutManagerAdapter.
- window_->SetLayoutManager(
- new AuraLayoutManagerAdapter(window_, std::move(layout_manager)));
-}
-
-WmLayoutManager* WmWindow::GetLayoutManager() {
- AuraLayoutManagerAdapter* adapter = AuraLayoutManagerAdapter::Get(window_);
- return adapter ? adapter->wm_layout_manager() : nullptr;
-}
-
void WmWindow::SetVisibilityChangesAnimated() {
::wm::SetWindowVisibilityChangesAnimated(window_);
}
« no previous file with comments | « ash/wm_window.h ('k') | chrome/browser/chromeos/login/ui/webui_login_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698