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

Unified Diff: ui/aura/window_destruction_observer.h

Issue 22254003: Nukes aura::WindowDestructionObserver. It's effectively the same as (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | « ui/aura/window.cc ('k') | ui/aura/window_destruction_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_destruction_observer.h
diff --git a/ui/aura/window_destruction_observer.h b/ui/aura/window_destruction_observer.h
deleted file mode 100644
index ef0ded6581071d4181f161e8c26a9b40f6d9325e..0000000000000000000000000000000000000000
--- a/ui/aura/window_destruction_observer.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_AURA_WINDOW_DESTRUCTION_OBSERVER_H_
-#define UI_AURA_WINDOW_DESTRUCTION_OBSERVER_H_
-
-#include <set>
-
-#include "ui/aura/aura_export.h"
-#include "ui/aura/window.h"
-#include "ui/aura/window_observer.h"
-
-namespace aura {
-
-// A class for observing window (self) destruction. A side effect of a
-// window member funtion may be that the object, i.e. |this|, gets
-// deleted. This class can be used to detect such cases and to exit
-// the member function without any further access to member data. See
-// for example: aura::Window::NotifyWindowVisibilityChangedAtReceiver.
-
-class AURA_EXPORT WindowDestructionObserver : public WindowObserver {
- public:
- // Addes this observer to window.
- explicit WindowDestructionObserver(aura::Window* window);
-
- // Removes this observer from |window_| unless |window_| has been
- // observed to be destroyed.
- virtual ~WindowDestructionObserver();
-
- // Returns true if |window_| has been observed to be destroyed.
- bool destroyed() const { return destroyed_; }
-
- private:
- // aura::WindowObserver overrides:
- virtual void OnWindowDestroyed(Window* window) OVERRIDE;
-
- Window* window_;
- bool destroyed_;
-
- DISALLOW_COPY_AND_ASSIGN(WindowDestructionObserver);
-};
-
-} // namespace aura
-
-#endif
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_destruction_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698