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

Unified Diff: ash/aura/wm_window_aura.cc

Issue 2103913003: Converts MaximizeModeWindowManager to use ash/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@maximize_mode_event_handler
Patch Set: fix chrome Created 4 years, 6 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/aura/wm_window_aura.h ('k') | ash/common/wm_root_window_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_window_aura.cc
diff --git a/ash/aura/wm_window_aura.cc b/ash/aura/wm_window_aura.cc
index cbe38c76f4abda90a00b4c9023d32fe6ab6116ab..ade5c2cd3c718ae72f94f44b718df266a7af5e1f 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -86,6 +86,10 @@ WmWindowAura::WmWindowAura(aura::Window* window)
window_->SetProperty(kWmWindowKey, this);
}
+WmWindowAura::~WmWindowAura() {
+ window_->RemoveObserver(this);
+}
+
// static
const WmWindow* WmWindowAura::Get(const aura::Window* window) {
if (!window)
@@ -639,8 +643,8 @@ void WmWindowAura::RemoveObserver(WmWindowObserver* observer) {
observers_.RemoveObserver(observer);
}
-WmWindowAura::~WmWindowAura() {
- window_->RemoveObserver(this);
+bool WmWindowAura::HasObserver(const WmWindowObserver* observer) const {
+ return observers_.HasObserver(observer);
}
void WmWindowAura::OnWindowHierarchyChanging(
« no previous file with comments | « ash/aura/wm_window_aura.h ('k') | ash/common/wm_root_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698