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

Side by Side Diff: services/surfaces/surfaces_service_impl.h

Issue 882083003: Remove mojo.SurfacesService interface in favor of mojo.Surface directly (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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_SURFACES_SURFACES_SERVICE_IMPL_H_
6 #define SERVICES_SURFACES_SURFACES_SERVICE_IMPL_H_
7
8 #include "base/macros.h"
9 #include "mojo/public/cpp/bindings/strong_binding.h"
10 #include "mojo/services/surfaces/public/interfaces/surfaces_service.mojom.h"
11 #include "services/surfaces/surfaces_impl.h"
12
13 namespace cc {
14 class SurfaceManager;
15 }
16
17 namespace surfaces {
18
19 class SurfacesServiceImpl : public mojo::SurfacesService {
20 public:
21 // The instances pointed to by |manager|, |next_id_namespace| and |client| are
22 // owned by the caller and must outlive the SurfacesServiceImpl instance.
23 SurfacesServiceImpl(cc::SurfaceManager* manager,
24 uint32_t* next_id_namespace,
25 SurfacesImpl::Client* client,
26 mojo::InterfaceRequest<mojo::SurfacesService> request);
27
28 ~SurfacesServiceImpl() override;
29
30 // SurfacesService implementation.
31 void CreateSurfaceConnection(
32 const mojo::Callback<void(mojo::SurfacePtr, uint32_t)>& callback)
33 override;
34
35 private:
36 cc::SurfaceManager* manager_;
37 uint32_t* next_id_namespace_;
38 SurfacesImpl::Client* client_;
39 mojo::StrongBinding<SurfacesService> binding_;
40
41 DISALLOW_COPY_AND_ASSIGN(SurfacesServiceImpl);
42 };
43
44 } // namespace surfaces
45
46 #endif // SERVICES_SURFACES_SURFACES_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « services/surfaces/surfaces_service_application.cc ('k') | services/surfaces/surfaces_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698