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

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

Issue 943053003: Simple multi-url support for mojo apps (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: hate Created 5 years, 9 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
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 SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_ 5 #ifndef SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_
6 #define SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_ 6 #define SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "cc/surfaces/surface_manager.h" 10 #include "cc/surfaces/surface_manager.h"
(...skipping 14 matching lines...) Expand all
25 public mojo::InterfaceFactory<mojo::Surface>, 25 public mojo::InterfaceFactory<mojo::Surface>,
26 public SurfacesImpl::Client, 26 public SurfacesImpl::Client,
27 public SurfacesScheduler::Client { 27 public SurfacesScheduler::Client {
28 public: 28 public:
29 SurfacesServiceApplication(); 29 SurfacesServiceApplication();
30 ~SurfacesServiceApplication() override; 30 ~SurfacesServiceApplication() override;
31 31
32 // ApplicationDelegate implementation. 32 // ApplicationDelegate implementation.
33 void Initialize(mojo::ApplicationImpl* app) override; 33 void Initialize(mojo::ApplicationImpl* app) override;
34 bool ConfigureIncomingConnection( 34 bool ConfigureIncomingConnection(
35 mojo::ApplicationConnection* connection) override; 35 mojo::ApplicationConnection* connection,
36 const std::string& url) override;
36 37
37 // InterfaceFactory<Surface> implementation. 38 // InterfaceFactory<Surface> implementation.
38 void Create(mojo::ApplicationConnection* connection, 39 void Create(mojo::ApplicationConnection* connection,
39 mojo::InterfaceRequest<mojo::Surface> request) override; 40 mojo::InterfaceRequest<mojo::Surface> request) override;
40 41
41 // SurfacesImpl::Client implementation. 42 // SurfacesImpl::Client implementation.
42 void OnVSyncParametersUpdated(base::TimeTicks timebase, 43 void OnVSyncParametersUpdated(base::TimeTicks timebase,
43 base::TimeDelta interval) override; 44 base::TimeDelta interval) override;
44 void FrameSubmitted() override; 45 void FrameSubmitted() override;
45 void SetDisplay(cc::Display*) override; 46 void SetDisplay(cc::Display*) override;
46 void OnDisplayBeingDestroyed(cc::Display* display) override; 47 void OnDisplayBeingDestroyed(cc::Display* display) override;
47 48
48 // SurfacesScheduler::Client 49 // SurfacesScheduler::Client
49 void Draw() override; 50 void Draw() override;
50 51
51 private: 52 private:
52 cc::SurfaceManager manager_; 53 cc::SurfaceManager manager_;
53 uint32_t next_id_namespace_; 54 uint32_t next_id_namespace_;
54 cc::Display* display_; 55 cc::Display* display_;
55 scoped_ptr<SurfacesScheduler> scheduler_; 56 scoped_ptr<SurfacesScheduler> scheduler_;
56 mojo::TracingImpl tracing_; 57 mojo::TracingImpl tracing_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(SurfacesServiceApplication); 59 DISALLOW_COPY_AND_ASSIGN(SurfacesServiceApplication);
59 }; 60 };
60 61
61 } // namespace surfaces 62 } // namespace surfaces
62 63
63 #endif // SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_ 64 #endif // SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698