Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Unified Diff: services/ui/launcher/launch_instance.h

Issue 2003003002: Update launcher API. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/launcher/BUILD.gn ('k') | services/ui/launcher/launch_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/launcher/launch_instance.h
diff --git a/services/ui/launcher/launch_instance.h b/services/ui/launcher/launch_instance.h
index 6a9c71bd2c189fe78a9eeb385b8855290e6770ff..9e63db054f934107fafaf2d01f2ee1d1fac06997 100644
--- a/services/ui/launcher/launch_instance.h
+++ b/services/ui/launcher/launch_instance.h
@@ -15,6 +15,7 @@
#include "mojo/services/native_viewport/interfaces/native_viewport.mojom.h"
#include "mojo/services/native_viewport/interfaces/native_viewport_event_dispatcher.mojom.h"
#include "mojo/services/ui/views/interfaces/view_manager.mojom.h"
+#include "mojo/services/ui/views/interfaces/view_provider.mojom.h"
namespace launcher {
@@ -23,7 +24,8 @@ class LauncherViewTree;
class LaunchInstance : public mojo::NativeViewportEventDispatcher {
public:
LaunchInstance(mojo::ApplicationImpl* app_impl,
- const std::string& app_url,
+ mojo::NativeViewportPtr viewport,
+ mojo::ui::ViewProviderPtr view_provider,
mojo::gfx::composition::Compositor* compositor,
mojo::ui::ViewManager* view_manager,
const base::Closure& shutdown_callback);
@@ -43,13 +45,13 @@ class LaunchInstance : public mojo::NativeViewportEventDispatcher {
void RequestUpdatedViewportMetrics();
mojo::ApplicationImpl* app_impl_;
- std::string app_url_;
+ mojo::NativeViewportPtr viewport_;
+ mojo::ui::ViewProviderPtr view_provider_;
mojo::gfx::composition::Compositor* compositor_;
mojo::ui::ViewManager* view_manager_;
base::Closure shutdown_callback_;
- mojo::NativeViewportPtr viewport_;
mojo::Binding<NativeViewportEventDispatcher>
viewport_event_dispatcher_binding_;
« no previous file with comments | « services/ui/launcher/BUILD.gn ('k') | services/ui/launcher/launch_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698