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

Unified Diff: mojo/services/view_manager/view_manager_app.h

Issue 774473003: Move view_manager service implementation to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/view_manager/view_manager_app.h
diff --git a/mojo/services/view_manager/view_manager_app.h b/mojo/services/view_manager/view_manager_app.h
deleted file mode 100644
index 271287eaf88b3ec0dbc79138489712aba5d98077..0000000000000000000000000000000000000000
--- a/mojo/services/view_manager/view_manager_app.h
+++ /dev/null
@@ -1,65 +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_VIEW_MANAGER_VIEW_MANAGER_APP_H_
-#define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "mojo/public/cpp/application/application_delegate.h"
-#include "mojo/public/cpp/application/interface_factory.h"
-#include "mojo/public/cpp/bindings/binding.h"
-#include "mojo/public/cpp/bindings/error_handler.h"
-#include "mojo/services/public/interfaces/window_manager/window_manager_internal.mojom.h"
-#include "mojo/services/view_manager/connection_manager_delegate.h"
-
-namespace mojo {
-namespace service {
-
-class ConnectionManager;
-
-class ViewManagerApp : public ApplicationDelegate,
- public ConnectionManagerDelegate,
- public ErrorHandler,
- public InterfaceFactory<ViewManagerService>,
- public InterfaceFactory<WindowManagerInternalClient> {
- public:
- ViewManagerApp();
- ~ViewManagerApp() override;
-
- private:
- // ApplicationDelegate:
- bool ConfigureIncomingConnection(ApplicationConnection* connection) override;
-
- // ConnectionManagerDelegate:
- void OnLostConnectionToWindowManager() override;
- ClientConnection* CreateClientConnectionForEmbedAtView(
- ConnectionManager* connection_manager,
- ConnectionSpecificId creator_id,
- const std::string& creator_url,
- const std::string& url,
- const ViewId& root_id) override;
-
- // InterfaceFactory<ViewManagerService>:
- void Create(ApplicationConnection* connection,
- InterfaceRequest<ViewManagerService> request) override;
-
- // InterfaceFactory<WindowManagerInternalClient>:
- void Create(ApplicationConnection* connection,
- InterfaceRequest<WindowManagerInternalClient> request) override;
-
- // ErrorHandler (for |wm_internal_| and |wm_internal_client_binding_|).
- void OnConnectionError() override;
-
- ApplicationConnection* wm_app_connection_;
- scoped_ptr<Binding<WindowManagerInternalClient>> wm_internal_client_binding_;
- WindowManagerInternalPtr wm_internal_;
- scoped_ptr<ConnectionManager> connection_manager_;
-
- DISALLOW_COPY_AND_ASSIGN(ViewManagerApp);
-};
-
-} // namespace service
-} // namespace mojo
-
-#endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_

Powered by Google App Engine
This is Rietveld 408576698