| 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/public/cpp/view_manager/view_manager.h" | 10 #include "mojo/services/public/cpp/view_manager/view_manager.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 mojo::View* root, | 50 mojo::View* root, |
| 51 mojo::ServiceProviderImpl* exported_services, | 51 mojo::ServiceProviderImpl* exported_services, |
| 52 scoped_ptr<mojo::ServiceProvider> imported_services) override; | 52 scoped_ptr<mojo::ServiceProvider> imported_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 void OnViewInputEvent(mojo::View* view, const mojo::EventPtr& event) override; | |
| 61 | 60 |
| 62 // Overridden from InterfaceFactory<Debugger>: | 61 // Overridden from InterfaceFactory<Debugger>: |
| 63 void Create(mojo::ApplicationConnection* connection, | 62 void Create(mojo::ApplicationConnection* connection, |
| 64 mojo::InterfaceRequest<Debugger> request) override; | 63 mojo::InterfaceRequest<Debugger> request) override; |
| 65 | 64 |
| 66 scoped_ptr<mojo::WindowManagerApp> window_manager_app_; | 65 scoped_ptr<mojo::WindowManagerApp> window_manager_app_; |
| 67 | 66 |
| 68 mojo::ViewManager* view_manager_; | 67 mojo::ViewManager* view_manager_; |
| 69 mojo::View* root_; | 68 mojo::View* root_; |
| 70 mojo::View* content_; | 69 mojo::View* content_; |
| 71 std::string pending_url_; | 70 std::string pending_url_; |
| 72 | 71 |
| 73 scoped_ptr<mojo::ServiceProvider> viewer_services_; | 72 scoped_ptr<mojo::ServiceProvider> viewer_services_; |
| 74 | 73 |
| 75 NavigatorHostFactory navigator_host_factory_; | 74 NavigatorHostFactory navigator_host_factory_; |
| 76 | 75 |
| 77 base::WeakPtrFactory<SkyDebugger> weak_factory_; | 76 base::WeakPtrFactory<SkyDebugger> weak_factory_; |
| 78 | 77 |
| 79 DISALLOW_COPY_AND_ASSIGN(SkyDebugger); | 78 DISALLOW_COPY_AND_ASSIGN(SkyDebugger); |
| 80 }; | 79 }; |
| 81 | 80 |
| 82 } // namespace debugger | 81 } // namespace debugger |
| 83 } // namespace sky | 82 } // namespace sky |
| OLD | NEW |