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

Side by Side Diff: ui/aura/window_destruction_observer.cc

Issue 12929002: Observe for window's (self) deletion during activation/focus change (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 years, 9 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698