Index: components/view_manager/public/cpp/view_tracker.h |
diff --git a/components/view_manager/public/cpp/view_tracker.h b/components/view_manager/public/cpp/view_tracker.h |
deleted file mode 100644 |
index ed1a0d287dbc918e4c0b8601a0f1be794f773e27..0000000000000000000000000000000000000000 |
--- a/components/view_manager/public/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 COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_ |
-#define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_ |
- |
-#include <stdint.h> |
-#include <set> |
- |
-#include "components/view_manager/public/cpp/view_observer.h" |
-#include "third_party/mojo/src/mojo/public/cpp/system/macros.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 // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_ |