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

Unified Diff: ui/aura/window.cc

Issue 257023002: Adds back some debugging code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another ref Created 6 years, 8 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
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 98808ddc2b84aa2946e30ec3835c7c1239ba08a1..36a305f6aced08db7ba5a90433a19057018b623d 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -636,10 +636,12 @@ gfx::NativeCursor Window::GetCursor(const gfx::Point& point) const {
}
void Window::AddObserver(WindowObserver* observer) {
+ observer->OnObservingWindow(this);
observers_.AddObserver(observer);
}
void Window::RemoveObserver(WindowObserver* observer) {
+ observer->OnUnobservingWindow(this);
observers_.RemoveObserver(observer);
}
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/window_observer.h » ('j') | ui/aura/window_observer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698