OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/aura/window_destruction_observer.h" |
| 6 |
| 7 namespace aura { |
| 8 |
| 9 WindowDestructionObserver::WindowDestructionObserver() { |
| 10 } |
| 11 |
| 12 WindowDestructionObserver::~WindowDestructionObserver() { |
| 13 } |
| 14 |
| 15 bool WindowDestructionObserver::was_destroyed(const Window* window) const { |
| 16 return destroyed_windows_.find(window) != destroyed_windows_.end(); |
| 17 } |
| 18 |
| 19 void WindowDestructionObserver::OnWindowDestroyed(Window* window) { |
| 20 destroyed_windows_.insert(window); |
| 21 } |
| 22 |
| 23 } // namespace aura |
OLD | NEW |