~vanvugt/mir/fix-1226139

« back to all changes in this revision

Viewing changes to include/server/mir/graphics/nested/nested_platform.h

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2013-09-10 14:56:00 UTC
  • mfrom: (1046.2.16 mir3)
  • Revision ID: tarmac-20130910145600-jyffmrqic0e0h48m
graphics: Hook up nested surfaces events to input.

Approved by PS Jenkins bot, Alexandros Frantzis, Kevin DuBois.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
namespace mir
27
27
{
 
28
namespace input { class EventFilter; }
28
29
namespace graphics
29
30
{
30
31
namespace nested
33
34
class NestedPlatform : public Platform
34
35
{
35
36
public:
36
 
    NestedPlatform(std::shared_ptr<HostConnection> const& connection,
37
 
                   std::shared_ptr<DisplayReport> const& display_report,
38
 
                   std::shared_ptr<NativePlatform> const& native_platform);
 
37
    NestedPlatform(
 
38
        std::shared_ptr<HostConnection> const& connection,
 
39
        std::shared_ptr<input::EventFilter> const& event_handler,
 
40
        std::shared_ptr<DisplayReport> const& display_report,
 
41
        std::shared_ptr<NativePlatform> const& native_platform);
39
42
 
40
43
    ~NestedPlatform() noexcept;
41
44
    std::shared_ptr<GraphicBufferAllocator> create_buffer_allocator(
49
52
 
50
53
private:
51
54
    std::shared_ptr<NativePlatform> const native_platform;
 
55
    std::shared_ptr<input::EventFilter> const event_handler;
52
56
    std::shared_ptr<DisplayReport> const display_report;
53
57
    std::shared_ptr<HostConnection> const connection;
54
58
};