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

Unified Diff: ui/aura/window_observer.h

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_observer.h
diff --git a/ui/aura/window_observer.h b/ui/aura/window_observer.h
index 926e5c4428a5b25a9ad09b0ae3f713a927b3cb25..41e1caf19444dbbcd6dd4436675c7bba285e2b35 100644
--- a/ui/aura/window_observer.h
+++ b/ui/aura/window_observer.h
@@ -31,6 +31,8 @@ class AURA_EXPORT WindowObserver {
Window* receiver; // The window receiving the notification.
};
+ WindowObserver();
+
// Called when a window is added or removed. Notifications are sent to the
// following hierarchies in this order:
// 1. |target|.
@@ -111,7 +113,20 @@ class AURA_EXPORT WindowObserver {
Window* new_root) {}
protected:
- virtual ~WindowObserver() {}
+ virtual ~WindowObserver();
+
+ private:
+ friend class Window;
+
+ // Called when this is added as an observer on |window|.
+ void OnObservingWindow(Window* window);
+
+ // Called when this is removed from the observers on |window|.
+ void OnUnobservingWindow(Window* window);
+
+ // Tracks the number of windows being observed to track down
+ // http://crbug.com/365364.
+ int observing_;
};
flackr 2014/04/28 17:08:27 This now need DISALLOW_COPY_AND_ASSIGN I think.
sky 2014/04/28 17:18:36 Done.
} // namespace aura
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_observer.cc » ('j') | ui/aura/window_observer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698