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

Unified Diff: ui/aura/window_tracker.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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 | « ui/aura/window_targeter_unittest.cc ('k') | ui/aura/window_tracker.cc » ('j') | 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
deleted file mode 100644
index 3a9650e4102078085407a6ec0376de22d7101ff3..0000000000000000000000000000000000000000
--- a/ui/aura/window_tracker.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_AURA_WINDOW_TRACKER_H_
-#define UI_AURA_WINDOW_TRACKER_H_
-
-#include <set>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ui/aura/aura_export.h"
-#include "ui/aura/window_observer.h"
-
-namespace aura {
-
-// This class keeps track of a set of windows. A Window is removed either
-// 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);
-
- // Removes |window| from the set of windows being tracked.
- void Remove(Window* window);
-
- // Returns true if |window| was previously added and has not been removed or
- // deleted.
- bool Contains(Window* window);
-
- // WindowObserver overrides:
- virtual void OnWindowDestroying(Window* window) override;
-
- private:
- Windows windows_;
-
- DISALLOW_COPY_AND_ASSIGN(WindowTracker);
-};
-
-} // namespace aura
-
-#endif // UI_AURA_WINDOW_TRACKER_H_
« no previous file with comments | « ui/aura/window_targeter_unittest.cc ('k') | ui/aura/window_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698