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

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

Issue 504443002: Update mojo surfaces bindings and mojo/cc/ glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 MOJO_SERVICES_SURFACES_SURFACES_SERVICE_IMPL_H_
6 #define MOJO_SERVICES_SURFACES_SURFACES_SERVICE_IMPL_H_
7
8 #include "base/macros.h"
9 #include "mojo/services/public/interfaces/surfaces/surfaces_service.mojom.h"
10 #include "mojo/services/surfaces/surfaces_impl.h"
11
12 namespace cc {
13 class SurfaceManager;
14 }
15
16 namespace mojo {
17
18 class SurfacesServiceImpl : public InterfaceImpl<SurfacesService> {
19 public:
20 SurfacesServiceImpl(cc::SurfaceManager* manager,
21 uint32_t* next_id_namespace_,
sky 2014/08/22 22:20:09 Document who owns next_id_namespace_.
22 SurfacesImpl::Client* client);
23 virtual ~SurfacesServiceImpl();
24
25 // InterfaceImpl<SurfacesService> implementation.
26 virtual void CreateSurfaceConnection(const mojo::Callback<
27 void(mojo::SurfacePtr, uint32_t)>& callback) OVERRIDE;
28
29 private:
30 cc::SurfaceManager* manager_;
31 uint32_t* next_id_namespace_;
32 SurfacesImpl::Client* client_;
33
34 DISALLOW_COPY_AND_ASSIGN(SurfacesServiceImpl);
35 };
36
37 } // namespace mojo
38
39 #endif // MOJO_SERVICES_SURFACES_SURFACES_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698