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

Side by Side Diff: components/view_manager/public/cpp/view_manager_client_factory.h

Issue 1138073007: Nukes the windowmanager interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CLIENT_FACTORY_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CLIENT_FACTORY_H_
6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CLIENT_FACTORY_H_ 6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CLIENT_FACTORY_H_
7 7
8 #include "components/view_manager/public/interfaces/view_manager.mojom.h" 8 #include "components/view_manager/public/interfaces/view_manager.mojom.h"
9 #include "mojo/application/public/cpp/interface_factory.h" 9 #include "mojo/application/public/cpp/interface_factory.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 12
13 class ViewManagerDelegate; 13 class ViewManagerDelegate;
14 class Shell; 14 class Shell;
15 15
16 // Add an instance of this class to an incoming connection to allow it to 16 // Add an instance of this class to an incoming connection to allow it to
17 // instantiate ViewManagerClient implementations in response to 17 // instantiate ViewManagerClient implementations in response to
18 // ViewManagerClient requests. 18 // ViewManagerClient requests.
19 class ViewManagerClientFactory : public InterfaceFactory<ViewManagerClient> { 19 class ViewManagerClientFactory : public InterfaceFactory<ViewManagerClient> {
20 public: 20 public:
21 ViewManagerClientFactory(Shell* shell, ViewManagerDelegate* delegate); 21 ViewManagerClientFactory(Shell* shell, ViewManagerDelegate* delegate);
22 ~ViewManagerClientFactory() override; 22 ~ViewManagerClientFactory() override;
23 23
24 // Creates a ViewManagerClient from the supplied arguments. Returns ownership
25 // to the caller.
26 static ViewManagerClient* WeakBindViewManagerToPipe(
27 InterfaceRequest<ViewManagerClient> request,
28 ViewManagerServicePtr view_manager_service,
29 Shell* shell,
30 ViewManagerDelegate* delegate);
31
32 // InterfaceFactory<ViewManagerClient> implementation. 24 // InterfaceFactory<ViewManagerClient> implementation.
33 void Create(ApplicationConnection* connection, 25 void Create(ApplicationConnection* connection,
34 InterfaceRequest<ViewManagerClient> request) override; 26 InterfaceRequest<ViewManagerClient> request) override;
35 27
36 private: 28 private:
37 Shell* shell_; 29 Shell* shell_;
38 ViewManagerDelegate* delegate_; 30 ViewManagerDelegate* delegate_;
39 }; 31 };
40 32
41 } // namespace mojo 33 } // namespace mojo
42 34
43 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CLIENT_FACTORY_H_ 35 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CLIENT_FACTORY_H_
OLDNEW
« no previous file with comments | « components/view_manager/public/cpp/lib/view_manager_init.cc ('k') | components/view_manager/public/cpp/view_manager_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698