| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MANDOLINE_UI_PHONE_UI_PHONE_BROWSER_APPLICATION_DELEGATE_H_ | 5 #ifndef MANDOLINE_UI_PHONE_UI_PHONE_BROWSER_APPLICATION_DELEGATE_H_ |
| 6 #define MANDOLINE_UI_PHONE_UI_PHONE_BROWSER_APPLICATION_DELEGATE_H_ | 6 #define MANDOLINE_UI_PHONE_UI_PHONE_BROWSER_APPLICATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "components/mus/public/cpp/window_observer.h" | 10 #include "components/mus/public/cpp/window_observer.h" |
| 11 #include "components/mus/public/cpp/window_tree_delegate.h" | 11 #include "components/mus/public/cpp/window_tree_delegate.h" |
| 12 #include "components/mus/public/interfaces/view_tree_host.mojom.h" | 12 #include "components/mus/public/interfaces/window_tree_host.mojom.h" |
| 13 #include "components/web_view/public/cpp/web_view.h" | 13 #include "components/web_view/public/cpp/web_view.h" |
| 14 #include "components/web_view/public/interfaces/web_view.mojom.h" | 14 #include "components/web_view/public/interfaces/web_view.mojom.h" |
| 15 // TODO(beng): move this file somewhere common. | 15 // TODO(beng): move this file somewhere common. |
| 16 #include "mandoline/ui/desktop_ui/public/interfaces/launch_handler.mojom.h" | 16 #include "mandoline/ui/desktop_ui/public/interfaces/launch_handler.mojom.h" |
| 17 #include "mojo/application/public/cpp/application_delegate.h" | 17 #include "mojo/application/public/cpp/application_delegate.h" |
| 18 #include "mojo/application/public/cpp/interface_factory.h" | 18 #include "mojo/application/public/cpp/interface_factory.h" |
| 19 #include "mojo/common/weak_binding_set.h" | 19 #include "mojo/common/weak_binding_set.h" |
| 20 | 20 |
| 21 namespace mus { | 21 namespace mus { |
| 22 class View; | 22 class View; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 int32_t count, | 64 int32_t count, |
| 65 bool final_update) override {} | 65 bool final_update) override {} |
| 66 void FindInPageSelectionUpdated(int32_t request_id, | 66 void FindInPageSelectionUpdated(int32_t request_id, |
| 67 int32_t active_match_ordinal) override {} | 67 int32_t active_match_ordinal) override {} |
| 68 | 68 |
| 69 // Overridden from mojo::InterfaceFactory<LaunchHandler>: | 69 // Overridden from mojo::InterfaceFactory<LaunchHandler>: |
| 70 void Create(mojo::ApplicationConnection* connection, | 70 void Create(mojo::ApplicationConnection* connection, |
| 71 mojo::InterfaceRequest<LaunchHandler> request) override; | 71 mojo::InterfaceRequest<LaunchHandler> request) override; |
| 72 | 72 |
| 73 mojo::ApplicationImpl* app_; | 73 mojo::ApplicationImpl* app_; |
| 74 mojo::ViewTreeHostPtr host_; | 74 mus::mojom::WindowTreeHostPtr host_; |
| 75 | 75 |
| 76 mus::Window* root_; | 76 mus::Window* root_; |
| 77 mus::Window* content_; | 77 mus::Window* content_; |
| 78 web_view::WebView web_view_; | 78 web_view::WebView web_view_; |
| 79 | 79 |
| 80 mojo::String default_url_; | 80 mojo::String default_url_; |
| 81 | 81 |
| 82 mojo::WeakBindingSet<LaunchHandler> launch_handler_bindings_; | 82 mojo::WeakBindingSet<LaunchHandler> launch_handler_bindings_; |
| 83 | 83 |
| 84 DISALLOW_COPY_AND_ASSIGN(PhoneBrowserApplicationDelegate); | 84 DISALLOW_COPY_AND_ASSIGN(PhoneBrowserApplicationDelegate); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace mandoline | 87 } // namespace mandoline |
| 88 | 88 |
| 89 #endif // MANDOLINE_UI_PHONE_UI_PHONE_BROWSER_APPLICATION_DELEGATE_H_ | 89 #endif // MANDOLINE_UI_PHONE_UI_PHONE_BROWSER_APPLICATION_DELEGATE_H_ |
| OLD | NEW |