| 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 SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_ | 5 #ifndef SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_ |
| 6 #define SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_ | 6 #define 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/common/tracing_impl.h" | 9 #include "mojo/common/tracing_impl.h" |
| 10 #include "mojo/public/cpp/application/application_delegate.h" | 10 #include "mojo/public/cpp/application/application_delegate.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 public mojo::InterfaceFactory<mojo::ViewManagerService>, | 30 public mojo::InterfaceFactory<mojo::ViewManagerService>, |
| 31 public mojo::InterfaceFactory<mojo::WindowManagerInternalClient> { | 31 public mojo::InterfaceFactory<mojo::WindowManagerInternalClient> { |
| 32 public: | 32 public: |
| 33 ViewManagerApp(); | 33 ViewManagerApp(); |
| 34 ~ViewManagerApp() override; | 34 ~ViewManagerApp() override; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 // ApplicationDelegate: | 37 // ApplicationDelegate: |
| 38 void Initialize(mojo::ApplicationImpl* app) override; | 38 void Initialize(mojo::ApplicationImpl* app) override; |
| 39 bool ConfigureIncomingConnection( | 39 bool ConfigureIncomingConnection( |
| 40 mojo::ApplicationConnection* connection) override; | 40 mojo::ApplicationConnection* connection, |
| 41 const std::string& url) override; |
| 41 | 42 |
| 42 // ConnectionManagerDelegate: | 43 // ConnectionManagerDelegate: |
| 43 void OnLostConnectionToWindowManager() override; | 44 void OnLostConnectionToWindowManager() override; |
| 44 ClientConnection* CreateClientConnectionForEmbedAtView( | 45 ClientConnection* CreateClientConnectionForEmbedAtView( |
| 45 ConnectionManager* connection_manager, | 46 ConnectionManager* connection_manager, |
| 46 mojo::InterfaceRequest<mojo::ViewManagerService> service_request, | 47 mojo::InterfaceRequest<mojo::ViewManagerService> service_request, |
| 47 mojo::ConnectionSpecificId creator_id, | 48 mojo::ConnectionSpecificId creator_id, |
| 48 const std::string& creator_url, | 49 const std::string& creator_url, |
| 49 const std::string& url, | 50 const std::string& url, |
| 50 const ViewId& root_id) override; | 51 const ViewId& root_id) override; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 77 mojo::WindowManagerInternalPtr wm_internal_; | 78 mojo::WindowManagerInternalPtr wm_internal_; |
| 78 scoped_ptr<ConnectionManager> connection_manager_; | 79 scoped_ptr<ConnectionManager> connection_manager_; |
| 79 mojo::TracingImpl tracing_; | 80 mojo::TracingImpl tracing_; |
| 80 | 81 |
| 81 DISALLOW_COPY_AND_ASSIGN(ViewManagerApp); | 82 DISALLOW_COPY_AND_ASSIGN(ViewManagerApp); |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace view_manager | 85 } // namespace view_manager |
| 85 | 86 |
| 86 #endif // SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_ | 87 #endif // SERVICES_VIEW_MANAGER_VIEW_MANAGER_APP_H_ |
| OLD | NEW |