| 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 #include "base/memory/weak_ptr.h" | 5 #include "base/memory/weak_ptr.h" |
| 6 #include "mojo/public/cpp/application/application_delegate.h" | 6 #include "mojo/public/cpp/application/application_delegate.h" |
| 7 #include "mojo/public/cpp/application/application_impl.h" | 7 #include "mojo/public/cpp/application/application_impl.h" |
| 8 #include "mojo/public/cpp/application/connect.h" | 8 #include "mojo/public/cpp/application/connect.h" |
| 9 #include "mojo/public/cpp/application/service_provider_impl.h" | 9 #include "mojo/public/cpp/application/service_provider_impl.h" |
| 10 #include "mojo/services/input_events/public/interfaces/input_events.mojom.h" | 10 #include "mojo/services/input_events/public/interfaces/input_events.mojom.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 private: | 41 private: |
| 42 // Overridden from mojo::ApplicationDelegate: | 42 // Overridden from mojo::ApplicationDelegate: |
| 43 void Initialize(mojo::ApplicationImpl* app) override; | 43 void Initialize(mojo::ApplicationImpl* app) override; |
| 44 bool ConfigureIncomingConnection( | 44 bool ConfigureIncomingConnection( |
| 45 mojo::ApplicationConnection* connection) override; | 45 mojo::ApplicationConnection* connection) override; |
| 46 bool ConfigureOutgoingConnection( | 46 bool ConfigureOutgoingConnection( |
| 47 mojo::ApplicationConnection* connection) override; | 47 mojo::ApplicationConnection* connection) override; |
| 48 | 48 |
| 49 // Overridden from mojo::ViewManagerDelegate: | 49 // Overridden from mojo::ViewManagerDelegate: |
| 50 void OnEmbed(mojo::View* root, | 50 void OnEmbed(mojo::View* root, |
| 51 mojo::ServiceProviderImpl* exported_services, | 51 mojo::InterfaceRequest<mojo::ServiceProvider> services, |
| 52 scoped_ptr<mojo::ServiceProvider> imported_services) override; | 52 mojo::ServiceProviderPtr exposed_services) override; |
| 53 void OnViewManagerDisconnected(mojo::ViewManager* view_manager) override; | 53 void OnViewManagerDisconnected(mojo::ViewManager* view_manager) override; |
| 54 | 54 |
| 55 // Overriden from mojo::ViewObserver: | 55 // Overriden from mojo::ViewObserver: |
| 56 void OnViewDestroyed(mojo::View* view) override; | 56 void OnViewDestroyed(mojo::View* view) override; |
| 57 void OnViewBoundsChanged(mojo::View* view, | 57 void OnViewBoundsChanged(mojo::View* view, |
| 58 const mojo::Rect& old_bounds, | 58 const mojo::Rect& old_bounds, |
| 59 const mojo::Rect& new_bounds) override; | 59 const mojo::Rect& new_bounds) override; |
| 60 | 60 |
| 61 // Overridden from InterfaceFactory<Debugger>: | 61 // Overridden from InterfaceFactory<Debugger>: |
| 62 void Create(mojo::ApplicationConnection* connection, | 62 void Create(mojo::ApplicationConnection* connection, |
| 63 mojo::InterfaceRequest<Debugger> request) override; | 63 mojo::InterfaceRequest<Debugger> request) override; |
| 64 | 64 |
| 65 // Overridden from WindowManagerDelegate | 65 // Overridden from WindowManagerDelegate |
| 66 void Embed( | 66 void Embed(const mojo::String& url, |
| 67 const mojo::String& url, | 67 mojo::InterfaceRequest<mojo::ServiceProvider> services, |
| 68 mojo::InterfaceRequest<mojo::ServiceProvider> service_provider) override; | 68 mojo::ServiceProviderPtr exposed_services) override; |
| 69 | 69 |
| 70 scoped_ptr<window_manager::WindowManagerApp> window_manager_app_; | 70 scoped_ptr<window_manager::WindowManagerApp> window_manager_app_; |
| 71 | 71 |
| 72 mojo::View* root_; | 72 mojo::View* root_; |
| 73 mojo::View* content_; | 73 mojo::View* content_; |
| 74 std::string pending_url_; | 74 std::string pending_url_; |
| 75 | 75 |
| 76 scoped_ptr<mojo::ServiceProvider> viewer_services_; | 76 mojo::ServiceProviderPtr viewer_services_; |
| 77 | 77 |
| 78 NavigatorHostFactory navigator_host_factory_; | 78 NavigatorHostFactory navigator_host_factory_; |
| 79 mojo::ServiceProviderImpl exposed_services_impl_; |
| 79 | 80 |
| 80 base::WeakPtrFactory<SkyDebugger> weak_factory_; | 81 base::WeakPtrFactory<SkyDebugger> weak_factory_; |
| 81 | 82 |
| 82 DISALLOW_COPY_AND_ASSIGN(SkyDebugger); | 83 DISALLOW_COPY_AND_ASSIGN(SkyDebugger); |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 } // namespace debugger | 86 } // namespace debugger |
| 86 } // namespace sky | 87 } // namespace sky |
| OLD | NEW |