~brandontschaefer/mir/first-round-deprecation

« back to all changes in this revision

Viewing changes to include/server/mir/input/seat_observer.h

  • Committer: Brandon Schaefer
  • Date: 2016-12-13 17:59:30 UTC
  • mfrom: (3787.1.93 development-branch)
  • Revision ID: brandon.schaefer@canonical.com-20161213175930-j9o7qn0b11n3kzlm
* Merge trunk, fix conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 */
18
18
 
19
19
 
20
 
#ifndef MIR_INPUT_SEAT_REPORT_H_
21
 
#define MIR_INPUT_SEAT_REPORT_H_
 
20
#ifndef MIR_INPUT_SEAT_OBSERVER_H_
 
21
#define MIR_INPUT_SEAT_OBSERVER_H_
22
22
 
23
23
#include <string>
24
24
#include <vector>
34
34
}
35
35
namespace input
36
36
{
37
 
class SeatReport
 
37
class SeatObserver
38
38
{
39
39
public:
40
 
    virtual ~SeatReport() = default;
 
40
    virtual ~SeatObserver() = default;
41
41
    
42
42
    virtual void seat_add_device(uint64_t id) = 0;
43
43
    virtual void seat_remove_device(uint64_t id) = 0;
44
 
    virtual void seat_dispatch_event(MirEvent const& event) = 0;
 
44
    virtual void seat_dispatch_event(MirEvent const* event) = 0;
45
45
    virtual void seat_get_rectangle_for(uint64_t id, geometry::Rectangle const& out_rect) = 0;
46
46
    virtual void seat_set_key_state(uint64_t id, std::vector<uint32_t> const& scan_codes) = 0;
47
47
    virtual void seat_set_pointer_state(uint64_t id, unsigned buttons) = 0;
52
52
}
53
53
}
54
54
 
55
 
#endif /* MIR_INPUT_SEAT_REPORT_H_ */
 
55
#endif /* MIR_INPUT_SEAT_OBSERVER_H_ */