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

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

Issue 1552043002: Make Mozart view manager use the new compositor. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-12
Patch Set: Created 4 years, 12 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
Index: services/ui/launcher/launcher_app.h
diff --git a/services/ui/launcher/launcher_app.h b/services/ui/launcher/launcher_app.h
index d614956a969719fcdc71cd98cfa2892794b6dd23..b6b5c2d80719baf67fe153b476af389a3b47c6ae 100644
--- a/services/ui/launcher/launcher_app.h
+++ b/services/ui/launcher/launcher_app.h
@@ -9,8 +9,9 @@
#include "mojo/common/tracing_impl.h"
#include "mojo/public/cpp/application/application_delegate.h"
+#include "mojo/services/gfx/composition/interfaces/compositor.mojom.h"
#include "mojo/services/native_viewport/interfaces/native_viewport.mojom.h"
-#include "mojo/services/surfaces/interfaces/display.mojom.h"
+#include "mojo/services/ui/views/interfaces/view_manager.mojom.h"
#include "mojo/services/ui/views/interfaces/view_provider.mojom.h"
namespace launcher {
@@ -25,30 +26,36 @@ class LauncherApp : public mojo::ApplicationDelegate,
private:
// |ApplicationDelegate|:
- void Initialize(mojo::ApplicationImpl* app) override;
+ void Initialize(mojo::ApplicationImpl* app_impl) override;
// |NativeViewportEventDispatcher|:
void OnEvent(mojo::EventPtr event,
const mojo::Callback<void()>& callback) override;
+ void OnCompositorConnectionError();
+ void OnViewManagerConnectionError();
+
void InitViewport();
void OnViewportConnectionError();
void OnViewportCreated(mojo::ViewportMetricsPtr metrics);
void OnViewportMetricsChanged(mojo::ViewportMetricsPtr metrics);
void RequestUpdatedViewportMetrics();
- void OnViewManagerConnectionError();
-
void LaunchClient(std::string app_url);
void OnClientConnectionError();
void OnClientViewCreated(mojo::ui::ViewTokenPtr view_token);
void UpdateClientView();
+ void Shutdown();
+
mojo::ApplicationImpl* app_impl_;
mojo::TracingImpl tracing_;
- mojo::NativeViewportPtr viewport_service_;
+ mojo::gfx::composition::CompositorPtr compositor_;
+ mojo::ui::ViewManagerPtr view_manager_;
+
+ mojo::NativeViewportPtr viewport_;
mojo::Binding<NativeViewportEventDispatcher>
viewport_event_dispatcher_binding_;

Powered by Google App Engine
This is Rietveld 408576698