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

Unified Diff: ash/wm/common/dock/docked_window_layout_manager.cc

Issue 1943603002: Makes ash/wm/common a library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again 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: ash/wm/common/dock/docked_window_layout_manager.cc
diff --git a/ash/wm/common/dock/docked_window_layout_manager.cc b/ash/wm/common/dock/docked_window_layout_manager.cc
index 8368cd3574aa36f84f742565869e507958631c4b..9a9434492baa15438cfb2c6c040ff87b2d66e828 100644
--- a/ash/wm/common/dock/docked_window_layout_manager.cc
+++ b/ash/wm/common/dock/docked_window_layout_manager.cc
@@ -12,6 +12,7 @@
#include "ash/wm/common/window_resizer.h"
#include "ash/wm/common/window_state.h"
#include "ash/wm/common/wm_globals.h"
+#include "ash/wm/common/wm_lookup.h"
#include "ash/wm/common/wm_root_window_controller.h"
#include "ash/wm/common/wm_shell_window_ids.h"
#include "ash/wm/common/wm_window.h"
@@ -133,7 +134,7 @@ class DockedBackgroundWidget : public views::Widget,
this, parent->GetShellWindowId(), &params);
Init(params);
SetVisibilityChangedAnimationsEnabled(false);
- wm::WmWindow* wm_window = wm::WmWindow::Get(this);
+ wm::WmWindow* wm_window = wm::WmLookup::Get()->GetWindowForWidget(this);
wm_window->SetLockedToRoot(true);
opaque_background_.SetColor(SK_ColorBLACK);
opaque_background_.SetBounds(gfx::Rect(GetWindowBoundsInScreen().size()));
« no previous file with comments | « ash/wm/common/dock/docked_window_layout_manager.h ('k') | ash/wm/common/dock/docked_window_layout_manager_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698