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

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

Issue 790623003: Restructure public side of view_manager service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: BUILD.gn file reorderings Created 6 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
Index: mojo/services/public/cpp/view_manager/view_manager.h
diff --git a/mojo/services/public/cpp/view_manager/view_manager.h b/mojo/services/public/cpp/view_manager/view_manager.h
deleted file mode 100644
index 25862459d42f1e25ad0939f967eacb1a21c07184..0000000000000000000000000000000000000000
--- a/mojo/services/public/cpp/view_manager/view_manager.h
+++ /dev/null
@@ -1,37 +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_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_
-#define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_
-
-#include <string>
-#include <vector>
-
-#include "mojo/services/public/cpp/view_manager/types.h"
-
-namespace mojo {
-class View;
-
-// Encapsulates a connection to the view manager service.
-// A unique connection is made for every unique embed path for an app. e.g. for
-// app B embed by the following paths: A->B, A->C->B - there are two connections
-// and thus two instances of this class.
-class ViewManager {
- public:
- // Returns the URL of the application that embedded this application.
- virtual const std::string& GetEmbedderURL() const = 0;
-
- // Returns all root views known to this connection.
- virtual const std::vector<View*>& GetRoots() const = 0;
-
- // Returns a View known to this connection.
- virtual View* GetViewById(Id id) = 0;
-
- protected:
- virtual ~ViewManager() {}
-};
-
-} // namespace mojo
-
-#endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_
« no previous file with comments | « mojo/services/public/cpp/view_manager/view.h ('k') | mojo/services/public/cpp/view_manager/view_manager_client_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698