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

Unified Diff: services/view_manager/server_view_drawn_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 | « services/view_manager/server_view_delegate.h ('k') | services/view_manager/server_view_drawn_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/view_manager/server_view_drawn_tracker.h
diff --git a/services/view_manager/server_view_drawn_tracker.h b/services/view_manager/server_view_drawn_tracker.h
deleted file mode 100644
index 4c90390887f78cdf556bce224888aefc5ba944e5..0000000000000000000000000000000000000000
--- a/services/view_manager/server_view_drawn_tracker.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2015 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 SERVICES_VIEW_MANAGER_SERVER_VIEW_DRAWN_TRACKER_H_
-#define SERVICES_VIEW_MANAGER_SERVER_VIEW_DRAWN_TRACKER_H_
-
-#include <set>
-
-#include "base/basictypes.h"
-#include "services/view_manager/server_view_observer.h"
-
-namespace view_manager {
-
-class ServerViewDrawnTrackerObserver;
-
-// ServerViewDrawnTracker notifies its observer any time the drawn state of
-// the supplied view changes.
-//
-// NOTE: you must ensure this class is destroyed before the root.
-class ServerViewDrawnTracker : public ServerViewObserver {
- public:
- ServerViewDrawnTracker(ServerView* root,
- ServerView* view,
- ServerViewDrawnTrackerObserver* observer);
- ~ServerViewDrawnTracker() override;
-
- ServerView* view() { return view_; }
-
- private:
- void SetDrawn(ServerView* ancestor, bool drawn);
-
- // Adds |this| as an observer to |view_| and its ancestors.
- void AddObservers();
-
- // Stops observerving any views we added as an observer in AddObservers().
- void RemoveObservers();
-
- // ServerViewObserver:
- void OnViewDestroyed(ServerView* view) override;
- void OnViewHierarchyChanged(ServerView* view,
- ServerView* new_parent,
- ServerView* old_parent) override;
- void OnViewVisibilityChanged(ServerView* view) override;
-
- ServerView* root_;
- ServerView* view_;
- ServerViewDrawnTrackerObserver* observer_;
- bool drawn_;
- // Set of views we're observing. This is |view_| and all its ancestors.
- std::set<ServerView*> views_;
-
- DISALLOW_COPY_AND_ASSIGN(ServerViewDrawnTracker);
-};
-
-} // namespace view_manager
-
-#endif // SERVICES_VIEW_MANAGER_SERVER_VIEW_DRAWN_TRACKER_H_
« no previous file with comments | « services/view_manager/server_view_delegate.h ('k') | services/view_manager/server_view_drawn_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698