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

Unified Diff: components/view_manager/public/cpp/view_tree_connection.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_connection.h
diff --git a/components/view_manager/public/cpp/view_tree_connection.h b/components/view_manager/public/cpp/view_tree_connection.h
deleted file mode 100644
index 31324349dd8359e5b0eb27cda1cac0ef3639edab..0000000000000000000000000000000000000000
--- a/components/view_manager/public/cpp/view_tree_connection.h
+++ /dev/null
@@ -1,53 +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_CONNECTION_H_
-#define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_TREE_CONNECTION_H_
-
-#include <string>
-
-#include "components/view_manager/public/cpp/types.h"
-#include "components/view_manager/public/interfaces/view_tree.mojom.h"
-#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
-
-namespace mojo {
-class View;
-class ViewTreeDelegate;
-
-// Encapsulates a connection to a view tree. A unique connection is made
-// every time an app is embedded.
-class ViewTreeConnection {
- public:
- virtual ~ViewTreeConnection() {}
-
- // The returned ViewTreeConnection instance owns itself, and is deleted when
- // the last root is destroyed or the connection to the service is broken.
- static ViewTreeConnection* Create(
- ViewTreeDelegate* delegate,
- InterfaceRequest<ViewTreeClient> request);
-
- // Returns the root of this connection.
- virtual View* GetRoot() = 0;
-
- // Returns a View known to this connection.
- virtual View* GetViewById(Id id) = 0;
-
- // Returns the focused view; null if focus is not yet known or another app is
- // focused.
- virtual View* GetFocusedView() = 0;
-
- // Creates and returns a new View (which is owned by the ViewManager). Views
- // are initially hidden, use SetVisible(true) to show.
- virtual View* CreateView() = 0;
-
- // Returns true if ACCESS_POLICY_EMBED_ROOT was specified.
- virtual bool IsEmbedRoot() = 0;
-
- // Returns the id for this connection.
- virtual ConnectionSpecificId GetConnectionId() = 0;
-};
-
-} // namespace mojo
-
-#endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_TREE_CONNECTION_H_
« no previous file with comments | « components/view_manager/public/cpp/view_tracker.cc ('k') | components/view_manager/public/cpp/view_tree_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698