import QtQuick 2.0
import com.canonical.Oxide 1.0
import Ubuntu.Components 0.1
import Ubuntu.UnityWebApps 0.1

MainView {
  id: root
  focus: true
  applicationName: \"helloworld\"

  width: units.gu(100)
  height: units.gu(100)

  WebView {
    id: webview
    anchors.fill: parent
    url: \"file://$$OUT_PWD/download-manager/www/index.html\"

    context: WebContext { }

    function getUnityWebappsProxies() {
        return UnityWebAppsUtils.makeProxiesForWebViewBindee(webview);
    }
  }

  UnityWebApps {
    id: webapps
    bindee: webview
    injectExtraUbuntuApis: true
  }
}
