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

Unified Diff: components/view_manager/public/cpp/view_tree_delegate.h

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 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
Index: components/view_manager/public/cpp/view_tree_delegate.h
diff --git a/components/view_manager/public/cpp/view_tree_delegate.h b/components/view_manager/public/cpp/view_tree_delegate.h
deleted file mode 100644
index 4a9edc77effadf876d5de00aeb1ee8a5912a08bc..0000000000000000000000000000000000000000
--- a/components/view_manager/public/cpp/view_tree_delegate.h
+++ /dev/null
@@ -1,63 +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_TREE_DELEGATE_H_
-#define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_TREE_DELEGATE_H_
-
-#include <string>
-
-#include "components/view_manager/public/interfaces/view_tree.mojom.h"
-#include "mojo/application/public/interfaces/service_provider.mojom.h"
-#include "mojo/services/network/public/interfaces/url_loader.mojom.h"
-
-namespace mojo {
-
-class View;
-class ViewTreeConnection;
-
-// Interface implemented by an application using the view manager.
-//
-// Each call to OnEmbed() results in a new ViewTreeConnection and new root View.
-// ViewTreeConnection is deleted by any of the following:
-// . If the root of the connection is destroyed. This happens if the owner
-// of the root Embed()s another app in root, or the owner explicitly deletes
-// root.
-// . The connection to the view manager is lost.
-// . Explicitly by way of calling delete.
-//
-// When the ViewTreeConnection is deleted all views are deleted (and observers
-// notified). This is followed by notifying the delegate by way of
-// OnConnectionLost().
-class ViewTreeDelegate {
- public:
- // Called when the application implementing this interface is embedded at
- // |root|.
- //
- // |services| exposes the services offered by the embedder to the delegate.
- //
- // |exposed_services| is an object that the delegate can add services to
- // expose to the embedder.
- //
- // Note that if a different application is subsequently embedded at |root|,
- // the pipes connecting |services| and |exposed_services| to the embedder and
- // any services obtained from them are not broken and will continue to be
- // valid.
- virtual void OnEmbed(View* root) = 0;
-
- // Sent when another app is embedded in the same View as this connection.
- // Subsequently the root View and this object are destroyed (observers are
- // notified appropriately).
- virtual void OnUnembed();
-
- // Called from the destructor of ViewTreeConnection after all the Views have
- // been destroyed. |connection| is no longer valid after this call.
- virtual void OnConnectionLost(ViewTreeConnection* connection) = 0;
-
- protected:
- virtual ~ViewTreeDelegate() {}
-};
-
-} // namespace mojo
-
-#endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_TREE_DELEGATE_H_
« no previous file with comments | « components/view_manager/public/cpp/view_tree_connection.h ('k') | components/view_manager/public/cpp/view_tree_host_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698