~daker/ubuntu-html5-theme/fix.toggle-zindex

« back to all changes in this revision

Viewing changes to src/plugin/Ubuntu/WebApps/UbuntuJavascriptBindings.qml

Add a better cordova qml component search pattern for the cordovaview mostly to account for the cordova 3.4 version that is to be installed locally; Add autopilot tests for the container,. Fixes: https://bugs.launchpad.net/bugs/1277665.

Approved by PS Jenkins bot, Alexandre Abreu, David Barth.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2014 Canonical Ltd.
 
3
 *
 
4
 * This file is part of ubuntu-html5-container.
 
5
 *
 
6
 * ubuntu-html5-container is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; version 3.
 
9
 *
 
10
 * webbrowser-app is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
import QtQuick 2.0
 
20
import Ubuntu.UnityWebApps 0.1
 
21
 
 
22
 
 
23
Item {
 
24
    id: root
 
25
 
 
26
    property var bindingMainWebview: null
 
27
 
 
28
    /*!
 
29
      \internal
 
30
     */
 
31
    function getUnityWebappsProxies() {
 
32
        return UnityWebAppsUtils.makeProxiesForQtWebViewBindee(bindingMainWebview);
 
33
    }
 
34
 
 
35
    /*!
 
36
      \internal
 
37
     */
 
38
    Loader {
 
39
        id: webappBindingsLoader
 
40
        visible: false
 
41
        anchors.fill: parent
 
42
        sourceComponent: bindingMainWebview ? webappBindingsComponent : undefined
 
43
    }
 
44
 
 
45
    /*!
 
46
      \internal
 
47
     */
 
48
    Component {
 
49
        id: webappBindingsComponent
 
50
 
 
51
        UnityWebApps {
 
52
            id: webapps
 
53
            bindee: root
 
54
            injectExtraUbuntuApis: true
 
55
            requiresInit: false
 
56
        }
 
57
    }
 
58
}
 
59