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

Unified Diff: services/fake_surfaces/fake_surfaces_service_application.h

Issue 940293003: Add a Display and ContextProvider concept to mojom, use to recreate (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/fake_surfaces/fake_surfaces_service_application.h
diff --git a/services/fake_surfaces/fake_surfaces_service_application.h b/services/fake_surfaces/fake_surfaces_service_application.h
index 9058cff0e5c3e8232379cc543b20eeea94cfb883..43a7c048b6aa630546f1e40d4416fe27fb579fa8 100644
--- a/services/fake_surfaces/fake_surfaces_service_application.h
+++ b/services/fake_surfaces/fake_surfaces_service_application.h
@@ -9,6 +9,7 @@
#include "mojo/common/tracing_impl.h"
#include "mojo/public/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/interface_factory.h"
+#include "mojo/services/surfaces/public/interfaces/display.mojom.h"
#include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h"
namespace mojo {
@@ -19,6 +20,7 @@ namespace fake_surfaces {
class FakeSurfacesServiceApplication
: public mojo::ApplicationDelegate,
+ public mojo::InterfaceFactory<mojo::DisplayFactory>,
public mojo::InterfaceFactory<mojo::Surface> {
public:
FakeSurfacesServiceApplication();
@@ -29,6 +31,10 @@ class FakeSurfacesServiceApplication
bool ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) override;
+ // InterfaceFactory<mojo::DisplayFactory> implementation.
+ void Create(mojo::ApplicationConnection* connection,
+ mojo::InterfaceRequest<mojo::DisplayFactory> request) override;
+
// InterfaceFactory<mojo::Surface> implementation.
void Create(mojo::ApplicationConnection* connection,
mojo::InterfaceRequest<mojo::Surface> request) override;
« no previous file with comments | « mojo/services/surfaces/public/interfaces/surfaces.mojom ('k') | services/fake_surfaces/fake_surfaces_service_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698