Merge lp:~alan-griffiths/qtmir/small-refactoring-of-MirWindowManager into lp:qtmir
| Status: | Merged |
|---|---|
| Approved by: | Gerry Boland on 2015-09-29 |
| Approved revision: | 358 |
| Merged at revision: | 392 |
| Proposed branch: | lp:~alan-griffiths/qtmir/small-refactoring-of-MirWindowManager |
| Merge into: | lp:qtmir |
| Prerequisite: | lp:~alan-griffiths/qtmir/use-WindowManager |
| Diff against target: |
261 lines (+99/-79) 4 files modified
CMakeLists.txt (+1/-1) src/platforms/mirserver/mirserver.cpp (+2/-2) src/platforms/mirserver/mirwindowmanager.cpp (+92/-41) src/platforms/mirserver/mirwindowmanager.h (+4/-35) |
| To merge this branch: | bzr merge lp:~alan-griffiths/qtmir/small-refactoring-of-MirWindowManager |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gerry Boland | 2015-08-03 | Approve on 2015-09-29 | |
| PS Jenkins bot | continuous-integration | Approve on 2015-09-28 | |
|
Review via email:
|
|||
Commit Message
Opaquify MirWindowManager to control visibility of upcoming Window Management work
Description of the Change
Opaquify MirWindowManager to control visibility of upcoming Window Management work
- 352. By Alan Griffiths on 2015-08-03
-
Also pass the focus controller (will need it later)
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:352
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
| Gerry Boland (gerboland) wrote : | # |
+auto MirWindowManage
am not a fan of using "auto" unless the type is completely unmistakeably obvious. Here I can't quite deduce, is it a bool to say surface was added successfully? Or a shared/unique pointer to that new surface? Or a list of surfaces?
The C++ committee and I don't agree on some things just yet ;)
+auto MirWindowManage
For consistency I'd prefer you avoid this new C++ syntax. Few are comfortable with it at the moment IMO.
Are those the only reasons for using C++14?
I'm open to a good argument saying why it'll be good to use, but the only reason I can really see for using auto in function definitions is if we'd like to use duck-typing in C++, which isn't necessary here IMO.
| Alan Griffiths (alan-griffiths) wrote : | # |
> +auto MirWindowManage
> am not a fan of using "auto" unless the type is completely unmistakeably
> obvious. Here I can't quite deduce, is it a bool to say surface was added
> successfully? Or a shared/unique pointer to that new surface? Or a list of
> surfaces?
>
> The C++ committee and I don't agree on some things just yet ;)
>
> +auto MirWindowManage
> For consistency I'd prefer you avoid this new C++ syntax. Few are comfortable
> with it at the moment IMO.
>
> Are those the only reasons for using C++14?
No, those are all C++11. The use of C++14 is:
+ return std::make_
| Alan Griffiths (alan-griffiths) wrote : | # |
> +auto MirWindowManage
> am not a fan of using "auto" unless the type is completely unmistakeably
> obvious. Here I can't quite deduce, is it a bool to say surface was added
> successfully? Or a shared/unique pointer to that new surface? Or a list of
> surfaces?
FWIW That's preexisting - see line 98
- 353. By Alan Griffiths on 2015-09-04
-
merge --weave lp:qtmir
- 354. By Alan Griffiths on 2015-09-04
-
Old fashioned function definitions for Gerry
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:354
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 355. By Alan Griffiths on 2015-09-07
-
No change for Jenkns
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:355
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Alan Griffiths (alan-griffiths) wrote : | # |
The following packages have unmet dependencies:
udev : Depends: libudev1 (= 225-1ubuntu1) but 225-1ubuntu2 is to be installed.
| Gerry Boland (gerboland) wrote : | # |
+ static auto create(
+ mir::shell:
+ const std::shared_
+ -> std::unique_
We still have one new-fangled definition here.
- 356. By Alan Griffiths on 2015-09-09
-
If at first Gerry's not happy, try again...
| Alan Griffiths (alan-griffiths) wrote : | # |
> + static auto create(
> + mir::shell:
> + const std::shared_
> + -> std::unique_
> We still have one new-fangled definition here.
that's a declaration. :^)
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:356
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 357. By Alan Griffiths on 2015-09-24
-
merge lp:qtmir
- 358. By Alan Griffiths on 2015-09-28
-
merge lp:qtmir
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:358
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

PASSED: Continuous integration, rev:351 jenkins. qa.ubuntu. com/job/ qtmir-ci/ 335/ jenkins. qa.ubuntu. com/job/ qtmir-wily- amd64-ci/ 68 jenkins. qa.ubuntu. com/job/ qtmir-wily- armhf-ci/ 68 jenkins. qa.ubuntu. com/job/ qtmir-wily- armhf-ci/ 68/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/qtmir- ci/335/ rebuild
http://