OLD | NEW |
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_VIEW_MANAGER_VIEW_MANAGER_APP_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_ |
6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "mojo/public/cpp/application/application_delegate.h" | 9 #include "mojo/public/cpp/application/application_delegate.h" |
10 #include "mojo/public/cpp/application/interface_factory.h" | 10 #include "mojo/public/cpp/application/interface_factory.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 public ConnectionManagerDelegate, | 22 public ConnectionManagerDelegate, |
23 public ErrorHandler, | 23 public ErrorHandler, |
24 public InterfaceFactory<ViewManagerService>, | 24 public InterfaceFactory<ViewManagerService>, |
25 public InterfaceFactory<WindowManagerInternalClient> { | 25 public InterfaceFactory<WindowManagerInternalClient> { |
26 public: | 26 public: |
27 ViewManagerApp(); | 27 ViewManagerApp(); |
28 ~ViewManagerApp() override; | 28 ~ViewManagerApp() override; |
29 | 29 |
30 private: | 30 private: |
31 // ApplicationDelegate: | 31 // ApplicationDelegate: |
| 32 void Initialize(ApplicationImpl* app) override; |
32 bool ConfigureIncomingConnection(ApplicationConnection* connection) override; | 33 bool ConfigureIncomingConnection(ApplicationConnection* connection) override; |
33 | 34 |
34 // ConnectionManagerDelegate: | 35 // ConnectionManagerDelegate: |
35 void OnLostConnectionToWindowManager() override; | 36 void OnLostConnectionToWindowManager() override; |
36 ClientConnection* CreateClientConnectionForEmbedAtView( | 37 ClientConnection* CreateClientConnectionForEmbedAtView( |
37 ConnectionManager* connection_manager, | 38 ConnectionManager* connection_manager, |
38 ConnectionSpecificId creator_id, | 39 ConnectionSpecificId creator_id, |
39 const std::string& creator_url, | 40 const std::string& creator_url, |
40 const std::string& url, | 41 const std::string& url, |
41 const ViewId& root_id) override; | 42 const ViewId& root_id) override; |
(...skipping 14 matching lines...) Expand all Loading... |
56 WindowManagerInternalPtr wm_internal_; | 57 WindowManagerInternalPtr wm_internal_; |
57 scoped_ptr<ConnectionManager> connection_manager_; | 58 scoped_ptr<ConnectionManager> connection_manager_; |
58 | 59 |
59 DISALLOW_COPY_AND_ASSIGN(ViewManagerApp); | 60 DISALLOW_COPY_AND_ASSIGN(ViewManagerApp); |
60 }; | 61 }; |
61 | 62 |
62 } // namespace service | 63 } // namespace service |
63 } // namespace mojo | 64 } // namespace mojo |
64 | 65 |
65 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_ | 66 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_ |
OLD | NEW |