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

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

Issue 504443002: Update mojo surfaces bindings and mojo/cc/ glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gn fixes 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_ 5 #ifndef MOJO_SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_
6 #define MOJO_SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_ 6 #define MOJO_SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/surfaces/surface_manager.h" 9 #include "cc/surfaces/surface_manager.h"
10 #include "mojo/public/cpp/application/application_delegate.h" 10 #include "mojo/public/cpp/application/application_delegate.h"
11 #include "mojo/public/cpp/application/interface_factory.h"
12 #include "mojo/services/public/interfaces/surfaces/surfaces_service.mojom.h"
11 #include "mojo/services/surfaces/surfaces_impl.h" 13 #include "mojo/services/surfaces/surfaces_impl.h"
12 14
13 namespace mojo { 15 namespace mojo {
14 class ApplicationConnection; 16 class ApplicationConnection;
15 17
16 class SurfacesServiceApplication : public ApplicationDelegate, 18 class SurfacesServiceApplication : public ApplicationDelegate,
17 public InterfaceFactory<Surface>, 19 public InterfaceFactory<SurfacesService>,
18 public SurfacesImpl::Client { 20 public SurfacesImpl::Client {
19 public: 21 public:
20 SurfacesServiceApplication(); 22 SurfacesServiceApplication();
21 virtual ~SurfacesServiceApplication(); 23 virtual ~SurfacesServiceApplication();
22 24
23 // ApplicationDelegate implementation. 25 // ApplicationDelegate implementation.
24 virtual bool ConfigureIncomingConnection( 26 virtual bool ConfigureIncomingConnection(
25 ApplicationConnection* connection) OVERRIDE; 27 ApplicationConnection* connection) OVERRIDE;
26 28
27 // InterfaceFactory<Surface> implementation. 29 // InterfaceFactory<SurfacsServicee> implementation.
28 virtual void Create(ApplicationConnection* connection, 30 virtual void Create(ApplicationConnection* connection,
29 InterfaceRequest<Surface> request) OVERRIDE; 31 InterfaceRequest<SurfacesService> request) OVERRIDE;
30 32
31 // SurfacesImpl::Client implementation. 33 // SurfacesImpl::Client implementation.
32 virtual void FrameSubmitted() OVERRIDE; 34 virtual void FrameSubmitted() OVERRIDE;
33 virtual void SetDisplay(cc::Display*) OVERRIDE; 35 virtual void SetDisplay(cc::Display*) OVERRIDE;
34 36
35 private: 37 private:
36 cc::SurfaceManager manager_; 38 cc::SurfaceManager manager_;
37 uint32_t next_id_namespace_; 39 uint32_t next_id_namespace_;
38 cc::Display* display_; 40 cc::Display* display_;
39 41
40 DISALLOW_COPY_AND_ASSIGN(SurfacesServiceApplication); 42 DISALLOW_COPY_AND_ASSIGN(SurfacesServiceApplication);
41 }; 43 };
42 44
43 } // namespace mojo 45 } // namespace mojo
44 46
45 #endif // MOJO_SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_ 47 #endif // MOJO_SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_
OLDNEW
« no previous file with comments | « mojo/services/surfaces/surfaces_impl.cc ('k') | mojo/services/surfaces/surfaces_service_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698