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

Unified Diff: ui/aura/window_tracker.h

Issue 10963045: Makes closing a fullscreen window refocus the window it came from. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tracker.h
diff --git a/ui/aura/window_tracker.h b/ui/aura/window_tracker.h
index c11ac4b3d8f82778ac2a3e4bb1573b4f7680cdf0..960549a047405024ac10d8be18a1b42425ecda5a 100644
--- a/ui/aura/window_tracker.h
+++ b/ui/aura/window_tracker.h
@@ -18,9 +18,14 @@ namespace aura {
// explicitly by Remove(), or implicitly when the window is destroyed.
class AURA_EXPORT WindowTracker : public WindowObserver {
public:
+ typedef std::set<Window*> Windows;
+
WindowTracker();
virtual ~WindowTracker();
+ // Returns the set of windows being observed.
+ const std::set<Window*>& windows() const { return windows_; }
+
// Adds |window| to the set of Windows being tracked.
void Add(Window* window);
@@ -35,8 +40,6 @@ class AURA_EXPORT WindowTracker : public WindowObserver {
virtual void OnWindowDestroying(Window* window) OVERRIDE;
private:
- typedef std::set<Window*> Windows;
-
Windows windows_;
DISALLOW_COPY_AND_ASSIGN(WindowTracker);
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698