~ubuntu-branches/ubuntu/vivid/unity-webapps-qml/vivid-proposed

« back to all changes in this revision

Viewing changes to examples/api-bindings/content-peer-picker/main.qml.in

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Ubuntu daily release, Alexandre Abreu
  • Date: 2014-11-22 00:47:26 UTC
  • mfrom: (1.1.39)
  • Revision ID: package-import@ubuntu.com-20141122004726-j1m05aogz98712kz
Tags: 0.1+15.04.20141122-0ubuntu1
[ Ubuntu daily release ]
* New rebuild forced

[ Alexandre Abreu ]
* Port qml bindings to oxide (LP: #1374100)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import QtQuick 2.0
2
 
import QtWebKit 3.0 
3
 
import QtWebKit.experimental 1.0
 
2
import com.canonical.Oxide 1.0
4
3
import Ubuntu.Components 0.1
5
4
import Ubuntu.UnityWebApps 0.1
6
5
 
17
16
    anchors.fill: parent
18
17
    url: \"file://$$OUT_PWD/content-peer-picker/www/index.html\"
19
18
 
20
 
    experimental.preferences.navigatorQtObjectEnabled: true
21
 
    experimental.preferences.developerExtrasEnabled: true
 
19
    context: WebContext { }
22
20
 
23
21
    function getUnityWebappsProxies() {
24
 
        return UnityWebAppsUtils.makeProxiesForQtWebViewBindee(webview);
 
22
        return UnityWebAppsUtils.makeProxiesForWebViewBindee(webview);
25
23
    }
 
24
  }
26
25
 
27
 
    UnityWebApps {
28
 
        id: webapps
29
 
        bindee: webview
30
 
        injectExtraUbuntuApis: true
31
 
    }
 
26
  UnityWebApps {
 
27
    id: webapps
 
28
    bindee: webview
 
29
    injectExtraUbuntuApis: true
32
30
  }
33
31
}