Merge lp:~mterry/unity8/no-touch-no-lifecycle into lp:unity8
| Status: | Superseded |
|---|---|
| Proposed branch: | lp:~mterry/unity8/no-touch-no-lifecycle |
| Merge into: | lp:unity8 |
| Diff against target: |
1734 lines (+670/-256) 31 files modified
debian/control (+1/-1) plugins/Utils/windowstatestorage.cpp (+62/-23) plugins/Utils/windowstatestorage.h (+13/-1) qml/Components/Orientations.qml (+29/-0) qml/Components/WindowControlButtons.qml (+3/-0) qml/DeviceConfiguration.qml (+91/-71) qml/OrientedShell.qml (+32/-22) qml/Panel/Panel.qml (+5/-3) qml/Shell.qml (+8/-12) qml/Stages/AbstractStage.qml (+63/-0) qml/Stages/DesktopStage.qml (+14/-24) qml/Stages/PhoneStage.qml (+21/-34) qml/Stages/ShimStage.qml (+1/-1) qml/Stages/SpreadDelegate.qml (+8/-9) qml/Stages/TabletStage.qml (+24/-36) qml/Stages/WindowResizeArea.qml (+38/-7) tests/mocks/GSettings.1.0/fake_gsettings.cpp (+31/-0) tests/mocks/GSettings.1.0/fake_gsettings.h (+10/-0) tests/mocks/Unity/Application/ApplicationInfo.cpp (+12/-0) tests/mocks/Unity/Application/ApplicationInfo.h (+4/-0) tests/mocks/Unity/Application/ApplicationManager.cpp (+9/-0) tests/mocks/Unity/Application/ApplicationManager.h (+1/-1) tests/mocks/Utils/windowstatestorage.cpp (+17/-0) tests/mocks/Utils/windowstatestorage.h (+12/-0) tests/plugins/Unity/Launcher/launchermodeltest.cpp (+1/-0) tests/qmltests/Stages/tst_PhoneStage.qml (+0/-2) tests/qmltests/Stages/tst_SpreadDelegate.qml (+6/-2) tests/qmltests/Stages/tst_TabletStage.qml (+2/-2) tests/qmltests/Stages/tst_WindowResizeArea.qml (+35/-2) tests/qmltests/tst_OrientedShell.qml (+1/-1) tests/qmltests/tst_Shell.qml (+116/-2) |
| To merge this branch: | bzr merge lp:~mterry/unity8/no-touch-no-lifecycle |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-10-28 | |
| Gerry Boland | Needs Fixing on 2015-10-15 | ||
| Andrea Cimitan (community) | 2015-09-29 | Needs Fixing on 2015-10-08 | |
|
Review via email:
|
|||
This proposal has been superseded by a proposal from 2015-10-27.
Commit Message
Set lifecycle policy ourselves, instead of letting qtmir do it for us and allow non-Touch apps to opt-out of the Touch lifecycle.
This requires using the new isTouchApp unity-api property to ApplicationInfo
Now that qtmir won't decide policy for suspending anymore, we take over the interpretation of the lifecycleException GSettings key. Since the GSettings key for that was registered under the qtmir namespace (and there's no technical reason to migrate settings), I left the schema in qtmir itself. We merely consume it.
Description of the Change
Set lifecycle policy ourselves, instead of letting qtmir do it for us and allow non-Touch apps to opt-out of the Touch lifecycle.
This requires using the new isTouchApp unity-api property to ApplicationInfo
Now that qtmir won't decide policy for suspending anymore, we take over the interpretation of the lifecycleException GSettings key. Since the GSettings key for that was registered under the qtmir namespace (and there's no technical reason to migrate settings), I left the schema in qtmir itself. We merely consume it.
== Checklist ==
* Are there any related MPs required for this MP to build/function as expected? Please list.
- https:/
- https:/
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
* Did you make sure that your branch does not contain spurious tags?
Yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
I'm a member of that team.
* If you changed the UI, has there been a design review?
NA
- 1990. By Michael Terry on 2015-10-01
-
Update to drop canSuspend and simply request different states based on info we have
- 1991. By Michael Terry on 2015-10-01
-
Add AbstractStage item to hold shared stage code
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1990
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1991
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 1992. By Michael Terry on 2015-10-08
-
Drop down to sdk 1.2
| Michael Terry (mterry) wrote : | # |
> 1.2 for now
Done.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1992
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Gerry Boland (gerboland) wrote : | # |
=== added file 'qml/graphics/
Binary files qml/graphics/
Why did that change?
| Gerry Boland (gerboland) wrote : | # |
=== added file 'qml/Stages/
Instead of destroying and re-creating the GSettings instance when Stage changes, could this file be a Singleton shared by all Stages?
+Rectangle {
This looks like a useless rectangle, no color is set. It could be a QtObject, if you weren't inheriting from it.
Oh, I see why the LibreOffice icon. Please ignore above comment
| Gerry Boland (gerboland) wrote : | # |
+ !model.isTouchApp
+ || isExemptFromLif
I think it would improve readability to make a quick boolean property :
canSuspend: model.isTouchApp && !isExemptFromLi
- 1993. By Michael Terry on 2015-10-15
-
Address review comments; consolidate some shared stage code
| Michael Terry (mterry) wrote : | # |
> === added file 'qml/Stages/
> Instead of destroying and re-creating the GSettings instance when
> Stage changes, could this file be a Singleton shared by all Stages?
It could be, sure, but I wasn't in the mindset of optimizing for Stage changes. What about the hundred other objects that get destroyed & created in that case? Are GSettings instances particularly expensive (honest question)?
> +Rectangle {
> This looks like a useless rectangle, no color is set. It could be
> a QtObject, if you weren't inheriting from it.
Fair point. I was trying to avoid unrelated changes by not merging common Stage code. I've done that now, and consolidated the color: settings as well as the public API for stages (which various of the Stage implementations didn't fully implement!).
> + !model.isTouchApp
> + || isExemptFromLif
> I think it would improve readability to make a quick boolean property :
> canSuspend: model.isTouchApp && !isExemptFromLi
Good point. Done.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1993
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 1994. By Michael Terry on 2015-10-27
-
Go back to using 1.3
- 1995. By Michael Terry on 2015-10-27
-
Merge new_fix_upsidedown branch
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1994
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 1996. By Michael Terry on 2015-10-28
-
Break test apart
- 1997. By Michael Terry on 2015-10-28
-
Also confirm that app no longer has focus
- 1998. By Michael Terry on 2015-10-28
-
Add quick clarifying comment
- 1999. By Michael Terry on 2015-10-30
-
Bump shell application version
- 2000. By Michael Terry on 2015-10-30
-
Bump shell application version harder
- 2001. By Michael Terry on 2015-11-03
-
Whoops, remove testing changes

FAILED: Continuous integration, rev:1989 jenkins. qa.ubuntu. com/job/ unity8- ci/6394/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 4443/console jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- wily-touch/ 772/console jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- vivid/1106/ console jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- wily/424/ console jenkins. qa.ubuntu. com/job/ unity8- vivid-amd64- ci/1001/ console jenkins. qa.ubuntu. com/job/ unity8- vivid-i386- ci/1002/ console jenkins. qa.ubuntu. com/job/ unity8- wily-amd64- ci/633/ console jenkins. qa.ubuntu. com/job/ unity8- wily-i386- ci/634/ console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 4440/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- wily-armhf/ 772/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity8- ci/6394/ rebuild
http://