~mir-team/mir/x11-multi-window

« back to all changes in this revision

Viewing changes to tests/include/mir/test/doubles/stub_input_surface.h

  • Committer: Andreas Pokorny
  • Date: 2017-02-15 14:45:41 UTC
  • mto: This revision was merged to the branch mainline in revision 4036.
  • Revision ID: andreas.pokorny@canonical.com-20170215144541-f0i749qairmbt9yv
mirserver: remove android-input and mirserver parts no longer neede

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
struct StubInputSurface : public mir::input::Surface
34
34
{
35
 
    StubInputSurface(std::shared_ptr<mir::input::InputChannel> const& channel)
36
 
        : channel(channel)
37
 
    {
38
 
    }
39
35
    StubInputSurface()
40
 
        : channel(nullptr)
41
 
    {
42
 
    }
43
 
 
44
 
    std::shared_ptr<mir::input::InputChannel> input_channel() const
45
 
    {
46
 
        return channel;
 
36
    {
47
37
    }
48
38
 
49
39
    mir::input::InputReceptionMode reception_mode() const { return mir::input::InputReceptionMode::normal; }
51
41
    std::string name() const { return {}; }
52
42
    mir::geometry::Rectangle input_bounds() const override { return {{},{}}; }
53
43
    bool input_area_contains(mir::geometry::Point const&) const { return false; }
54
 
    
 
44
 
55
45
    std::shared_ptr<graphics::CursorImage> cursor_image() const { return nullptr; }
56
 
 
57
 
    std::shared_ptr<mir::input::InputChannel> const channel;
58
46
};
59
47
 
60
48
}