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 |