Merge lp:~mir-team/mir/add-non-input-event-ctors-and-port-event-sinks into lp:mir
| Status: | Merged |
|---|---|
| Approved by: | Cemil Azizoglu on 2015-01-27 |
| Approved revision: | 2253 |
| Merged at revision: | 2267 |
| Proposed branch: | lp:~mir-team/mir/add-non-input-event-ctors-and-port-event-sinks |
| Merge into: | lp:mir |
| Prerequisite: | lp:~mir-team/mir/add-event-deprecation-guard |
| Diff against target: |
417 lines (+182/-65) 11 files modified
common-ABI-sha1sums (+2/-0) include/common/mir/events/event_builders.h (+48/-0) include/common/mir/frontend/surface_id.h (+4/-4) platform-ABI-sha1sums (+2/-0) server-ABI-sha1sums (+2/-1) src/common/CMakeLists.txt (+2/-1) src/common/events/CMakeLists.txt (+21/-0) src/common/events/event_builders.cpp (+82/-0) src/common/symbols.map (+7/-0) src/server/scene/application_session.cpp (+6/-22) src/server/scene/surface_event_source.cpp (+6/-37) |
| To merge this branch: | bzr merge lp:~mir-team/mir/add-non-input-event-ctors-and-port-event-sinks |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Approve on 2015-01-27 | |
| Cemil Azizoglu (community) | Approve on 2015-01-26 | ||
| Kevin DuBois (community) | Approve on 2015-01-26 | ||
| Alan Griffiths | 2015-01-21 | Needs Fixing on 2015-01-23 | |
|
Review via email:
|
|||
Commit Message
Introduce event builders to hide direct access to MirEvent
Description of the Change
Introduce some event builder functions and port some code to them. If there is support for this approach I will continue as follows:
1. Port rest of Mir code, e.g. tests to this function to remove a few more requires..
2. Define input-event-
Once event access is down to only the new headers, and the event builder header, then the underlying structure will be replaced without client API break.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:2243
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:2244
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Alan Griffiths (alan-griffiths) wrote : | # |
49 +std::shared_
50 +std::shared_
51 +std::shared_
52 +std::shared_
53 +std::shared_
Using these is horribly verbose. Look:
340 + event_sink-
C.f.
event_
353 + event_sink-
C.f.
event_
| Robert Carr (robertcarr) wrote : | # |
Hi Alan, Thanks. Addressed :)
| Robert Carr (robertcarr) wrote : | # |
Had to move SurfaceId in to mircommon incidentally....the input event builders need to be in mircommon for the client input receiver...
| Robert Carr (robertcarr) wrote : | # |
I just want to emphasize that these are a temporary solution in order to complete the transition.
| Robert Carr (robertcarr) wrote : | # |
At which point the MirEvent struct can be replaced by a sensible C++ implementation with constructors and such, opaque to the client library.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2249
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Alan Griffiths (alan-griffiths) wrote : | # |
No technical issues, just copyright theft:
73 - * Copyright © 2013 Canonical Ltd.
74 + * Copyright © 2015 Canonical Ltd.
...
91 - * Authored By: Robert Carr <email address hidden>
92 + * Authored by: Kevin DuBois <email address hidden>
93 */
These changes are hardly justified when the body of the file is unchanged. (Just a different license.)
| Kevin DuBois (kdub) wrote : | # |
lgtm, apart from what Alan brought up, will contingently approve!
| Robert Carr (robertcarr) wrote : | # |
>> No technical issues, just copyright theft:
And I almost got away with it!!
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:2252
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
- 2253. By Robert Carr on 2015-01-27
-
Merge trunk
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:2253
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

FAILED: Continuous integration, rev:2242 jenkins. qa.ubuntu. com/job/ mir-ci/ 2730/ jenkins. qa.ubuntu. com/job/ mir-android- vivid-i386- build/951/ console jenkins. qa.ubuntu. com/job/ mir-clang- vivid-amd64- build/951/ console jenkins. qa.ubuntu. com/job/ mir-mediumtests -vivid- touch/913/ console jenkins. qa.ubuntu. com/job/ mir-vivid- amd64-ci/ 727/console jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- vivid-armhf/ 913/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/mir- ci/2730/ rebuild
http://