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

Side by Side Diff: mojo/services/public/cpp/view_manager/view_manager_client_factory.h

Issue 514063003: Update view_manager and window_manager to make use of content handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@viewman2
Patch Set: rebase Created 6 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 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 MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_CLIENT_FACTORY_H_ 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_CLIENT_FACTORY_H_
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_CLIENT_FACTORY_H_ 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_CLIENT_FACTORY_H_
7 7
8 #include "mojo/public/cpp/application/interface_factory.h" 8 #include "mojo/public/cpp/application/interface_factory.h"
9 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" 9 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 12
13 class ViewManagerDelegate; 13 class ViewManagerDelegate;
14 class Shell;
14 15
15 // 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
16 // instantiate ViewManagerClient implementations in response to 17 // instantiate ViewManagerClient implementations in response to
17 // ViewManagerClient requests. 18 // ViewManagerClient requests.
18 class ViewManagerClientFactory : public InterfaceFactory<ViewManagerClient> { 19 class ViewManagerClientFactory : public InterfaceFactory<ViewManagerClient> {
19 public: 20 public:
20 explicit ViewManagerClientFactory(ViewManagerDelegate* delegate); 21 explicit ViewManagerClientFactory(Shell* shell,
darin (slow to review) 2014/09/04 21:33:51 nit: no longer need explicit keyword
Aaron Boodman 2014/09/05 02:41:31 blargh, done.
22 ViewManagerDelegate* delegate);
21 virtual ~ViewManagerClientFactory(); 23 virtual ~ViewManagerClientFactory();
22 24
23 // InterfaceFactory<ViewManagerClient> implementation. 25 // InterfaceFactory<ViewManagerClient> implementation.
24 virtual void Create(ApplicationConnection* connection, 26 virtual void Create(ApplicationConnection* connection,
25 InterfaceRequest<ViewManagerClient> request) 27 InterfaceRequest<ViewManagerClient> request)
26 MOJO_OVERRIDE; 28 MOJO_OVERRIDE;
27 29
28 private: 30 private:
31 Shell* shell_;
29 ViewManagerDelegate* delegate_; 32 ViewManagerDelegate* delegate_;
30 }; 33 };
31 34
32 } // namespace mojo 35 } // namespace mojo
33 36
34 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_CLIENT_FACTORY_H_ 37 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_CLIENT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698