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

Unified Diff: services/fake_surfaces/fake_surfaces_service_application.h

Issue 826423008: Use local ids for Surfaces APIs that can only apply to local surfaces (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 5e7934ec774af3929efd619f84ec6c6e056ac970..e807b16b1b4f30726b3228e551bfdad6bd185cf1 100644
--- a/services/fake_surfaces/fake_surfaces_service_application.h
+++ b/services/fake_surfaces/fake_surfaces_service_application.h
@@ -18,7 +18,8 @@ namespace fake_surfaces {
class FakeSurfacesServiceApplication
: public mojo::ApplicationDelegate,
- public mojo::InterfaceFactory<mojo::SurfacesService> {
+ public mojo::InterfaceFactory<mojo::SurfacesService>,
+ public mojo::InterfaceFactory<mojo::Surface> {
public:
FakeSurfacesServiceApplication();
~FakeSurfacesServiceApplication() override;
@@ -32,6 +33,10 @@ class FakeSurfacesServiceApplication
void Create(mojo::ApplicationConnection* connection,
mojo::InterfaceRequest<mojo::SurfacesService> request) override;
+ // InterfaceFactory<mojo::Surface> implementation.
+ void Create(mojo::ApplicationConnection* connection,
+ mojo::InterfaceRequest<mojo::Surface> request) override;
+
private:
uint32_t next_id_namespace_;

Powered by Google App Engine
This is Rietveld 408576698