Ubuntu Pastebin

Paste from Saviq at Tue, 27 Oct 2015 21:14:24 +0000

Download as text
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
DesktopStage.qml

<<<<<<< TREE
    // Controls to be set from outside
    property int dragAreaWidth // just to comply with the interface shared between stages
    property real maximizedAppTopMargin
    property bool interactive
    property bool spreadEnabled // just to comply with the interface shared between stages
    property real inverseProgress: 0 // just to comply with the interface shared between stages
    property int shellOrientationAngle: 0
    property int shellOrientation
    property QtObject orientations
    property bool beingResized: false
    property bool keepDashRunning: true
    property bool suspended: false
    property alias background: wallpaper.source
    property alias altTabPressed: spread.altTabPressed

=======
>>>>>>> MERGE-SOURCE

PhoneStage.qml

<<<<<<< TREE
    property bool keepDashRunning: true
    property bool suspended: false
    property int shellOrientationAngle: 0
=======
>>>>>>> MERGE-SOURCE

<<<<<<< TREE
    property int shellOrientation
    property QtObject orientations
    property real nativeWidth
    property real nativeHeight
    property bool beingResized: false
=======
>>>>>>> MERGE-SOURCE

<<<<<<< TREE
    color: "#111111"

    // Controls to be set from outside
    property int dragAreaWidth
    property real maximizedAppTopMargin
    property bool interactive
    property alias beingResized: spreadView.beingResized

    property bool spreadEnabled: true // If false, animations and right edge will be disabled

    property real inverseProgress: 0 // This is the progress for left edge drags, in pixels.
    property bool keepDashRunning: true
    property bool suspended: false
    property int shellOrientationAngle: 0

    property int shellOrientation
    property QtObject orientations
    property real nativeWidth
    property real nativeHeight

=======

    // Functions to be called from outside
>>>>>>> MERGE-SOURCE

tst_Shell.qml

<<<<<<< TREE
=======

        function test_lifecyclePolicy_data() {
            return [
                {tag: "phone", formFactor: "phone", usageScenario: "phone", suspendsApps: true},
                {tag: "tablet", formFactor: "tablet", usageScenario: "tablet", suspendsApps: true},
                {tag: "desktop", formFactor: "tablet", usageScenario: "desktop", suspendsApps: false}
            ]
        }

        function test_lifecyclePolicy(data) {
            loadShell(data.formFactor);
            shell.usageScenario = data.usageScenario;

            GSettingsController.setLifecycleExemptAppids(["webbrowser-app"]);

            var app1 = ApplicationManager.startApplication("camera-app");
            waitUntilAppWindowIsFullyLoaded(app1);
            var app2 = ApplicationManager.startApplication("webbrowser-app");
            waitUntilAppWindowIsFullyLoaded(app2);
            var app3 = ApplicationManager.startApplication("libreoffice");
            waitUntilAppWindowIsFullyLoaded(app3);
            var app4 = ApplicationManager.startApplication("dialer-app");
            waitUntilAppWindowIsFullyLoaded(app4);

            // Normal background app
            compare(app1.requestedState, data.suspendsApps ?
                                         ApplicationInfoInterface.RequestedSuspended :
                                         ApplicationInfoInterface.RequestedRunning);

            // Excluded from lifecycle by gsettings
            compare(app2.requestedState, ApplicationInfoInterface.RequestedRunning);

            // Excluded from lifecycle because app is non-touch
            compare(app3.isTouchApp, false); // sanity check our mock, which sets this for us
            compare(app3.requestedState, ApplicationInfoInterface.RequestedRunning);

            // Focused app
            compare(app4.requestedState, ApplicationInfoInterface.RequestedRunning);
        }
>>>>>>> MERGE-SOURCE
Download as text