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

Unified Diff: mojo/services/view_manager/cpp/view_tracker.h

Issue 1530333005: Delete the ViewManager and WindowManager services. (Closed) Base URL: git@github.com:domokit/mojo.git@cl-2c
Patch Set: rebase Created 5 years 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 | « mojo/services/view_manager/cpp/view_property.h ('k') | mojo/services/view_manager/cpp/view_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/cpp/view_tracker.h
diff --git a/mojo/services/view_manager/cpp/view_tracker.h b/mojo/services/view_manager/cpp/view_tracker.h
deleted file mode 100644
index 572e535ff3f9584a3c35f57be435c6c13574ea0e..0000000000000000000000000000000000000000
--- a/mojo/services/view_manager/cpp/view_tracker.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2014 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 MOJO_SERVICES_VIEW_MANAGER_CPP_VIEW_TRACKER_H_
-#define MOJO_SERVICES_VIEW_MANAGER_CPP_VIEW_TRACKER_H_
-
-#include <stdint.h>
-#include <set>
-
-#include "mojo/public/cpp/system/macros.h"
-#include "view_manager/cpp/view_observer.h"
-
-namespace mojo {
-
-class ViewTracker : public ViewObserver {
- public:
- using Views = std::set<View*>;
-
- ViewTracker();
- ~ViewTracker() override;
-
- // Returns the set of views being observed.
- const std::set<View*>& views() const { return views_; }
-
- // Adds |view| to the set of Views being tracked.
- void Add(View* view);
-
- // Removes |view| from the set of views being tracked.
- void Remove(View* view);
-
- // Returns true if |view| was previously added and has not been removed or
- // deleted.
- bool Contains(View* view);
-
- // ViewObserver overrides:
- void OnViewDestroying(View* view) override;
-
- private:
- Views views_;
-
- MOJO_DISALLOW_COPY_AND_ASSIGN(ViewTracker);
-};
-
-} // namespace mojo
-
-#endif // MOJO_SERVICES_VIEW_MANAGER_CPP_VIEW_TRACKER_H_
« no previous file with comments | « mojo/services/view_manager/cpp/view_property.h ('k') | mojo/services/view_manager/cpp/view_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698