summaryrefslogtreecommitdiffstats
path: root/ui/aura/window.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-28 00:11:37 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-28 00:11:37 +0000
commit48f36d95451f9d0aa38b1bbe981e07a84436cdc3 (patch)
tree00c8255962c64ae812bc8ca9f2a8fcc9643f66ca /ui/aura/window.cc
parentaa207ab3da9a5bc6a2e69be987d8d930c33cd7ff (diff)
downloadchromium_src-48f36d95451f9d0aa38b1bbe981e07a84436cdc3.zip
chromium_src-48f36d95451f9d0aa38b1bbe981e07a84436cdc3.tar.gz
chromium_src-48f36d95451f9d0aa38b1bbe981e07a84436cdc3.tar.bz2
Add a window parameter to WindowDelegate's OnWindowDestroying/Destroyed methods.
This aligns this aspect of WindowDelegate with WindowObserver, that I hope to replace this part of WD with in the future. It also allows me to clean up a little bit of the DWTH/DNWA interaction (subsequent CL). BUG=none R=sky@chromium.org Review URL: https://codereview.chromium.org/183143006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253983 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/window.cc')
-rw-r--r--ui/aura/window.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index d15b798..bb408a8 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -223,7 +223,7 @@ Window::~Window() {
// Let the delegate know we're in the processing of destroying.
if (delegate_)
- delegate_->OnWindowDestroying();
+ delegate_->OnWindowDestroying(this);
FOR_EACH_OBSERVER(WindowObserver, observers_, OnWindowDestroying(this));
// Let the root know so that it can remove any references to us.
@@ -240,7 +240,7 @@ Window::~Window() {
parent_->RemoveChild(this);
if (delegate_)
- delegate_->OnWindowDestroyed();
+ delegate_->OnWindowDestroyed(this);
ObserverListBase<WindowObserver>::Iterator iter(observers_);
WindowObserver* observer;
while ((observer = iter.GetNext())) {