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

Unified Diff: ash/common/wm/window_dimmer.cc

Issue 2733303004: Removes WmShell::NewWindow() (Closed)
Patch Set: cleanup Created 3 years, 9 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/common/wm/window_dimmer.cc
diff --git a/ash/common/wm/window_dimmer.cc b/ash/common/wm/window_dimmer.cc
index c90d806832fe21d6b24aa82e6689315fee2209f6..d5db58154f00bb0bb352df057d92eae911913fd9 100644
--- a/ash/common/wm/window_dimmer.cc
+++ b/ash/common/wm/window_dimmer.cc
@@ -24,8 +24,9 @@ const float kDefaultDimOpacity = 0.5f;
WindowDimmer::WindowDimmer(WmWindow* parent)
: parent_(parent),
- window_(WmShell::Get()->NewWindow(ui::wm::WINDOW_TYPE_NORMAL,
- ui::LAYER_SOLID_COLOR)) {
+ window_(WmWindow::Get(
+ new aura::Window(nullptr, ui::wm::WINDOW_TYPE_NORMAL))) {
+ window_->aura_window()->Init(ui::LAYER_SOLID_COLOR);
window_->SetVisibilityChangesAnimated();
window_->SetVisibilityAnimationType(
::wm::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE);

Powered by Google App Engine
This is Rietveld 408576698