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

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

Issue 2731663002: Remove WmWindowProperty (Closed)
Patch Set: rebase Created 3 years, 10 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/common/test/test_shelf_delegate.cc ('k') | ash/common/wm/container_finder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/always_on_top_controller.cc
diff --git a/ash/common/wm/always_on_top_controller.cc b/ash/common/wm/always_on_top_controller.cc
index 0758e8a5388ad739d380321e27d71ed0f1df2104..d115f016a653eec0b8dab7a409180d0eb974a50b 100644
--- a/ash/common/wm/always_on_top_controller.cc
+++ b/ash/common/wm/always_on_top_controller.cc
@@ -6,7 +6,6 @@
#include "ash/common/wm/workspace/workspace_layout_manager.h"
#include "ash/common/wm_window.h"
-#include "ash/common/wm_window_property.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "base/memory/ptr_util.h"
#include "ui/aura/client/aura_constants.h"
@@ -31,7 +30,7 @@ AlwaysOnTopController::~AlwaysOnTopController() {
WmWindow* AlwaysOnTopController::GetContainer(WmWindow* window) const {
DCHECK(always_on_top_container_);
- if (window->GetBoolProperty(WmWindowProperty::ALWAYS_ON_TOP))
+ if (window->aura_window()->GetProperty(aura::client::kAlwaysOnTopKey))
return always_on_top_container_;
return always_on_top_container_->GetRootWindow()->GetChildByShellWindowId(
kShellWindowId_DefaultContainer);
« no previous file with comments | « ash/common/test/test_shelf_delegate.cc ('k') | ash/common/wm/container_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698