~raof/mir/prober-drm-device-probe

« back to all changes in this revision

Viewing changes to include/mir/frontend/application_proxy.h

  • Committer: Kevin DuBois
  • Date: 2012-11-13 01:36:29 UTC
  • mfrom: (245 trunk)
  • mto: This revision was merged to the branch mainline in revision 246.
  • Revision ID: kevin.dubois@canonical.com-20121113013629-q4496w4mp5e33auk
merge in base branch. move the demo clients to a new directory, examples/

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
{
31
31
namespace surfaces
32
32
{
33
 
class ApplicationSurfaceOrganiser;
34
33
class Surface;
35
34
}
36
35
 
44
43
{
45
44
class ResourceCache;
46
45
class ApplicationListener;
 
46
class ApplicationSessionFactory;
 
47
class ApplicationSession;
47
48
 
48
49
// ApplicationProxy relays requests from the client into the server process.
49
50
class ApplicationProxy : public mir::protobuf::DisplayServer
51
52
public:
52
53
 
53
54
    ApplicationProxy(
54
 
        std::shared_ptr<surfaces::ApplicationSurfaceOrganiser> const& surface_organiser,
 
55
        std::shared_ptr<frontend::ApplicationSessionFactory> const& session_factory,
55
56
        std::shared_ptr<graphics::Platform> const & graphics_platform,
56
57
        std::shared_ptr<graphics::Display> const& graphics_display,
57
58
        std::shared_ptr<ApplicationListener> const& listener,
89
90
    int next_id();
90
91
 
91
92
    std::string app_name;
92
 
    std::shared_ptr<surfaces::ApplicationSurfaceOrganiser> surface_organiser;
 
93
    std::shared_ptr<frontend::ApplicationSessionFactory> session_factory;
93
94
    std::shared_ptr<graphics::Platform> const graphics_platform;
94
95
    std::shared_ptr<graphics::Display> const graphics_display;
95
96
    std::shared_ptr<ApplicationListener> const listener;
99
100
    typedef std::map<int, std::weak_ptr<surfaces::Surface>> Surfaces;
100
101
    Surfaces surfaces;
101
102
    std::shared_ptr<ResourceCache> resource_cache;
 
103
 
 
104
    std::shared_ptr<frontend::ApplicationSession> application_session;
102
105
};
103
106
 
104
107
}