diff -Nru unity-webapps-qml-0.1+15.04.20150319/debian/changelog unity-webapps-qml-0.1+15.04.20150409/debian/changelog --- unity-webapps-qml-0.1+15.04.20150319/debian/changelog 2015-04-22 14:02:36.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/debian/changelog 2015-04-22 14:02:36.000000000 +0000 @@ -1,8 +1,21 @@ -unity-webapps-qml (0.1+15.04.20150319-0ubuntu2~vivid1~test1~qt550alpha1) vivid; urgency=medium +unity-webapps-qml (0.1+15.04.20150409-0ubuntu2~vivid1~test1~qt550alpha1) vivid; urgency=medium * No-change rebuild against Qt 5.5.0 alpha. - -- Timo Jyrinki Fri, 27 Mar 2015 12:14:51 +0200 + -- Timo Jyrinki Wed, 22 Apr 2015 16:54:43 +0300 + +unity-webapps-qml (0.1+15.04.20150409-0ubuntu1) vivid; urgency=medium + + [ Daniel Holbach ] + * Add ./update-docs script, which can needs to be run locally, as not all + dependencies of yuidocs are in the archive yet. + The API docs are added to unity-webapps-qml-doc, which will make it easier + for us to update developer.ubuntu.com/api. + + [ CI Train Bot ] + * New rebuild forced. + + -- CI Train Bot Thu, 09 Apr 2015 13:29:13 +0000 unity-webapps-qml (0.1+15.04.20150319-0ubuntu1) vivid; urgency=medium diff -Nru unity-webapps-qml-0.1+15.04.20150319/debian/copyright unity-webapps-qml-0.1+15.04.20150409/debian/copyright --- unity-webapps-qml-0.1+15.04.20150319/debian/copyright 2015-04-22 14:02:36.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/debian/copyright 2015-04-22 14:02:36.000000000 +0000 @@ -16,3 +16,35 @@ License: GPL-3 On Debian systems, the complete text of the GNU General Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. + +Files: src/Ubuntu/UnityWebApps/bindings/*/client/docsbuild/assets/vendor/prettify/prettify-min.js: BSD (3 clause) + src/Ubuntu/UnityWebApps/bindings/*/client/docsbuild/assets/js/yui-prettify.js: BSD (3 clause) + src/Ubuntu/UnityWebApps/bindings/*/client/docsbuild/assets/js/tabs.js +Copyright: 2011 Yahoo! Inc. +License: BSD (3 clause) + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + . + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + * The names of Kitware, Inc., the Insight Consortium, or the names of + any consortium members, or of any contributors, may not be used to + endorse or promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR + ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff -Nru unity-webapps-qml-0.1+15.04.20150319/debian/unity-webapps-qml-doc.install unity-webapps-qml-0.1+15.04.20150409/debian/unity-webapps-qml-doc.install --- unity-webapps-qml-0.1+15.04.20150319/debian/unity-webapps-qml-doc.install 2015-04-22 14:02:36.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/debian/unity-webapps-qml-doc.install 2015-04-22 14:02:36.000000000 +0000 @@ -1 +1,5 @@ usr/share/unity-webapps-qml/doc +src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/* /usr/share/unity-webapps-qml/doc/api/alarm-api/ +src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/* /usr/share/unity-webapps-qml/doc/api/content-hub/ +src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/* /usr/share/unity-webapps-qml/doc/api/online-accounts/ +src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/* /usr/share/unity-webapps-qml/doc/api/runtime-api/ diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/api.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/api.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/api.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/api.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,18 @@ +YUI.add("yuidoc-meta", function(Y) { + Y.YUIDoc = { meta: { + "classes": [ + "Alarm", + "AlarmApi" + ], + "modules": [ + "AlarmApi" + ], + "allModules": [ + { + "displayName": "AlarmApi", + "name": "AlarmApi", + "description": "AlarmApi gives access to Alarm management." + } + ] +} }; +}); \ No newline at end of file Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/css/external-small.png and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/css/external-small.png differ Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/css/logo.png and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/css/logo.png differ diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/css/main.css unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/css/main.css --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/css/main.css 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/css/main.css 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,429 @@ +/* +Font sizes for all selectors other than the body are given in percentages, +with 100% equal to 13px. To calculate a font size percentage, multiply the +desired size in pixels by 7.6923076923. + +Here's a quick lookup table: + +10px - 76.923% +11px - 84.615% +12px - 92.308% +13px - 100% +14px - 107.692% +15px - 115.385% +16px - 123.077% +17px - 130.769% +18px - 138.462% +19px - 146.154% +20px - 153.846% +*/ + +html { + background: #fff; + color: #333; + overflow-y: scroll; +} + +body { + font: 13px/1.4 'Lucida Grande', 'Lucida Sans Unicode', 'DejaVu Sans', 'Bitstream Vera Sans', 'Helvetica', 'Arial', sans-serif; + margin: 0; + padding: 0; +} + +/* -- Links ----------------------------------------------------------------- */ +a { + color: #DD4814; + text-decoration: none; +} + +a:hover { text-decoration: underline; } + +/* "Jump to Table of Contents" link is shown to assistive tools, but hidden from + sight until it's focused. */ +.jump { + position: absolute; + padding: 3px 6px; + left: -99999px; + top: 0; +} + +.jump:focus { left: 40%; } + +/* -- Paragraphs ------------------------------------------------------------ */ +p { margin: 1.3em 0; } +dd p, td p { margin-bottom: 0; } +dd p:first-child, td p:first-child { margin-top: 0; } + +/* -- Headings -------------------------------------------------------------- */ +h1, h2, h3, h4, h5, h6 { + color: #DD4814 + font-family: 'Ubuntu', sans-serif; + font-weight: bold; + line-height: 1.1; + margin: 1.1em 0 0.5em; +} + +h1 { + font-size: 184.6%; + color: #30418C; + margin: 0.75em 0 0.5em; +} + +h2 { + font-size: 153.846%; + color: #E48A2B; +} + +h3 { font-size: 138.462%; } + +h4 { + border-bottom: 1px solid #DBDFEA; + color: #E48A2B; + font-size: 115.385%; + font-weight: normal; + padding-bottom: 2px; +} + +h5, h6 { font-size: 107.692%; } + +/* -- Code and examples ----------------------------------------------------- */ +code, kbd, pre, samp { + font-family: Menlo, Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; + font-size: 92.308%; + line-height: 1.35; +} + +p code, p kbd, p samp { + background: #FCFBFA; + border: 1px solid #EFEEED; + padding: 0 3px; +} + +a code, a kbd, a samp, +pre code, pre kbd, pre samp, +table code, table kbd, table samp, +.intro code, .intro kbd, .intro samp, +.toc code, .toc kbd, .toc samp { + background: none; + border: none; + padding: 0; +} + +pre.code, pre.terminal, pre.cmd { + overflow-x: auto; + *overflow-x: scroll; + padding: 0.3em 0.6em; +} + +pre.code { + background: #FCFBFA; + border: 1px solid #EFEEED; + border-left-width: 5px; +} + +pre.terminal, pre.cmd { + background: #F0EFFC; + border: 1px solid #D0CBFB; + border-left: 5px solid #D0CBFB; +} + +/* Don't reduce the font size of // elements inside
+   blocks. */
+pre code, pre kbd, pre samp { font-size: 100%; }
+
+/* Used to denote text that shouldn't be selectable, such as line numbers or
+   shell prompts. Guess which browser this doesn't work in. */
+.noselect {
+    -moz-user-select: -moz-none;
+    -khtml-user-select: none;
+    -webkit-user-select: none;
+    -o-user-select: none;
+    user-select: none;
+}
+
+/* -- Lists ----------------------------------------------------------------- */
+dd { margin: 0.2em 0 0.7em 1em; }
+dl { margin: 1em 0; }
+dt { font-weight: bold; }
+
+/* -- Tables ---------------------------------------------------------------- */
+caption, th { text-align: left; }
+
+table {
+    border-collapse: collapse;
+    width: 100%;
+}
+
+td, th {
+    border: 1px solid #fff;
+    padding: 5px 12px;
+    vertical-align: top;
+}
+
+td { background: #E6E9F5; }
+td dl { margin: 0; }
+td dl dl { margin: 1em 0; }
+td pre:first-child { margin-top: 0; }
+
+th {
+    background: #D2D7E6;/*#97A0BF*/
+    border-bottom: none;
+    border-top: none;
+    color: #000;/*#FFF1D5*/
+    font-family: 'Trebuchet MS', sans-serif;
+    font-weight: bold;
+    line-height: 1.3;
+    white-space: nowrap;
+}
+
+
+/* -- Layout and Content ---------------------------------------------------- */
+#doc {
+    margin: auto;
+    min-width: 1024px;
+}
+
+#main { width: 754px; }
+#sidebar { width: 270px; margin: 0 15px; }
+
+.content { padding: 0 20px 0 25px; }
+
+/* -- Sidebar --------------------------------------------------------------- */
+.sidebox {
+    background: #F9F9FC;/*E6E9F5*/
+    border: 1px solid #D4D8EB;
+
+    -moz-border-radius: 4px;
+    -webkit-border-radius: 4px;
+    border-radius: 4px;
+    -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
+    -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
+    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
+    font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'Helvetica', 'Arial', sans-serif;
+    margin: 0 0 15px 0;
+    padding-bottom: 1px;
+}
+
+.sidebox h2 {
+    background: #E5E6F1;
+    -moz-border-radius: 4px 4px 0 0;
+    -webkit-border-radius: 4px 4px 0 0;
+    border-radius: 4px 4px 0 0;
+    color: #5E6BA4;
+    font-weight: bold;
+    font-size: 107.692%;
+    margin: 0;
+    padding: 4px 7px 5px;
+}
+
+.sidebox .bd {
+    font-size: 84.615%;
+    padding: 0 5px 0 8px;
+}
+
+.sidebox li { list-style-type: disc; color:#D4D5E3; }
+
+.sidebox ol, .sidebox ul {
+    margin-left: 0;
+    padding-left: 16px;
+}
+
+.sidebox ol ol, .sidebox ol ul,
+.sidebox ul ol, .sidebox ul ul {
+    margin: 0;
+    padding-left: 16px;
+}
+
+/* -- Table of Contents ----------------------------------------------------- */
+
+/* The #toc id refers to the single global table of contents, while the .toc
+   class refers to generic TOC lists that could be used throughout the page. */
+
+.toc code, .toc kbd, .toc samp { font-size: 100%; }
+.toc li { font-weight: bold; }
+.toc li li { font-weight: normal; }
+
+/* -- Intro and Example Boxes ----------------------------------------------- */
+.intro, .example { margin-bottom: 2em; }
+
+.example {
+    -moz-border-radius: 4px;
+    -webkit-border-radius: 4px;
+    border-radius: 4px;
+    -moz-box-shadow: 0 0 5px #bfbfbf;
+    -webkit-box-shadow: 0 0 5px #bfbfbf;
+    box-shadow: 0 0 5px #bfbfbf;
+    padding: 1em;
+}
+
+.intro {
+    background: none repeat scroll 0 0 #F0F1F8; border: 1px solid #D4D8EB; padding: 0 1em;
+}
+
+/* -- Other Styles ---------------------------------------------------------- */
+
+/* These are probably YUI-specific, and should be moved out of Selleck's default
+   theme. */
+
+.button {
+    border: 1px solid #dadada;
+    -moz-border-radius: 3px;
+    -webkit-border-radius: 3px;
+    border-radius: 3px;
+    color: #444;
+    display: inline-block;
+    font-family: Helvetica, Arial, sans-serif;
+    font-size: 92.308%;
+    font-weight: bold;
+    padding: 4px 13px 3px;
+    -moz-text-shadow: 1px 1px 0 #fff;
+    -webkit-text-shadow: 1px 1px 0 #fff;
+    text-shadow: 1px 1px 0 #fff;
+    white-space: nowrap;
+
+    background: #EFEFEF; /* old browsers */
+    background: -moz-linear-gradient(top, #f5f5f5 0%, #efefef 50%, #e5e5e5 51%, #dfdfdf 100%); /* firefox */
+    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(50%,#efefef), color-stop(51%,#e5e5e5), color-stop(100%,#dfdfdf)); /* webkit */
+    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#dfdfdf',GradientType=0 ); /* ie */
+}
+
+.button:hover {
+    border-color: #466899;
+    color: #fff;
+    text-decoration: none;
+    -moz-text-shadow: 1px 1px 0 #222;
+    -webkit-text-shadow: 1px 1px 0 #222;
+    text-shadow: 1px 1px 0 #222;
+
+    background: #6396D8; /* old browsers */
+    background: -moz-linear-gradient(top, #6396D8 0%, #5A83BC 50%, #547AB7 51%, #466899 100%); /* firefox */
+    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6396D8), color-stop(50%,#5A83BC), color-stop(51%,#547AB7), color-stop(100%,#466899)); /* webkit */
+    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6396D8', endColorstr='#466899',GradientType=0 ); /* ie */
+}
+
+.newwindow { text-align: center; }
+
+.header .version em {
+    display: block;
+    text-align: right;
+}
+
+.yui3-skin-sam #classdocs .yui3-tabview-panel {
+    background-color: transparent;
+}
+
+.yui3-skin-sam #classdocs .yui3-tabview-panel {
+    border: none;
+}
+
+.yui3-skin-sam .yui3-tabview .yui3-tab,
+.yui3-skin-sam .yui3-tabview .yui3-tab-selected,
+.yui3-skin-sam .yui3-tabview .yui3-tab-hover {
+    background: -moz-linear-gradient(center top , #F4F0EC 0%, #D6D2CE 100%) repeat scroll 0 0 transparent;
+    border-bottom: 1px solid #DEDCD9;
+    border-right: 1px solid #CDCBC8;
+    border-left: 1px solid #CDCBC8;
+    border-top: 1px solid #DADADA;
+    color: #333333;
+    text-decoration: none;
+}
+.yui3-skin-sam .yui3-tabview .yui3-tab-label,
+.yui3-skin-sam .yui3-tabview .yui3-tab-selected .yui3-tab-label {
+    border: none;
+    background: none;
+    font-size: 100%;
+    color: #000;
+}
+
+.yui3-skin-sam .yui3-tabview .yui3-tab-selected,
+.yui3-skin-sam .yui3-tabview .yui3-tab-hover {
+    background: none;
+    background-color: #fff;
+    border-bottom-color: #FFFFFF;
+    border-top: 2px solid #8193C9;
+    font-weight: bold;
+    color: #000;
+
+}
+
+.yui3-skin-sam .yui3-tabview-list {
+    border-color: #DFDFDF;
+    border-width: 0 0 1px; 
+}
+
+
+a.external {
+    background-image: url(external-small.png);
+    background-repeat: no-repeat;
+    background-position: 0 0;
+    padding-left: 16px;
+}
+
+#classdocs .item {
+    border-bottom: 1px solid #466899;
+    margin: 1em 0;
+    padding: 1.5em;
+}
+
+#classdocs .item .params p,
+    #classdocs .item .returns p,{
+    display: inline;
+}
+
+#classdocs .item em code, #classdocs .item em.comment {
+    color: green;
+}
+
+#classdocs .item em.comment a {
+    color: green;
+    text-decoration: underline;
+}
+
+#classdocs .foundat {
+    font-size: 11px;
+    font-style: normal;
+}
+
+.attrs .emits {
+    margin-left: 2em;
+    padding: .5em;
+    border-left: 1px dashed #ccc;
+}
+
+abbr {
+    border-bottom: 1px dashed #ccc;
+    font-size: 80%;
+    cursor: help;
+}
+
+.prettyprint li.L0, 
+.prettyprint li.L1, 
+.prettyprint li.L2, 
+.prettyprint li.L3, 
+.prettyprint li.L5, 
+.prettyprint li.L6, 
+.prettyprint li.L7, 
+.prettyprint li.L8 {
+    list-style: decimal;
+}
+
+ul li p {
+    margin-top: 0;
+}
+
+.method .name {
+    font-size: 110%;
+}
+
+#hd {
+    background: -moz-linear-gradient(center top , #DCDBD9 0%, #F6F5F3 100%) repeat scroll 0 0 transparent;
+    border-bottom: 1px solid #DFDFDF;
+    padding: 0 15px 1px 20px;
+    margin-bottom: 15px;
+}
+
+#hd img {
+    margin-right: 10px;
+    vertical-align: middle;
+}
+
Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/favicon.ico and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/favicon.ico differ
Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/img/spinner.gif and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/img/spinner.gif differ
diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/index.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/index.html
--- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/index.html	1970-01-01 00:00:00.000000000 +0000
+++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/index.html	2015-04-09 13:29:10.000000000 +0000
@@ -0,0 +1,10 @@
+
+
+    
+        Redirector
+        
+    
+    
+        Click here to redirect
+    
+
diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/apidocs.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/apidocs.js
--- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/apidocs.js	1970-01-01 00:00:00.000000000 +0000
+++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/apidocs.js	2015-04-09 13:29:10.000000000 +0000
@@ -0,0 +1,370 @@
+YUI().use(
+    'yuidoc-meta',
+    'api-list', 'history-hash', 'node-screen', 'node-style', 'pjax',
+function (Y) {
+
+var win          = Y.config.win,
+    localStorage = win.localStorage,
+
+    bdNode = Y.one('#bd'),
+
+    pjax,
+    defaultRoute,
+
+    classTabView,
+    selectedTab;
+
+// Kill pjax functionality unless serving over HTTP.
+if (!Y.getLocation().protocol.match(/^https?\:/)) {
+    Y.Router.html5 = false;
+}
+
+// Create the default route with middleware which enables syntax highlighting
+// on the loaded content.
+defaultRoute = Y.Pjax.defaultRoute.concat(function (req, res, next) {
+    prettyPrint();
+    bdNode.removeClass('loading');
+
+    next();
+});
+
+pjax = new Y.Pjax({
+    container      : '#docs-main',
+    contentSelector: '#docs-main > .content',
+    linkSelector   : '#bd a',
+    titleSelector  : '#xhr-title',
+
+    navigateOnHash: true,
+    root          : '/',
+    routes        : [
+        // -- / ----------------------------------------------------------------
+        {
+            path     : '/(index.html)?',
+            callbacks: defaultRoute
+        },
+
+        // -- /classes/* -------------------------------------------------------
+        {
+            path     : '/classes/:class.html*',
+            callbacks: [defaultRoute, 'handleClasses']
+        },
+
+        // -- /files/* ---------------------------------------------------------
+        {
+            path     : '/files/*file',
+            callbacks: [defaultRoute, 'handleFiles']
+        },
+
+        // -- /modules/* -------------------------------------------------------
+        {
+            path     : '/modules/:module.html*',
+            callbacks: defaultRoute
+        }
+    ]
+});
+
+// -- Utility Functions --------------------------------------------------------
+
+pjax.checkVisibility = function (tab) {
+    tab || (tab = selectedTab);
+
+    if (!tab) { return; }
+
+    var panelNode = tab.get('panelNode'),
+        visibleItems;
+
+    // If no items are visible in the tab panel due to the current visibility
+    // settings, display a message to that effect.
+    visibleItems = panelNode.all('.item,.index-item').some(function (itemNode) {
+        if (itemNode.getComputedStyle('display') !== 'none') {
+            return true;
+        }
+    });
+
+    panelNode.all('.no-visible-items').remove();
+
+    if (!visibleItems) {
+        if (Y.one('#index .index-item')) {
+            panelNode.append(
+                '
' + + '

' + + 'Some items are not shown due to the current visibility ' + + 'settings. Use the checkboxes at the upper right of this ' + + 'page to change the visibility settings.' + + '

' + + '
' + ); + } else { + panelNode.append( + '
' + + '

' + + 'This class doesn\'t provide any methods, properties, ' + + 'attributes, or events.' + + '

' + + '
' + ); + } + } + + // Hide index sections without any visible items. + Y.all('.index-section').each(function (section) { + var items = 0, + visibleItems = 0; + + section.all('.index-item').each(function (itemNode) { + items += 1; + + if (itemNode.getComputedStyle('display') !== 'none') { + visibleItems += 1; + } + }); + + section.toggleClass('hidden', !visibleItems); + section.toggleClass('no-columns', visibleItems < 4); + }); +}; + +pjax.initClassTabView = function () { + if (!Y.all('#classdocs .api-class-tab').size()) { + return; + } + + if (classTabView) { + classTabView.destroy(); + selectedTab = null; + } + + classTabView = new Y.TabView({ + srcNode: '#classdocs', + + on: { + selectionChange: pjax.onTabSelectionChange + } + }); + + pjax.updateTabState(); + classTabView.render(); +}; + +pjax.initLineNumbers = function () { + var hash = win.location.hash.substring(1), + container = pjax.get('container'), + hasLines, node; + + // Add ids for each line number in the file source view. + container.all('.linenums>li').each(function (lineNode, index) { + lineNode.set('id', 'l' + (index + 1)); + lineNode.addClass('file-line'); + hasLines = true; + }); + + // Scroll to the desired line. + if (hasLines && /^l\d+$/.test(hash)) { + if ((node = container.getById(hash))) { + win.scroll(0, node.getY()); + } + } +}; + +pjax.initRoot = function () { + var terminators = /^(?:classes|files|modules)$/, + parts = pjax._getPathRoot().split('/'), + root = [], + i, len, part; + + for (i = 0, len = parts.length; i < len; i += 1) { + part = parts[i]; + + if (part.match(terminators)) { + // Makes sure the path will end with a "/". + root.push(''); + break; + } + + root.push(part); + } + + pjax.set('root', root.join('/')); +}; + +pjax.updateTabState = function (src) { + var hash = win.location.hash.substring(1), + defaultTab, node, tab, tabPanel; + + function scrollToNode() { + if (node.hasClass('protected')) { + Y.one('#api-show-protected').set('checked', true); + pjax.updateVisibility(); + } + + if (node.hasClass('private')) { + Y.one('#api-show-private').set('checked', true); + pjax.updateVisibility(); + } + + setTimeout(function () { + // For some reason, unless we re-get the node instance here, + // getY() always returns 0. + var node = Y.one('#classdocs').getById(hash); + win.scrollTo(0, node.getY() - 70); + }, 1); + } + + if (!classTabView) { + return; + } + + if (src === 'hashchange' && !hash) { + defaultTab = 'index'; + } else { + if (localStorage) { + defaultTab = localStorage.getItem('tab_' + pjax.getPath()) || + 'index'; + } else { + defaultTab = 'index'; + } + } + + if (hash && (node = Y.one('#classdocs').getById(hash))) { + if ((tabPanel = node.ancestor('.api-class-tabpanel', true))) { + if ((tab = Y.one('#classdocs .api-class-tab.' + tabPanel.get('id')))) { + if (classTabView.get('rendered')) { + Y.Widget.getByNode(tab).set('selected', 1); + } else { + tab.addClass('yui3-tab-selected'); + } + } + } + + // Scroll to the desired element if this is a hash URL. + if (node) { + if (classTabView.get('rendered')) { + scrollToNode(); + } else { + classTabView.once('renderedChange', scrollToNode); + } + } + } else { + tab = Y.one('#classdocs .api-class-tab.' + defaultTab); + + // When the `defaultTab` node isn't found, `localStorage` is stale. + if (!tab && defaultTab !== 'index') { + tab = Y.one('#classdocs .api-class-tab.index'); + } + + if (classTabView.get('rendered')) { + Y.Widget.getByNode(tab).set('selected', 1); + } else { + tab.addClass('yui3-tab-selected'); + } + } +}; + +pjax.updateVisibility = function () { + var container = pjax.get('container'); + + container.toggleClass('hide-inherited', + !Y.one('#api-show-inherited').get('checked')); + + container.toggleClass('show-deprecated', + Y.one('#api-show-deprecated').get('checked')); + + container.toggleClass('show-protected', + Y.one('#api-show-protected').get('checked')); + + container.toggleClass('show-private', + Y.one('#api-show-private').get('checked')); + + pjax.checkVisibility(); +}; + +// -- Route Handlers ----------------------------------------------------------- + +pjax.handleClasses = function (req, res, next) { + var status = res.ioResponse.status; + + // Handles success and local filesystem XHRs. + if (res.ioResponse.readyState === 4 && (!status || (status >= 200 && status < 300))) { + pjax.initClassTabView(); + } + + next(); +}; + +pjax.handleFiles = function (req, res, next) { + var status = res.ioResponse.status; + + // Handles success and local filesystem XHRs. + if (res.ioResponse.readyState === 4 && (!status || (status >= 200 && status < 300))) { + pjax.initLineNumbers(); + } + + next(); +}; + +// -- Event Handlers ----------------------------------------------------------- + +pjax.onNavigate = function (e) { + var hash = e.hash, + originTarget = e.originEvent && e.originEvent.target, + tab; + + if (hash) { + tab = originTarget && originTarget.ancestor('.yui3-tab', true); + + if (hash === win.location.hash) { + pjax.updateTabState('hashchange'); + } else if (!tab) { + win.location.hash = hash; + } + + e.preventDefault(); + return; + } + + // Only scroll to the top of the page when the URL doesn't have a hash. + this.set('scrollToTop', !e.url.match(/#.+$/)); + + bdNode.addClass('loading'); +}; + +pjax.onOptionClick = function (e) { + pjax.updateVisibility(); +}; + +pjax.onTabSelectionChange = function (e) { + var tab = e.newVal, + tabId = tab.get('contentBox').getAttribute('href').substring(1); + + selectedTab = tab; + + // If switching from a previous tab (i.e., this is not the default tab), + // replace the history entry with a hash URL that will cause this tab to + // be selected if the user navigates away and then returns using the back + // or forward buttons. + if (e.prevVal && localStorage) { + localStorage.setItem('tab_' + pjax.getPath(), tabId); + } + + pjax.checkVisibility(tab); +}; + +// -- Init --------------------------------------------------------------------- + +pjax.on('navigate', pjax.onNavigate); + +pjax.initRoot(); +pjax.upgrade(); +pjax.initClassTabView(); +pjax.initLineNumbers(); +pjax.updateVisibility(); + +Y.APIList.rootPath = pjax.get('root'); + +Y.one('#api-options').delegate('click', pjax.onOptionClick, 'input'); + +Y.on('hashchange', function (e) { + pjax.updateTabState('hashchange'); +}, win); + +}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/api-filter.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/api-filter.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/api-filter.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/api-filter.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,52 @@ +YUI.add('api-filter', function (Y) { + +Y.APIFilter = Y.Base.create('apiFilter', Y.Base, [Y.AutoCompleteBase], { + // -- Initializer ---------------------------------------------------------- + initializer: function () { + this._bindUIACBase(); + this._syncUIACBase(); + }, + getDisplayName: function(name) { + + Y.each(Y.YUIDoc.meta.allModules, function(i) { + if (i.name === name && i.displayName) { + name = i.displayName; + } + }); + + return name; + } + +}, { + // -- Attributes ----------------------------------------------------------- + ATTRS: { + resultHighlighter: { + value: 'phraseMatch' + }, + + // May be set to "classes" or "modules". + queryType: { + value: 'classes' + }, + + source: { + valueFn: function() { + var self = this; + return function(q) { + var data = Y.YUIDoc.meta[self.get('queryType')], + out = []; + Y.each(data, function(v) { + if (v.toLowerCase().indexOf(q.toLowerCase()) > -1) { + out.push(v); + } + }); + return out; + }; + } + } + } +}); + +}, '3.4.0', {requires: [ + 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources' +]}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/api-list.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/api-list.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/api-list.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/api-list.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,251 @@ +YUI.add('api-list', function (Y) { + +var Lang = Y.Lang, + YArray = Y.Array, + + APIList = Y.namespace('APIList'), + + classesNode = Y.one('#api-classes'), + inputNode = Y.one('#api-filter'), + modulesNode = Y.one('#api-modules'), + tabviewNode = Y.one('#api-tabview'), + + tabs = APIList.tabs = {}, + + filter = APIList.filter = new Y.APIFilter({ + inputNode : inputNode, + maxResults: 1000, + + on: { + results: onFilterResults + } + }), + + search = APIList.search = new Y.APISearch({ + inputNode : inputNode, + maxResults: 100, + + on: { + clear : onSearchClear, + results: onSearchResults + } + }), + + tabview = APIList.tabview = new Y.TabView({ + srcNode : tabviewNode, + panelNode: '#api-tabview-panel', + render : true, + + on: { + selectionChange: onTabSelectionChange + } + }), + + focusManager = APIList.focusManager = tabviewNode.plug(Y.Plugin.NodeFocusManager, { + circular : true, + descendants: '#api-filter, .yui3-tab-panel-selected .api-list-item a, .yui3-tab-panel-selected .result a', + keys : {next: 'down:40', previous: 'down:38'} + }).focusManager, + + LIST_ITEM_TEMPLATE = + '
  • ' + + '{displayName}' + + '
  • '; + +// -- Init --------------------------------------------------------------------- + +// Duckpunch FocusManager's key event handling to prevent it from handling key +// events when a modifier is pressed. +Y.before(function (e, activeDescendant) { + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { + return new Y.Do.Prevent(); + } +}, focusManager, '_focusPrevious', focusManager); + +Y.before(function (e, activeDescendant) { + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { + return new Y.Do.Prevent(); + } +}, focusManager, '_focusNext', focusManager); + +// Create a mapping of tabs in the tabview so we can refer to them easily later. +tabview.each(function (tab, index) { + var name = tab.get('label').toLowerCase(); + + tabs[name] = { + index: index, + name : name, + tab : tab + }; +}); + +// Switch tabs on Ctrl/Cmd-Left/Right arrows. +tabviewNode.on('key', onTabSwitchKey, 'down:37,39'); + +// Focus the filter input when the `/` key is pressed. +Y.one(Y.config.doc).on('key', onSearchKey, 'down:83'); + +// Keep the Focus Manager up to date. +inputNode.on('focus', function () { + focusManager.set('activeDescendant', inputNode); +}); + +// Update all tabview links to resolved URLs. +tabview.get('panelNode').all('a').each(function (link) { + link.setAttribute('href', link.get('href')); +}); + +// -- Private Functions -------------------------------------------------------- +function getFilterResultNode() { + return filter.get('queryType') === 'classes' ? classesNode : modulesNode; +} + +// -- Event Handlers ----------------------------------------------------------- +function onFilterResults(e) { + var frag = Y.one(Y.config.doc.createDocumentFragment()), + resultNode = getFilterResultNode(), + typePlural = filter.get('queryType'), + typeSingular = typePlural === 'classes' ? 'class' : 'module'; + + if (e.results.length) { + YArray.each(e.results, function (result) { + frag.append(Lang.sub(LIST_ITEM_TEMPLATE, { + rootPath : APIList.rootPath, + displayName : filter.getDisplayName(result.highlighted), + name : result.text, + typePlural : typePlural, + typeSingular: typeSingular + })); + }); + } else { + frag.append( + '
  • ' + + 'No ' + typePlural + ' found.' + + '
  • ' + ); + } + + resultNode.empty(true); + resultNode.append(frag); + + focusManager.refresh(); +} + +function onSearchClear(e) { + + focusManager.refresh(); +} + +function onSearchKey(e) { + var target = e.target; + + if (target.test('input,select,textarea') + || target.get('isContentEditable')) { + return; + } + + e.preventDefault(); + + inputNode.focus(); + focusManager.refresh(); +} + +function onSearchResults(e) { + var frag = Y.one(Y.config.doc.createDocumentFragment()); + + if (e.results.length) { + YArray.each(e.results, function (result) { + frag.append(result.display); + }); + } else { + frag.append( + '
  • ' + + 'No results found. Maybe you\'ll have better luck with a ' + + 'different query?' + + '
  • ' + ); + } + + + focusManager.refresh(); +} + +function onTabSelectionChange(e) { + var tab = e.newVal, + name = tab.get('label').toLowerCase(); + + tabs.selected = { + index: tab.get('index'), + name : name, + tab : tab + }; + + switch (name) { + case 'classes': // fallthru + case 'modules': + filter.setAttrs({ + minQueryLength: 0, + queryType : name + }); + + search.set('minQueryLength', -1); + + // Only send a request if this isn't the initially-selected tab. + if (e.prevVal) { + filter.sendRequest(filter.get('value')); + } + break; + + case 'everything': + filter.set('minQueryLength', -1); + search.set('minQueryLength', 1); + + if (search.get('value')) { + search.sendRequest(search.get('value')); + } else { + inputNode.focus(); + } + break; + + default: + // WTF? We shouldn't be here! + filter.set('minQueryLength', -1); + search.set('minQueryLength', -1); + } + + if (focusManager) { + setTimeout(function () { + focusManager.refresh(); + }, 1); + } +} + +function onTabSwitchKey(e) { + var currentTabIndex = tabs.selected.index; + + if (!(e.ctrlKey || e.metaKey)) { + return; + } + + e.preventDefault(); + + switch (e.keyCode) { + case 37: // left arrow + if (currentTabIndex > 0) { + tabview.selectChild(currentTabIndex - 1); + inputNode.focus(); + } + break; + + case 39: // right arrow + if (currentTabIndex < (Y.Object.size(tabs) - 2)) { + tabview.selectChild(currentTabIndex + 1); + inputNode.focus(); + } + break; + } +} + +}, '3.4.0', {requires: [ + 'api-filter', 'api-search', 'event-key', 'node-focusmanager', 'tabview' +]}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/api-search.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/api-search.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/api-search.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/api-search.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,98 @@ +YUI.add('api-search', function (Y) { + +var Lang = Y.Lang, + Node = Y.Node, + YArray = Y.Array; + +Y.APISearch = Y.Base.create('apiSearch', Y.Base, [Y.AutoCompleteBase], { + // -- Public Properties ---------------------------------------------------- + RESULT_TEMPLATE: + '
  • ' + + '' + + '

    {name}

    ' + + '{resultType}' + + '
    {description}
    ' + + '{class}' + + '
    ' + + '
  • ', + + // -- Initializer ---------------------------------------------------------- + initializer: function () { + this._bindUIACBase(); + this._syncUIACBase(); + }, + + // -- Protected Methods ---------------------------------------------------- + _apiResultFilter: function (query, results) { + // Filter components out of the results. + return YArray.filter(results, function (result) { + return result.raw.resultType === 'component' ? false : result; + }); + }, + + _apiResultFormatter: function (query, results) { + return YArray.map(results, function (result) { + var raw = Y.merge(result.raw), // create a copy + desc = raw.description || ''; + + // Convert description to text and truncate it if necessary. + desc = Node.create('
    ' + desc + '
    ').get('text'); + + if (desc.length > 65) { + desc = Y.Escape.html(desc.substr(0, 65)) + ' …'; + } else { + desc = Y.Escape.html(desc); + } + + raw['class'] || (raw['class'] = ''); + raw.description = desc; + + // Use the highlighted result name. + raw.name = result.highlighted; + + return Lang.sub(this.RESULT_TEMPLATE, raw); + }, this); + }, + + _apiTextLocator: function (result) { + return result.displayName || result.name; + } +}, { + // -- Attributes ----------------------------------------------------------- + ATTRS: { + resultFormatter: { + valueFn: function () { + return this._apiResultFormatter; + } + }, + + resultFilters: { + valueFn: function () { + return this._apiResultFilter; + } + }, + + resultHighlighter: { + value: 'phraseMatch' + }, + + resultListLocator: { + value: 'data.results' + }, + + resultTextLocator: { + valueFn: function () { + return this._apiTextLocator; + } + }, + + source: { + value: '/api/v1/search?q={query}&count={maxResults}' + } + } +}); + +}, '3.4.0', {requires: [ + 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources', + 'escape' +]}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/tabs.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/tabs.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/tabs.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/tabs.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,67 @@ +/* + * Copyright 2011 Yahoo! Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Yahoo! Inc. nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + + +YUI({ + insertBefore: 'site_styles' +}).use('tabview', function(Y) { + var classdocs = Y.one('#classdocs'), + tabviewIndexTable = {}; + if (classdocs) { + if (classdocs.all('li').size()) { + var tabview = new Y.TabView({ srcNode: classdocs }); + tabview.render(); + classdocs.all('li a').each(function (item, index) { + var hash = item.get(['hash']); + type = hash.substring(1); + if (!tabviewIndexTable[type]) { + tabviewIndexTable[type] = index; + } + }) + Y.all('.sidebox.on-page').each(function (item, index) { + var children = item.all('li a'); + children.each(function (cItem, cIndex) { + return function () { + var handleClick = function (e) { + var node = Y.one(this), + hash = node.get(['hash']), + hashValue = hash.substring(1).split('_'), + type = hashValue.shift(), + ogKey = hashValue.join('_'); // in case the hash had other underscores + if (tabviewIndexTable[type] > -1 && tabviewIndexTable[type] !== currentTab) { + currentTab = tabviewIndexTable[type]; + tabview.selectChild(tabviewIndexTable[type]); + } + } + Y.on('click', handleClick, cItem) + }() + }) + }); + } + } +}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/yui-prettify.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/yui-prettify.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/yui-prettify.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/js/yui-prettify.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,44 @@ +/* + * Copyright 2011 Yahoo! Inc. + * All rights reserved. + *- + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Yahoo! Inc. nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + *- + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +YUI().use('node', function(Y) { + var code = Y.all('.prettyprint.linenums'); + if (code.size()) { + code.each(function(c) { + var lis = c.all('ol li'), + l = 1; + lis.each(function(n) { + n.prepend(''); + l++; + }); + }); + var h = location.hash; + location.hash = ''; + h = h.replace('LINE_', 'LINENUM_'); + location.hash = h; + } +}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/CHANGES.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/CHANGES.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/CHANGES.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/CHANGES.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,130 @@ + + + + Change Log + + + README + +

    Known Issues

    +
      +
    • Perl formatting is really crappy. Partly because the author is lazy and + partly because Perl is + hard to parse. +
    • On some browsers, <code> elements with newlines in the text + which use CSS to specify white-space:pre will have the newlines + improperly stripped if the element is not attached to the document at the time + the stripping is done. Also, on IE 6, all newlines will be stripped from + <code> elements because of the way IE6 produces + innerHTML. Workaround: use <pre> for code with + newlines. +
    + +

    Change Log

    +

    29 March 2007

    +
      +
    • Added tests for PHP support + to address + issue 3. +
    • Fixed + bug: prettyPrintOne was not halting. This was not + reachable through the normal entry point. +
    • Fixed + bug: recursing into a script block or PHP tag that was not properly + closed would not silently drop the content. + (test) +
    • Fixed + bug: was eating tabs + (test) +
    • Fixed entity handling so that the caveat +
      +

      Caveats: please properly escape less-thans. x&lt;y + instead of x<y, and use " instead of + &quot; for string delimiters.

      +
      + is no longer applicable. +
    • Added noisefree's C# + patch +
    • Added a distribution that has comments and + whitespace removed to reduce download size from 45.5kB to 12.8kB. +
    +

    4 Jul 2008

    +
      +
    • Added language specific formatters that are triggered by the presence + of a lang-<language-file-extension>
    • +
    • Fixed bug: python handling of '''string''' +
    • Fixed bug: / in regex [charsets] should not end regex +
    +

    5 Jul 2008

    +
      +
    • Defined language extensions for Lisp and Lua +
    +

    14 Jul 2008

    +
      +
    • Language handlers for F#, OCAML, SQL +
    • Support for nocode spans to allow embedding of line + numbers and code annotations which should not be styled or otherwise + affect the tokenization of prettified code. + See the issue 22 + testcase. +
    +

    6 Jan 2009

    +
      +
    • Language handlers for Visual Basic, Haskell, CSS, and WikiText
    • +
    • Added .mxml extension to the markup style handler for + Flex MXML files. See + issue 37. +
    • Added .m extension to the C style handler so that Objective + C source files properly highlight. See + issue 58. +
    • Changed HTML lexer to use the same embedded source mechanism as the + wiki language handler, and changed to use the registered + CSS handler for STYLE element content. +
    +

    21 May 2009

    +
      +
    • Rewrote to improve performance on large files. + See benchmarks.
    • +
    • Fixed bugs with highlighting of Haskell line comments, Lisp + number literals, Lua strings, C preprocessor directives, + newlines in Wiki code on Windows, and newlines in IE6.
    • +
    +

    14 August 2009

    +
      +
    • Fixed prettifying of <code> blocks with embedded newlines. +
    +

    3 October 2009

    +
      +
    • Fixed prettifying of XML/HTML tags that contain uppercase letters. +
    +

    19 July 2010

    +
      +
    • Added support for line numbers. Bug + 22
    • +
    • Added YAML support. Bug + 123
    • +
    • Added VHDL support courtesy Le Poussin.
    • +
    • IE performance improvements. Bug + 102 courtesy jacobly.
    • +
    • A variety of markup formatting fixes courtesy smain and thezbyg.
    • +
    • Fixed copy and paste in IE[678]. +
    • Changed output to use &#160; instead of + &nbsp; so that the output works when embedded in XML. + Bug + 108.
    • +
    + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/COPYING unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/COPYING --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/COPYING 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/COPYING 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/prettify-min.css unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/prettify-min.css --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/prettify-min.css 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/prettify-min.css 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1 @@ +.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} \ No newline at end of file diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/prettify-min.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/prettify-min.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/prettify-min.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/prettify-min.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,28 @@ +/* + * Copyright 2011 Yahoo! Inc. + * All rights reserved. + *- + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Yahoo! Inc. nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + *- + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +window.PR_SHOULD_USE_CONTINUATION=true;var prettyPrintOne;var prettyPrint;(function(){var O=window;var j=["break,continue,do,else,for,if,return,while"];var v=[j,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var q=[v,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var m=[q,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var y=[q,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var T=[y,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"];var s="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes";var x=[q,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var t="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var J=[j,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var g=[j,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var I=[j,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var B=[m,T,x,t+J,g,I];var f=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/;var D="str";var A="kwd";var k="com";var Q="typ";var H="lit";var M="pun";var G="pln";var n="tag";var F="dec";var K="src";var R="atn";var o="atv";var P="nocode";var N="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function l(ab){var af=0;var U=false;var ae=false;for(var X=0,W=ab.length;X122)){if(!(am<65||ai>90)){ah.push([Math.max(65,ai)|32,Math.min(am,90)|32])}if(!(am<97||ai>122)){ah.push([Math.max(97,ai)&~32,Math.min(am,122)&~32])}}}}ah.sort(function(aw,av){return(aw[0]-av[0])||(av[1]-aw[1])});var ak=[];var aq=[];for(var at=0;atau[0]){if(au[1]+1>au[0]){ao.push("-")}ao.push(V(au[1]))}}ao.push("]");return ao.join("")}function Y(an){var al=an.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var aj=al.length;var ap=[];for(var am=0,ao=0;am=2&&ak==="["){al[am]=Z(ai)}else{if(ak!=="\\"){al[am]=ai.replace(/[a-zA-Z]/g,function(aq){var ar=aq.charCodeAt(0);return"["+String.fromCharCode(ar&~32,ar|32)+"]"})}}}}return al.join("")}var ac=[];for(var X=0,W=ab.length;X=0;){U[ae.charAt(ag)]=aa}}var ah=aa[1];var ac=""+ah;if(!ai.hasOwnProperty(ac)){aj.push(ah);ai[ac]=null}}aj.push(/[\0-\uffff]/);X=l(aj)})();var Z=V.length;var Y=function(aj){var ab=aj.sourceCode,aa=aj.basePos;var af=[aa,G];var ah=0;var ap=ab.match(X)||[];var al={};for(var ag=0,at=ap.length;ag=5&&"lang-"===ar.substring(0,5);if(ao&&!(ak&&typeof ak[1]==="string")){ao=false;ar=K}if(!ao){al[ai]=ar}}var ad=ah;ah+=ai.length;if(!ao){af.push(aa+ad,ar)}else{var an=ak[1];var am=ai.indexOf(an);var ae=am+an.length;if(ak[2]){ae=ai.length-ak[2].length;am=ae-an.length}var au=ar.substring(5);C(aa+ad,ai.substring(0,am),Y,af);C(aa+ad+am,an,r(au,an),af);C(aa+ad+ae,ai.substring(ae),Y,af)}}aj.decorations=af};return Y}function i(V){var Y=[],U=[];if(V.tripleQuotedStrings){Y.push([D,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(V.multiLineStrings){Y.push([D,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{Y.push([D,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(V.verbatimStrings){U.push([D,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var ab=V.hashComments;if(ab){if(V.cStyleComments){if(ab>1){Y.push([k,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{Y.push([k,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}U.push([D,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])}else{Y.push([k,/^#[^\r\n]*/,null,"#"])}}if(V.cStyleComments){U.push([k,/^\/\/[^\r\n]*/,null]);U.push([k,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(V.regexLiterals){var aa=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");U.push(["lang-regex",new RegExp("^"+N+"("+aa+")")])}var X=V.types;if(X){U.push([Q,X])}var W=(""+V.keywords).replace(/^ | $/g,"");if(W.length){U.push([A,new RegExp("^(?:"+W.replace(/[\s,]+/g,"|")+")\\b"),null])}Y.push([G,/^\s+/,null," \r\n\t\xA0"]);var Z=/^.[^\s\w\.$@\'\"\`\/\\]*/;U.push([H,/^@[a-z_$][a-z_$@0-9]*/i,null],[Q,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[G,/^[a-z_$][a-z_$@0-9]*/i,null],[H,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[G,/^\\[\s\S]?/,null],[M,Z,null]);return h(Y,U)}var L=i({keywords:B,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function S(W,ah,aa){var V=/(?:^|\s)nocode(?:\s|$)/;var ac=/\r\n?|\n/;var ad=W.ownerDocument;var ag=ad.createElement("li");while(W.firstChild){ag.appendChild(W.firstChild)}var X=[ag];function af(am){switch(am.nodeType){case 1:if(V.test(am.className)){break}if("br"===am.nodeName){ae(am);if(am.parentNode){am.parentNode.removeChild(am)}}else{for(var ao=am.firstChild;ao;ao=ao.nextSibling){af(ao)}}break;case 3:case 4:if(aa){var an=am.nodeValue;var ak=an.match(ac);if(ak){var aj=an.substring(0,ak.index);am.nodeValue=aj;var ai=an.substring(ak.index+ak[0].length);if(ai){var al=am.parentNode;al.insertBefore(ad.createTextNode(ai),am.nextSibling)}ae(am);if(!aj){am.parentNode.removeChild(am)}}}break}}function ae(al){while(!al.nextSibling){al=al.parentNode;if(!al){return}}function aj(am,at){var ar=at?am.cloneNode(false):am;var ap=am.parentNode;if(ap){var aq=aj(ap,1);var ao=am.nextSibling;aq.appendChild(ar);for(var an=ao;an;an=ao){ao=an.nextSibling;aq.appendChild(an)}}return ar}var ai=aj(al.nextSibling,0);for(var ak;(ak=ai.parentNode)&&ak.nodeType===1;){ai=ak}X.push(ai)}for(var Z=0;Z=U){aj+=2}if(Y>=ar){ac+=2}}}finally{if(au){au.style.display=ak}}}var u={};function d(W,X){for(var U=X.length;--U>=0;){var V=X[U];if(!u.hasOwnProperty(V)){u[V]=W}else{if(O.console){console.warn("cannot override language handler %s",V)}}}}function r(V,U){if(!(V&&u.hasOwnProperty(V))){V=/^\s*]*(?:>|$)/],[k,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[M,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);d(h([[G,/^[\s]+/,null," \t\r\n"],[o,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[n,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[R,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[M,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);d(h([],[[o,/^[\s\S]+/]]),["uq.val"]);d(i({keywords:m,hashComments:true,cStyleComments:true,types:f}),["c","cc","cpp","cxx","cyc","m"]);d(i({keywords:"null,true,false"}),["json"]);d(i({keywords:T,hashComments:true,cStyleComments:true,verbatimStrings:true,types:f}),["cs"]);d(i({keywords:y,cStyleComments:true}),["java"]);d(i({keywords:I,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);d(i({keywords:J,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);d(i({keywords:t,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);d(i({keywords:g,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);d(i({keywords:x,cStyleComments:true,regexLiterals:true}),["js"]);d(i({keywords:s,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);d(h([],[[D,/^[\s\S]+/]]),["regex"]);function e(X){var W=X.langExtension;try{var U=b(X.sourceNode,X.pre);var V=U.sourceCode;X.sourceCode=V;X.spans=U.spans;X.basePos=0;r(W,V)(X);E(X)}catch(Y){if(O.console){console.log(Y&&Y.stack?Y.stack:Y)}}}function z(Y,X,W){var U=document.createElement("pre");U.innerHTML=Y;if(W){S(U,W,true)}var V={langExtension:X,numberLines:W,sourceNode:U,pre:1};e(V);return U.innerHTML}function c(aj){function ab(al){return document.getElementsByTagName(al)}var ah=[ab("pre"),ab("code"),ab("xmp")];var V=[];for(var ae=0;ae]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/README.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/README.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/README.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/assets/vendor/prettify/README.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,203 @@ + + + + + Javascript code prettifier + + + + + + + + + + Languages : CH +

    Javascript code prettifier

    + +

    Setup

    +
      +
    1. Download a distribution +
    2. Include the script and stylesheets in your document + (you will need to make sure the css and js file are on your server, and + adjust the paths in the script and link tag) +
      +<link href="prettify.css" type="text/css" rel="stylesheet" />
      +<script type="text/javascript" src="prettify.js"></script>
      +
    3. Add onload="prettyPrint()" to your + document's body tag. +
    4. Modify the stylesheet to get the coloring you prefer
    5. +
    + +

    Usage

    +

    Put code snippets in + <pre class="prettyprint">...</pre> + or <code class="prettyprint">...</code> + and it will automatically be pretty printed. + + + + +
    The original + Prettier +
    class Voila {
    +public:
    +  // Voila
    +  static const string VOILA = "Voila";
    +
    +  // will not interfere with embedded tags.
    +}
    + +
    class Voila {
    +public:
    +  // Voila
    +  static const string VOILA = "Voila";
    +
    +  // will not interfere with embedded tags.
    +}
    +
    + +

    FAQ

    +

    Which languages does it work for?

    +

    The comments in prettify.js are authoritative but the lexer + should work on a number of languages including C and friends, + Java, Python, Bash, SQL, HTML, XML, CSS, Javascript, and Makefiles. + It works passably on Ruby, PHP, VB, and Awk and a decent subset of Perl + and Ruby, but, because of commenting conventions, doesn't work on + Smalltalk, or CAML-like languages.

    + +

    LISPy languages are supported via an extension: + lang-lisp.js.

    +

    And similarly for + CSS, + Haskell, + Lua, + OCAML, SML, F#, + Visual Basic, + SQL, + Protocol Buffers, and + WikiText.. + +

    If you'd like to add an extension for your favorite language, please + look at src/lang-lisp.js and file an + issue including your language extension, and a testcase.

    + +

    How do I specify which language my code is in?

    +

    You don't need to specify the language since prettyprint() + will guess. You can specify a language by specifying the language extension + along with the prettyprint class like so:

    +
    <pre class="prettyprint lang-html">
    +  The lang-* class specifies the language file extensions.
    +  File extensions supported by default include
    +    "bsh", "c", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html",
    +    "java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh",
    +    "xhtml", "xml", "xsl".
    +</pre>
    + +

    It doesn't work on <obfuscated code sample>?

    +

    Yes. Prettifying obfuscated code is like putting lipstick on a pig + — i.e. outside the scope of this tool.

    + +

    Which browsers does it work with?

    +

    It's been tested with IE 6, Firefox 1.5 & 2, and Safari 2.0.4. + Look at the test page to see if it + works in your browser.

    + +

    What's changed?

    +

    See the change log

    + +

    Why doesn't Prettyprinting of strings work on WordPress?

    +

    Apparently wordpress does "smart quoting" which changes close quotes. + This causes end quotes to not match up with open quotes. +

    This breaks prettifying as well as copying and pasting of code samples. + See + WordPress's help center for info on how to stop smart quoting of code + snippets.

    + +

    How do I put line numbers in my code?

    +

    You can use the linenums class to turn on line + numbering. If your code doesn't start at line number 1, you can + add a colon and a line number to the end of that class as in + linenums:52. + +

    For example +

    <pre class="prettyprint linenums:4"
    +>// This is line 4.
    +foo();
    +bar();
    +baz();
    +boo();
    +far();
    +faz();
    +<pre>
    + produces +
    // This is line 4.
    +foo();
    +bar();
    +baz();
    +boo();
    +far();
    +faz();
    +
    + +

    How do I prevent a portion of markup from being marked as code?

    +

    You can use the nocode class to identify a span of markup + that is not code. +

    <pre class=prettyprint>
    +int x = foo();  /* This is a comment  <span class="nocode">This is not code</span>
    +  Continuation of comment */
    +int y = bar();
    +</pre>
    +produces +
    +int x = foo();  /* This is a comment  This is not code
    +  Continuation of comment */
    +int y = bar();
    +
    + +

    For a more complete example see the issue22 + testcase.

    + +

    I get an error message "a is not a function" or "opt_whenDone is not a function"

    +

    If you are calling prettyPrint via an event handler, wrap it in a function. + Instead of doing +

    + addEventListener('load', prettyPrint, false); +
    + wrap it in a closure like +
    + addEventListener('load', function (event) { prettyPrint() }, false); +
    + so that the browser does not pass an event object to prettyPrint which + will confuse it. + +


    + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/classes/AlarmApi.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/classes/AlarmApi.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/classes/AlarmApi.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/classes/AlarmApi.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,289 @@ + + + + + AlarmApi - Alarms JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    Class AlarmApi

    +Class defined in: alarm-api.js:254 +

    The AlarmApi object

    +
    + + +
    + AlarmApi( ) +
    + + + alarm-api.js:254 +
    + +
    Example
    +
      var date = new Date();
    +      <set a valid date in the future>
    +    
    +      var api = external.getUnityObject('1.0');
    +      api.AlarmApi.api.createAndSaveAlarmFor(
    +         date,
    +         api.AlarmApi.AlarmType.OneTime,
    +         api.AlarmApi.AlarmDayOfWeek.AutoDetect,
    +         "alarm triggered",
    +         function(errorid) {
    +             console.log(api.AlarmApi.api.errorToMessage(errorid));
    +         });
    + +
    + +
    + +
    +
    + +
    + api.createAndSaveAlarmFor( date, type, daysOfWeek, message, callback ) +
    + + + alarm-api.js:435 +
    +

    Creates and saves a new alarm.

    + + Parameters: +
      +
    • + date <Date> +

      date at which the alarm is to be triggered.

      + +
    • +
    • + type <AlarmType> +

      type of the alarm.

      + +
    • +
    • + daysOfWeek <AlarmDayOfWeek> +

      days of the week the alarm is scheduled.

      + +
    • +
    • + message <String> +

      Message to be displayed when the alarm is triggered.

      + +
    • +
    • + callback <Function(AlarmError)> +

      (optional) Function to be called when the alarm has been saved.

      + +
    • +
    +
    + +
    + api.errorToMessage( error ) +
    + + + alarm-api.js:450 +
    +

    Returns a message adapted to the given error id.

    + + Parameters: +
      +
    • + error <AlarmError> +

      error id.

      + +
    • +
    +
    + +
    + createAlarm( callback ) +
    + + + alarm-api.js:422 +
    +

    Creates a Alarm object.

    + + Parameters: +
      +
    • + callback <Function(Alarm)> +

      Function called with the created Alarm.

      + +
    • +
    +
    +
    +
    + +
    + AlarmDayOfWeek <Integer> (static)
    + alarm-api.js:303 +

    Flags for the week days an Alarm should be triggered.

    +

    Values:

    +
    Monday: The alarm will kick on Mondays
    +                
    +                Tuesday: The alarm will kick on Tuesdays
    +                
    +                Wednesday: The alarm will kick on Wednesday
    +                
    +                Thursday: The alarm will kick on Thursday
    +                
    +                Friday: The alarm will kick on Friday
    +                
    +                Saturday: The alarm will kick on Saturday
    +                
    +                Sunday: The alarm will kick on Sunday
    +                
    +                AutoDetect: The alarm day will be detected
    +                  from the alarm date.
    + +
    Example
    +
    var api = external.getUnityObject('1.0');
    +                var dayofweek = api.AlarmApi.AlarmDayOfWeek;
    +                // use dayofweek.Monday or/and dayofweek.Tuesday, etc.
    + +
    + +
    + AlarmError <Integer> (static)
    + alarm-api.js:360 +

    Error ids returned during AlarmApi calls.

    +

    Values:

    +
    NoError: Successful operation completion
    +                
    +                InvalidDate: The date specified for the alarm was invalid
    +                
    +                EarlyDate: The date specified for the alarm is an earlier
    +                    date than the current one
    +                
    +                NbDaysOfWeek: The daysOfWeek parameter of the alarm was not specified
    +                
    +                OneTimeOnMoreDays: The one-time alarm was set to be kicked in several days
    +                
    +                InvalidEvent: The alarm event is invalid
    +                
    +                AdaptationError: The error occurred in alarm adaptation layer.
    +                    Adaptations may define additional behind this value
    + +
    Example
    +
    var date = new Date();
    +                <set a valid date in the future>
    +                
    +                var api = external.getUnityObject('1.0');
    +                api.AlarmApi.api.createAndSaveAlarmFor(
    +                  date,
    +                  api.AlarmApi.AlarmType.OneTime,
    +                  api.AlarmApi.AlarmDayOfWeek.AutoDetect,
    +                  "alarm triggered",
    +                  function(errorid) {
    +                    console.log(api.AlarmApi.api.errorToMessage(errorid));
    +                  });
    + +
    + +
    + AlarmType <Object> (static)
    + alarm-api.js:275 +

    Enumeration of the available types of Alarm.

    +

    Values:

    +
    OneTime: The alarm occurs only once
    +                
    +                Repeating: The alarm is a repeating one,
    +                    either daily, weekly on a given day
    +                    or on selected days
    + +
    Example
    +
    var api = external.getUnityObject('1.0');
    +                var alarmtype = api.AlarmApi.AlarmType;
    +                // use alarmtype.OneTime or alarmtype.Repeating
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/classes/Alarm.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/classes/Alarm.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/classes/Alarm.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/classes/Alarm.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,481 @@ + + + + + Alarm - Alarms JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    Class Alarm

    +Class defined in: alarm-api.js:9 +

    An Alarm.

    +
    + + +
    + Alarm( ) +
    + + + alarm-api.js:9 +
    + +
    Example
    +
     var date = new Date();
    +     <set a valid date in the future>
    +    
    +     var api = external.getUnityObject('1.0');
    +     api.AlarmApi.api.createAndSaveAlarmFor(
    +         date,
    +         api.AlarmApi.AlarmType.OneTime,
    +         api.AlarmApi.AlarmDayOfWeek.AutoDetect,
    +         "alarm triggered",
    +         function(errorid) {
    +             console.log(api.AlarmApi.api.errorToMessage(errorid));
    +         });
    + +
    + +
    + +
    +
    + +
    + cancel( ) +
    + + + alarm-api.js:206 +
    +

    Cancels a given Alarm.

    + +
    + +
    + daysOfWeek( callback ) +
    + + + alarm-api.js:180 +
    +

    Retrieves the alarm day of the week.

    +

    The property holds the days of the week the alarm is scheduled. + This property can have only one day set for one time alarms and multiple days for repeating alarms.

    + + Parameters: +
      +
    • + callback <Function(AlarmType)> + +
    • +
    +
    + +
    + destroy( ) +
    + + + alarm-api.js:235 +
    +

    Destroys the remote object. This proxy object is not valid anymore.

    + +
    + +
    + enabled( callback ) +
    + + + alarm-api.js:74 +
    +

    Retrieves the alarm's enabled state.

    +

    The property specifies whether the alarm is enabled or not. + Disable dalarms are not scheduled. The default value is true

    + + Parameters: +
      +
    • + callback <Function(Boolean)> + +
    • +
    +
    + +
    + error( callback ) +
    + + + alarm-api.js:37 +
    +

    The property holds the error code occurred during the last performed operation.

    + + Parameters: +
      +
    • + callback <Function(Error)> + +
    • +
    +
    + +
    + error( callback ) +
    + + + alarm-api.js:47 +
    +

    Retrieves the alarm date.

    +

    The date property holds the date the alarm will be triggered. + The default value is the current date and time the alarm object was created. + Further reset calls will bring the value back to the time the reset was called.

    + + Parameters: +
      +
    • + callback <Function(Date)> + +
    • +
    +
    + +
    + message( callback ) +
    + + + alarm-api.js:97 +
    +

    Retrieves the alarm message.

    +

    The property holds the message string which will be displayed when the alarm is triggered. + The default value is the localized "Alarm" text

    + + Parameters: +
      +
    • + callback <Function(String)> + +
    • +
    +
    + +
    + reset( ) +
    + + + alarm-api.js:215 +
    +

    Resets a given Alarm.

    + +
    + +
    + save( ) +
    + + + alarm-api.js:224 +
    +

    Saves the alarm as a system wide alarm with the parameters previously set.

    + +
    + +
    + setDate( date, callback ) +
    + + + alarm-api.js:63 +
    +

    Sets the alarm date.

    + + Parameters: +
      +
    • + date <Date> + +
    • +
    • + callback <Function()> +

      (optional) To be called after the date is set.

      + +
    • +
    +
    + +
    + setDaysOfWeek( daysOfWeek, callback ) +
    + + + alarm-api.js:192 +
    +

    Sets the alarm day of the week.

    + + Parameters: +
      +
    • + daysOfWeek <AlarmDayOfWeek> + +
    • +
    • + callback <Function()> +

      (optional) To be called after the day of the week is set.

      + +
    • +
    +
    + +
    + setEnabled( enabled, callback ) +
    + + + alarm-api.js:86 +
    +

    Sets the alarm's enabled state.

    + + Parameters: +
      +
    • + enabled <Boolean> + +
    • +
    • + callback <Function()> +

      (optional) To be called after the enabled state is set.

      + +
    • +
    +
    + +
    + setMessage( message, callback ) +
    + + + alarm-api.js:109 +
    +

    Sets the alarm message.

    + + Parameters: +
      +
    • + message <String> + +
    • +
    • + callback <Function()> +

      (optional) To be called after the message is set.

      + +
    • +
    +
    + +
    + setSound( sound, callback ) +
    + + + alarm-api.js:134 +
    +

    Sets the alarm sound.

    + + Parameters: +
      +
    • + sound <String> + +
    • +
    • + callback <Function()> +

      (optional) To be called after the sound is set.

      + +
    • +
    +
    + +
    + setType( type, callback ) +
    + + + alarm-api.js:169 +
    +

    Sets the alarm type.

    + + Parameters: +
      +
    • + type <AlarmType> + +
    • +
    • + callback <Function()> +

      (optional) To be called after the type is set.

      + +
    • +
    +
    + +
    + sound( callback ) +
    + + + alarm-api.js:120 +
    +

    Retrieves the alarm sound.

    +

    The property holds the alarm's sound to be played when the alarm is triggered. + An empty url will mean to play the default sound.

    +

    The default value is an empty url.

    + + Parameters: +
      +
    • + callback <Function(String)> + +
    • +
    +
    + +
    + status( callback ) +
    + + + alarm-api.js:145 +
    +

    Retrieves the alarm status.

    +

    The property holds the status of the last performed operation

    + + Parameters: +
      +
    • + callback <Function(String)> + +
    • +
    +
    + +
    + type( callback ) +
    + + + alarm-api.js:157 +
    +

    Retrieves the alarm type.

    +

    The property holds the type of the alarm. + The default value is AlarmType.OneTime

    + + Parameters: +
      +
    • + callback <Function(AlarmType)> + +
    • +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/data.json unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/data.json --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/data.json 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/data.json 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,491 @@ +{ + "project": { + "name": "Alarms JS API", + "description": "Ubuntu App Platform Alarms JavaScript API docs", + "version": "0.1" + }, + "files": { + "alarm-api.js": { + "name": "alarm-api.js", + "modules": { + "AlarmApi": 1 + }, + "classes": { + "Alarm": 1, + "AlarmApi": 1 + }, + "fors": {}, + "namespaces": {} + } + }, + "modules": { + "AlarmApi": { + "name": "AlarmApi", + "submodules": {}, + "classes": { + "Alarm": 1, + "AlarmApi": 1 + }, + "fors": {}, + "namespaces": {}, + "tag": "module", + "file": "alarm-api.js", + "line": 254, + "description": "AlarmApi gives access to Alarm management." + } + }, + "classes": { + "Alarm": { + "name": "Alarm", + "shortname": "Alarm", + "classitems": [], + "plugins": [], + "extensions": [], + "plugin_for": [], + "extension_for": [], + "module": "AlarmApi", + "namespace": "", + "file": "alarm-api.js", + "line": 9, + "description": "An Alarm.", + "is_constructor": 1, + "example": [ + "\n\n var date = new Date();\n \n\n var api = external.getUnityObject('1.0');\n api.AlarmApi.api.createAndSaveAlarmFor(\n date,\n api.AlarmApi.AlarmType.OneTime,\n api.AlarmApi.AlarmDayOfWeek.AutoDetect,\n \"alarm triggered\",\n function(errorid) {\n console.log(api.AlarmApi.api.errorToMessage(errorid));\n });" + ] + }, + "AlarmApi": { + "name": "AlarmApi", + "shortname": "AlarmApi", + "classitems": [], + "plugins": [], + "extensions": [], + "plugin_for": [], + "extension_for": [], + "module": "AlarmApi", + "namespace": "", + "file": "alarm-api.js", + "line": 254, + "description": "The AlarmApi object", + "is_constructor": 1, + "example": [ + "\n\n var date = new Date();\n \n\n var api = external.getUnityObject('1.0');\n api.AlarmApi.api.createAndSaveAlarmFor(\n date,\n api.AlarmApi.AlarmType.OneTime,\n api.AlarmApi.AlarmDayOfWeek.AutoDetect,\n \"alarm triggered\",\n function(errorid) {\n console.log(api.AlarmApi.api.errorToMessage(errorid));\n });" + ] + } + }, + "classitems": [ + { + "file": "alarm-api.js", + "line": 37, + "description": "The property holds the error code occurred during the last performed operation.", + "itemtype": "method", + "name": "error", + "params": [ + { + "name": "callback", + "description": "", + "type": "Function(Error)" + } + ], + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 47, + "description": "Retrieves the alarm date.\n\nThe date property holds the date the alarm will be triggered.\nThe default value is the current date and time the alarm object was created.\nFurther reset calls will bring the value back to the time the reset was called.", + "itemtype": "method", + "name": "error", + "params": [ + { + "name": "callback", + "description": "", + "type": "Function(Date)" + } + ], + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 63, + "description": "Sets the alarm date.", + "itemtype": "method", + "name": "setDate", + "params": [ + { + "name": "date", + "description": "", + "type": "Date" + }, + { + "name": "callback", + "description": "(optional) To be called after the date is set.", + "type": "Function()" + } + ], + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 74, + "description": "Retrieves the alarm's enabled state.\n\nThe property specifies whether the alarm is enabled or not.\nDisable dalarms are not scheduled. The default value is true", + "itemtype": "method", + "name": "enabled", + "params": [ + { + "name": "callback", + "description": "", + "type": "Function(Boolean)" + } + ], + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 86, + "description": "Sets the alarm's enabled state.", + "itemtype": "method", + "name": "setEnabled", + "params": [ + { + "name": "enabled", + "description": "", + "type": "Boolean" + }, + { + "name": "callback", + "description": "(optional) To be called after the enabled state is set.", + "type": "Function()" + } + ], + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 97, + "description": "Retrieves the alarm message.\n\nThe property holds the message string which will be displayed when the alarm is triggered.\nThe default value is the localized \"Alarm\" text", + "itemtype": "method", + "name": "message", + "params": [ + { + "name": "callback", + "description": "", + "type": "Function(String)" + } + ], + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 109, + "description": "Sets the alarm message.", + "itemtype": "method", + "name": "setMessage", + "params": [ + { + "name": "message", + "description": "", + "type": "String" + }, + { + "name": "callback", + "description": "(optional) To be called after the message is set.", + "type": "Function()" + } + ], + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 120, + "description": "Retrieves the alarm sound.\n\nThe property holds the alarm's sound to be played when the alarm is triggered.\nAn empty url will mean to play the default sound.\n\nThe default value is an empty url.", + "itemtype": "method", + "name": "sound", + "params": [ + { + "name": "callback", + "description": "", + "type": "Function(String)" + } + ], + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 134, + "description": "Sets the alarm sound.", + "itemtype": "method", + "name": "setSound", + "params": [ + { + "name": "sound", + "description": "", + "type": "String" + }, + { + "name": "callback", + "description": "(optional) To be called after the sound is set.", + "type": "Function()" + } + ], + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 145, + "description": "Retrieves the alarm status.\n\nThe property holds the status of the last performed operation", + "itemtype": "method", + "name": "status", + "params": [ + { + "name": "callback", + "description": "", + "type": "Function(String)" + } + ], + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 157, + "description": "Retrieves the alarm type.\n\nThe property holds the type of the alarm.\nThe default value is AlarmType.OneTime", + "itemtype": "method", + "name": "type", + "params": [ + { + "name": "callback", + "description": "", + "type": "Function(AlarmType)" + } + ], + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 169, + "description": "Sets the alarm type.", + "itemtype": "method", + "name": "setType", + "params": [ + { + "name": "type", + "description": "", + "type": "AlarmType" + }, + { + "name": "callback", + "description": "(optional) To be called after the type is set.", + "type": "Function()" + } + ], + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 180, + "description": "Retrieves the alarm day of the week.\n\nThe property holds the days of the week the alarm is scheduled.\nThis property can have only one day set for one time alarms and multiple days for repeating alarms.", + "itemtype": "method", + "name": "daysOfWeek", + "params": [ + { + "name": "callback", + "description": "", + "type": "Function(AlarmType)" + } + ], + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 192, + "description": "Sets the alarm day of the week.", + "itemtype": "method", + "name": "setDaysOfWeek", + "params": [ + { + "name": "daysOfWeek", + "description": "", + "type": "AlarmDayOfWeek" + }, + { + "name": "callback", + "description": "(optional) To be called after the day of the week is set.", + "type": "Function()" + } + ], + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 206, + "description": "Cancels a given Alarm.", + "itemtype": "method", + "name": "cancel", + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 215, + "description": "Resets a given Alarm.", + "itemtype": "method", + "name": "reset", + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 224, + "description": "Saves the alarm as a system wide alarm with the parameters previously set.", + "itemtype": "method", + "name": "save", + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 235, + "description": "Destroys the remote object. This proxy object is not valid anymore.", + "itemtype": "method", + "name": "destroy", + "class": "Alarm", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 275, + "description": "Enumeration of the available types of Alarm.\n\n Values:\n\n OneTime: The alarm occurs only once\n\n Repeating: The alarm is a repeating one,\n either daily, weekly on a given day\n or on selected days", + "static": 1, + "itemtype": "property", + "name": "AlarmType", + "type": "Object", + "example": [ + "\n\n var api = external.getUnityObject('1.0');\n var alarmtype = api.AlarmApi.AlarmType;\n // use alarmtype.OneTime or alarmtype.Repeating" + ], + "class": "AlarmApi", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 303, + "description": "Flags for the week days an Alarm should be triggered.\n\n Values:\n\n Monday: The alarm will kick on Mondays\n\n Tuesday: The alarm will kick on Tuesdays\n\n Wednesday: The alarm will kick on Wednesday\n\n Thursday: The alarm will kick on Thursday\n\n Friday: The alarm will kick on Friday\n\n Saturday: The alarm will kick on Saturday\n\n Sunday: The alarm will kick on Sunday\n\n AutoDetect: The alarm day will be detected\n from the alarm date.", + "static": 1, + "itemtype": "property", + "name": "AlarmDayOfWeek", + "type": "Integer", + "example": [ + "\n\n var api = external.getUnityObject('1.0');\n var dayofweek = api.AlarmApi.AlarmDayOfWeek;\n // use dayofweek.Monday or/and dayofweek.Tuesday, etc." + ], + "class": "AlarmApi", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 360, + "description": "Error ids returned during AlarmApi calls.\n\n Values:\n\n NoError: Successful operation completion\n \n InvalidDate: The date specified for the alarm was invalid\n \n EarlyDate: The date specified for the alarm is an earlier\n date than the current one\n\n NbDaysOfWeek: The daysOfWeek parameter of the alarm was not specified\n \n OneTimeOnMoreDays: The one-time alarm was set to be kicked in several days\n \n InvalidEvent: The alarm event is invalid\n \n AdaptationError: The error occurred in alarm adaptation layer.\n Adaptations may define additional behind this value", + "static": 1, + "itemtype": "property", + "name": "AlarmError", + "type": "Integer", + "example": [ + "\n var date = new Date();\n \n\n var api = external.getUnityObject('1.0');\n api.AlarmApi.api.createAndSaveAlarmFor(\n date,\n api.AlarmApi.AlarmType.OneTime,\n api.AlarmApi.AlarmDayOfWeek.AutoDetect,\n \"alarm triggered\",\n function(errorid) {\n console.log(api.AlarmApi.api.errorToMessage(errorid));\n });" + ], + "class": "AlarmApi", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 422, + "description": "Creates a Alarm object.", + "itemtype": "method", + "name": "createAlarm", + "params": [ + { + "name": "callback", + "description": "Function called with the created Alarm.", + "type": "Function(Alarm)" + } + ], + "class": "AlarmApi", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 435, + "description": "Creates and saves a new alarm.", + "itemtype": "method", + "name": "api.createAndSaveAlarmFor", + "params": [ + { + "name": "date", + "description": "date at which the alarm is to be triggered.", + "type": "Date" + }, + { + "name": "type", + "description": "type of the alarm.", + "type": "AlarmType" + }, + { + "name": "daysOfWeek", + "description": "days of the week the alarm is scheduled.", + "type": "AlarmDayOfWeek" + }, + { + "name": "message", + "description": "Message to be displayed when the alarm is triggered.", + "type": "String" + }, + { + "name": "callback", + "description": "(optional) Function to be called when the alarm has been saved.", + "type": "Function(AlarmError)" + } + ], + "class": "AlarmApi", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 450, + "description": "Returns a message adapted to the given error id.", + "itemtype": "method", + "name": "api.errorToMessage", + "params": [ + { + "name": "error", + "description": "error id.", + "type": "AlarmError" + } + ], + "class": "AlarmApi", + "module": "AlarmApi" + }, + { + "file": "alarm-api.js", + "line": 475, + "access": "private", + "tagname": "", + "class": "AlarmApi", + "module": "AlarmApi" + } + ], + "warnings": [ + { + "message": "Missing item type", + "line": " alarm-api.js:475" + } + ] +} \ No newline at end of file diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/files/alarm-api.js.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/files/alarm-api.js.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/files/alarm-api.js.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/files/alarm-api.js.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,566 @@ + + + + + alarm-api.js - Alarms JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    alarm-api.js

    + +
    +/**
    + * AlarmApi gives access to Alarm management.
    +
    + * @module AlarmApi
    + */
    +function createAlarmApi(backendBridge) {
    +    var PLUGIN_URI = 'Alarm';
    +
    +/**
    + * An Alarm.
    +
    + * @class Alarm
    + * @constructor
    + * @example
    +
    +      var date = new Date();
    +      <set a valid date in the future>
    +
    +      var api = external.getUnityObject('1.0');
    +      api.AlarmApi.api.createAndSaveAlarmFor(
    +          date,
    +          api.AlarmApi.AlarmType.OneTime,
    +          api.AlarmApi.AlarmDayOfWeek.AutoDetect,
    +          "alarm triggered",
    +          function(errorid) {
    +              console.log(api.AlarmApi.api.errorToMessage(errorid));
    +          });
    + */
    +    function Alarm(id) {
    +        this._proxy = backendBridge.createRemoteObject(
    +            PLUGIN_URI, 'Alarm', id);
    +    };
    +    Alarm.prototype = {
    +
    +        // properties
    +
    +        /**
    +         * The property holds the error code occurred during the last performed operation.
    +         *
    +         * @method error
    +         * @param callback {Function(Error)}
    +         */
    +        error: function(callback) {
    +            this._proxy.call('error', [], callback);
    +        },
    +
    +        /**
    +         * Retrieves the alarm date.
    +         *
    +         * The date property holds the date the alarm will be triggered.
    +         * The default value is the current date and time the alarm object was created.
    +         * Further reset calls will bring the value back to the time the reset was called.
    +         *
    +         * @method error
    +         * @param callback {Function(Date)}
    +         */
    +        date: function(callback) {
    +            this._proxy.call('date', []
    +                             , function(datems) {
    +                                 var d = new Date(); d.setTime(datems); return d;
    +                             });
    +        },
    +        /**
    +         * Sets the alarm date.
    +         *
    +         * @method setDate
    +         * @param date {Date}
    +         * @param callback (optional) {Function()} To be called after the date is set.
    +         */
    +        setDate: function(date, callback) {
    +            this._proxy.call('setDate', [date.getTime(), callback]);
    +        },
    +
    +        /**
    +         * Retrieves the alarm's enabled state.
    +         *
    +         * The property specifies whether the alarm is enabled or not.
    +         * Disable dalarms are not scheduled. The default value is true
    +         *
    +         * @method enabled
    +         * @param callback {Function(Boolean)}
    +         */
    +        enabled: function(callback) {
    +            this._proxy.call('enabled', [], callback);
    +        },
    +        /**
    +         * Sets the alarm's enabled state.
    +         *
    +         * @method setEnabled
    +         * @param enabled {Boolean}
    +         * @param callback (optional) {Function()} To be called after the enabled state is set.
    +         */
    +        setEnabled: function(enabled, callback) {
    +            this._proxy.call('setEnabled', [enabled, callback]);
    +        },
    +
    +        /**
    +         * Retrieves the alarm message.
    +         *
    +         * The property holds the message string which will be displayed when the alarm is triggered.
    +         * The default value is the localized "Alarm" text
    +         *
    +         * @method message
    +         * @param callback {Function(String)}
    +         */
    +        message: function(callback) {
    +            this._proxy.call('message', [], callback);
    +        },
    +        /**
    +         * Sets the alarm message.
    +         *
    +         * @method setMessage
    +         * @param message {String}
    +         * @param callback (optional) {Function()} To be called after the message is set.
    +         */
    +        setMessage: function(message, callback) {
    +            this._proxy.call('setMessage', [message, callback]);
    +        },
    +
    +        /**
    +         * Retrieves the alarm sound.
    +         *
    +         * The property holds the alarm's sound to be played when the alarm is triggered.
    +         * An empty url will mean to play the default sound.
    +         *
    +         * The default value is an empty url.
    +         *
    +         * @method sound
    +         * @param callback {Function(String)}
    +         */
    +        sound: function(callback) {
    +            this._proxy.call('sound', [], callback);
    +        },
    +        /**
    +         * Sets the alarm sound.
    +         *
    +         * @method setSound
    +         * @param sound {String}
    +         * @param callback (optional) {Function()} To be called after the sound is set.
    +         */
    +        setSound: function(sound, callback) {
    +            this._proxy.call('setSound', [sound, callback]);
    +        },
    +
    +        /**
    +         * Retrieves the alarm status.
    +         *
    +         * The property holds the status of the last performed operation
    +         *
    +         * @method status
    +         * @param callback {Function(String)}
    +         */
    +        status: function(callback) {
    +            this._proxy.call('status', [], callback);
    +        },
    +
    +        /**
    +         * Retrieves the alarm type.
    +         *
    +         * The property holds the type of the alarm.
    +         * The default value is AlarmType.OneTime
    +         *
    +         * @method type
    +         * @param callback {Function(AlarmType)}
    +         */
    +        type: function(callback) {
    +            this._proxy.call('type', [], callback);
    +        },
    +        /**
    +         * Sets the alarm type.
    +         *
    +         * @method setType
    +         * @param type {AlarmType}
    +         * @param callback (optional) {Function()} To be called after the type is set.
    +         */
    +        setType: function(type, callback) {
    +            this._proxy.call('setType', [type, callback]);
    +        },
    +
    +        /**
    +         * Retrieves the alarm day of the week.
    +         *
    +         * The property holds the days of the week the alarm is scheduled.
    +         * This property can have only one day set for one time alarms and multiple days for repeating alarms.
    +         *
    +         * @method daysOfWeek
    +         * @param callback {Function(AlarmType)}
    +         */
    +        daysOfWeek: function(callback) {
    +            this._proxy.call('daysOfWeek', [], callback);
    +        },
    +        /**
    +         * Sets the alarm day of the week.
    +         *
    +         * @method setDaysOfWeek
    +         * @param daysOfWeek {AlarmDayOfWeek}
    +         * @param callback (optional) {Function()} To be called after the day of the week is set.
    +         */
    +        setDaysOfWeek: function(daysOfWeek, callback) {
    +            this._proxy.call('setDaysOfWeek', [daysOfWeek, callback]);
    +        },
    +
    +
    +        // methods
    +
    +        /**
    +         * Cancels a given Alarm.
    +         * 
    +         * @method cancel
    +         */
    +        cancel: function() {
    +            this._proxy.call('cancel', []);
    +        },
    +
    +        /**
    +         * Resets a given Alarm.
    +         * 
    +         * @method reset
    +         */
    +        reset: function() {
    +            this._proxy.call('reset', []);
    +        },
    +
    +        /**
    +         * Saves the alarm as a system wide alarm with the parameters previously set.
    +         *
    +         * @method save
    +         */
    +        save: function() {
    +            this._proxy.call('save', []);
    +        },
    +
    +        // extras
    +
    +        /**
    +         * Destroys the remote object. This proxy object is not valid anymore.
    +         *
    +         * @method destroy
    +         */
    +        destroy: function() {
    +            this._proxy.call('destroy', []);
    +        },
    +    };
    +
    +    function _constructorFromName(className) {
    +        var constructorPerName = {
    +            "Alarm": Alarm,
    +        };
    +        return className in constructorPerName
    +                ? constructorPerName[className]
    +                : null;
    +    };
    +
    +/**
    + * The AlarmApi object
    +
    + * @class AlarmApi
    + * @constructor
    + * @example
    +
    +       var date = new Date();
    +       <set a valid date in the future>
    +
    +       var api = external.getUnityObject('1.0');
    +       api.AlarmApi.api.createAndSaveAlarmFor(
    +          date,
    +          api.AlarmApi.AlarmType.OneTime,
    +          api.AlarmApi.AlarmDayOfWeek.AutoDetect,
    +          "alarm triggered",
    +          function(errorid) {
    +              console.log(api.AlarmApi.api.errorToMessage(errorid));
    +          });
    + */
    +    return {
    +        /**
    +           Enumeration of the available types of Alarm.
    +           
    +             Values:
    +
    +               OneTime: The alarm occurs only once
    +
    +               Repeating: The alarm is a repeating one,
    +                   either daily, weekly on a given day
    +                   or on selected days
    +           
    +           @static
    +           @property AlarmType {Object}
    +           
    +           @example
    +
    +               var api = external.getUnityObject('1.0');
    +               var alarmtype = api.AlarmApi.AlarmType;
    +               // use alarmtype.OneTime or alarmtype.Repeating
    +         */
    +        AlarmType: {
    +            // The alarm occurs only once.
    +            OneTime: "OneTime",
    +
    +            // The alarm is a repeating one, either daily, weekly on a given day or on selected days.
    +            Repeating: "Repeating",
    +        },
    +
    +        /**
    +           Flags for the week days an Alarm should be triggered.
    +           
    +             Values:
    +
    +               Monday: The alarm will kick on Mondays
    +
    +               Tuesday: The alarm will kick on Tuesdays
    +
    +               Wednesday: The alarm will kick on Wednesday
    +
    +               Thursday: The alarm will kick on Thursday
    +
    +               Friday: The alarm will kick on Friday
    +
    +               Saturday: The alarm will kick on Saturday
    +
    +               Sunday: The alarm will kick on Sunday
    +
    +               AutoDetect: The alarm day will be detected
    +                 from the alarm date.
    +           
    +           @static
    +           @property AlarmDayOfWeek {Integer}
    +           
    +           @example
    +
    +               var api = external.getUnityObject('1.0');
    +               var dayofweek = api.AlarmApi.AlarmDayOfWeek;
    +               // use dayofweek.Monday or/and dayofweek.Tuesday, etc.
    +         */
    +        AlarmDayOfWeek: {
    +            // The alarm will kick on Mondays.
    +            Monday: 1,
    +
    +            // The alarm will kick on Tuesdays.
    +            Tuesday: 2,
    +
    +            // The alarm will kick on Wednesdays.
    +            Wednesday: 4,
    +
    +            // The alarm will kick on Thursdays.
    +            Thursday: 8,
    +
    +            // The alarm will kick on Fridays.
    +            Friday: 16,
    +
    +            // The alarm will kick on Saturdays.
    +            Saturday: 32,
    +
    +            // The alarm will kick on Sundays.
    +            Sunday: 64,
    +
    +            // The alarm day will be detected from the alarm date.
    +            AutoDetect: 128,
    +        },
    +
    +        /**
    +         Error ids returned during AlarmApi calls.
    +         
    +           Values:
    +
    +             NoError: Successful operation completion
    +             
    +             InvalidDate: The date specified for the alarm was invalid
    +             
    +             EarlyDate: The date specified for the alarm is an earlier
    +                 date than the current one
    +
    +             NbDaysOfWeek: The daysOfWeek parameter of the alarm was not specified
    +             
    +             OneTimeOnMoreDays: The one-time alarm was set to be kicked in several days
    +             
    +             InvalidEvent: The alarm event is invalid
    +             
    +             AdaptationError: The error occurred in alarm adaptation layer.
    +                 Adaptations may define additional behind this value
    +         
    +          
    +         @static
    +         @property AlarmError {Integer}
    +         
    +         @example
    +             var date = new Date();
    +             <set a valid date in the future>
    +         
    +             var api = external.getUnityObject('1.0');
    +             api.AlarmApi.api.createAndSaveAlarmFor(
    +               date,
    +               api.AlarmApi.AlarmType.OneTime,
    +               api.AlarmApi.AlarmDayOfWeek.AutoDetect,
    +               "alarm triggered",
    +               function(errorid) {
    +                 console.log(api.AlarmApi.api.errorToMessage(errorid));
    +               });
    +         */
    +        AlarmError: {
    +            // Successful operation completion
    +            NoError: 0,
    +
    +            // The date specified for the alarm was invalid
    +            InvalidDate: 1,
    +
    +            // The date specified for the alarm is an earlier date than the current one
    +            EarlyDate: 2,
    +
    +            // The daysOfWeek parameter of the alarm was not specified
    +            NoDaysOfWeek: 3,
    +
    +            // The one-time alarm was set to be kicked in several days
    +            OneTimeOnMoreDays: 4,
    +
    +            // The alarm event is invalid
    +            InvalidEvent: 5,
    +
    +            // The error occurred in alarm adaptation layer. Adaptations may define additional behind this value
    +            AdaptationError: 6,
    +        },
    +
    +        /**
    +         * Creates a Alarm object.
    +         * 
    +         * @method createAlarm
    +         * @param callback {Function(Alarm)} Function called with the created Alarm.
    +         */
    +        createAlarm: function(callback) {
    +            backendBridge.call('Alarm.createAlarm'
    +                               , []
    +                               , callback);
    +        },
    +
    +        api: {
    +            /**
    +             * Creates and saves a new alarm.
    +             *
    +             * @method api.createAndSaveAlarmFor
    +             * @param date {Date} date at which the alarm is to be triggered.
    +             * @param type {AlarmType} type of the alarm.
    +             * @param daysOfWeek {AlarmDayOfWeek} days of the week the alarm is scheduled.
    +             * @param message {String} Message to be displayed when the alarm is triggered.
    +             * @param callback (optional) {Function(AlarmError)} Function to be called when the alarm has been saved.
    +             */
    +            createAndSaveAlarmFor: function(date, type, daysOfWeek, message, callback) {
    +                backendBridge.call('Alarm.createAndSaveAlarmFor'
    +                                   , [date.getTime(), type, daysOfWeek, message, callback]);
    +            },
    +
    +            /**
    +             * Returns a message adapted to the given error id.
    +             *
    +             * @method api.errorToMessage
    +             * @param error {AlarmError} error id.
    +             */
    +            errorToMessage: function(error) {
    +                var messagePerError = [
    +                    "Successful operation completion",
    +                    "The date specified for the alarm was invalid",
    +                    "The date specified for the alarm is an earlier date than the current one",
    +                    "The daysOfWeek parameter of the alarm was not specified",
    +                    "The one-time alarm was set to be kicked in several days",
    +                    "The alarm event is invalid",
    +                    "The error occurred in alarm adaptation layer"
    +                  ];
    +                return error < messagePerError.length
    +                        ? messagePerError[error]
    +                        : "Invalid error id";
    +            },
    +        },
    +
    +
    +        // Internal
    +
    +        /**
    +         * @private
    +         *
    +         */
    +        createObjectWrapper: function(objectType, objectId, content) {
    +            var Constructor = _constructorFromName(objectType);
    +            return new Constructor(objectId, content);
    +        },
    +    };
    +};
    +
    +
    +
    +
    + +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/index.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/index.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/index.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/index.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,67 @@ + + + + + Alarms JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    Welcome to Ubuntu Alarms JavaScript API Docs

    +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/modules/AlarmApi.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/modules/AlarmApi.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/modules/AlarmApi.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/alarm-api/client/docsbuild/modules/AlarmApi.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,92 @@ + + + + + AlarmApi - Alarms JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +
    +

    AlarmApi

    +

    AlarmApi gives access to Alarm management.

    +
    + +
    +
    +

    This module has the following classes:

    + +
    +
    +
    +
    +

    +Module description found: alarm-api.js:254 +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/api.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/api.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/api.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/api.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,20 @@ +YUI.add("yuidoc-meta", function(Y) { + Y.YUIDoc = { meta: { + "classes": [ + "ContentHub", + "ContentPeer", + "ContentStore", + "ContentTransfer" + ], + "modules": [ + "ContentHub" + ], + "allModules": [ + { + "displayName": "ContentHub", + "name": "ContentHub", + "description": "ContentHub is the entry point to resource io transfer\n from/to remote applications (peers)." + } + ] +} }; +}); \ No newline at end of file Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/css/external-small.png and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/css/external-small.png differ Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/css/logo.png and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/css/logo.png differ diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/css/main.css unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/css/main.css --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/css/main.css 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/css/main.css 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,429 @@ +/* +Font sizes for all selectors other than the body are given in percentages, +with 100% equal to 13px. To calculate a font size percentage, multiply the +desired size in pixels by 7.6923076923. + +Here's a quick lookup table: + +10px - 76.923% +11px - 84.615% +12px - 92.308% +13px - 100% +14px - 107.692% +15px - 115.385% +16px - 123.077% +17px - 130.769% +18px - 138.462% +19px - 146.154% +20px - 153.846% +*/ + +html { + background: #fff; + color: #333; + overflow-y: scroll; +} + +body { + font: 13px/1.4 'Lucida Grande', 'Lucida Sans Unicode', 'DejaVu Sans', 'Bitstream Vera Sans', 'Helvetica', 'Arial', sans-serif; + margin: 0; + padding: 0; +} + +/* -- Links ----------------------------------------------------------------- */ +a { + color: #DD4814; + text-decoration: none; +} + +a:hover { text-decoration: underline; } + +/* "Jump to Table of Contents" link is shown to assistive tools, but hidden from + sight until it's focused. */ +.jump { + position: absolute; + padding: 3px 6px; + left: -99999px; + top: 0; +} + +.jump:focus { left: 40%; } + +/* -- Paragraphs ------------------------------------------------------------ */ +p { margin: 1.3em 0; } +dd p, td p { margin-bottom: 0; } +dd p:first-child, td p:first-child { margin-top: 0; } + +/* -- Headings -------------------------------------------------------------- */ +h1, h2, h3, h4, h5, h6 { + color: #DD4814 + font-family: 'Ubuntu', sans-serif; + font-weight: bold; + line-height: 1.1; + margin: 1.1em 0 0.5em; +} + +h1 { + font-size: 184.6%; + color: #30418C; + margin: 0.75em 0 0.5em; +} + +h2 { + font-size: 153.846%; + color: #E48A2B; +} + +h3 { font-size: 138.462%; } + +h4 { + border-bottom: 1px solid #DBDFEA; + color: #E48A2B; + font-size: 115.385%; + font-weight: normal; + padding-bottom: 2px; +} + +h5, h6 { font-size: 107.692%; } + +/* -- Code and examples ----------------------------------------------------- */ +code, kbd, pre, samp { + font-family: Menlo, Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; + font-size: 92.308%; + line-height: 1.35; +} + +p code, p kbd, p samp { + background: #FCFBFA; + border: 1px solid #EFEEED; + padding: 0 3px; +} + +a code, a kbd, a samp, +pre code, pre kbd, pre samp, +table code, table kbd, table samp, +.intro code, .intro kbd, .intro samp, +.toc code, .toc kbd, .toc samp { + background: none; + border: none; + padding: 0; +} + +pre.code, pre.terminal, pre.cmd { + overflow-x: auto; + *overflow-x: scroll; + padding: 0.3em 0.6em; +} + +pre.code { + background: #FCFBFA; + border: 1px solid #EFEEED; + border-left-width: 5px; +} + +pre.terminal, pre.cmd { + background: #F0EFFC; + border: 1px solid #D0CBFB; + border-left: 5px solid #D0CBFB; +} + +/* Don't reduce the font size of // elements inside
    +   blocks. */
    +pre code, pre kbd, pre samp { font-size: 100%; }
    +
    +/* Used to denote text that shouldn't be selectable, such as line numbers or
    +   shell prompts. Guess which browser this doesn't work in. */
    +.noselect {
    +    -moz-user-select: -moz-none;
    +    -khtml-user-select: none;
    +    -webkit-user-select: none;
    +    -o-user-select: none;
    +    user-select: none;
    +}
    +
    +/* -- Lists ----------------------------------------------------------------- */
    +dd { margin: 0.2em 0 0.7em 1em; }
    +dl { margin: 1em 0; }
    +dt { font-weight: bold; }
    +
    +/* -- Tables ---------------------------------------------------------------- */
    +caption, th { text-align: left; }
    +
    +table {
    +    border-collapse: collapse;
    +    width: 100%;
    +}
    +
    +td, th {
    +    border: 1px solid #fff;
    +    padding: 5px 12px;
    +    vertical-align: top;
    +}
    +
    +td { background: #E6E9F5; }
    +td dl { margin: 0; }
    +td dl dl { margin: 1em 0; }
    +td pre:first-child { margin-top: 0; }
    +
    +th {
    +    background: #D2D7E6;/*#97A0BF*/
    +    border-bottom: none;
    +    border-top: none;
    +    color: #000;/*#FFF1D5*/
    +    font-family: 'Trebuchet MS', sans-serif;
    +    font-weight: bold;
    +    line-height: 1.3;
    +    white-space: nowrap;
    +}
    +
    +
    +/* -- Layout and Content ---------------------------------------------------- */
    +#doc {
    +    margin: auto;
    +    min-width: 1024px;
    +}
    +
    +#main { width: 754px; }
    +#sidebar { width: 270px; margin: 0 15px; }
    +
    +.content { padding: 0 20px 0 25px; }
    +
    +/* -- Sidebar --------------------------------------------------------------- */
    +.sidebox {
    +    background: #F9F9FC;/*E6E9F5*/
    +    border: 1px solid #D4D8EB;
    +
    +    -moz-border-radius: 4px;
    +    -webkit-border-radius: 4px;
    +    border-radius: 4px;
    +    -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    +    -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    +    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    +    font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'Helvetica', 'Arial', sans-serif;
    +    margin: 0 0 15px 0;
    +    padding-bottom: 1px;
    +}
    +
    +.sidebox h2 {
    +    background: #E5E6F1;
    +    -moz-border-radius: 4px 4px 0 0;
    +    -webkit-border-radius: 4px 4px 0 0;
    +    border-radius: 4px 4px 0 0;
    +    color: #5E6BA4;
    +    font-weight: bold;
    +    font-size: 107.692%;
    +    margin: 0;
    +    padding: 4px 7px 5px;
    +}
    +
    +.sidebox .bd {
    +    font-size: 84.615%;
    +    padding: 0 5px 0 8px;
    +}
    +
    +.sidebox li { list-style-type: disc; color:#D4D5E3; }
    +
    +.sidebox ol, .sidebox ul {
    +    margin-left: 0;
    +    padding-left: 16px;
    +}
    +
    +.sidebox ol ol, .sidebox ol ul,
    +.sidebox ul ol, .sidebox ul ul {
    +    margin: 0;
    +    padding-left: 16px;
    +}
    +
    +/* -- Table of Contents ----------------------------------------------------- */
    +
    +/* The #toc id refers to the single global table of contents, while the .toc
    +   class refers to generic TOC lists that could be used throughout the page. */
    +
    +.toc code, .toc kbd, .toc samp { font-size: 100%; }
    +.toc li { font-weight: bold; }
    +.toc li li { font-weight: normal; }
    +
    +/* -- Intro and Example Boxes ----------------------------------------------- */
    +.intro, .example { margin-bottom: 2em; }
    +
    +.example {
    +    -moz-border-radius: 4px;
    +    -webkit-border-radius: 4px;
    +    border-radius: 4px;
    +    -moz-box-shadow: 0 0 5px #bfbfbf;
    +    -webkit-box-shadow: 0 0 5px #bfbfbf;
    +    box-shadow: 0 0 5px #bfbfbf;
    +    padding: 1em;
    +}
    +
    +.intro {
    +    background: none repeat scroll 0 0 #F0F1F8; border: 1px solid #D4D8EB; padding: 0 1em;
    +}
    +
    +/* -- Other Styles ---------------------------------------------------------- */
    +
    +/* These are probably YUI-specific, and should be moved out of Selleck's default
    +   theme. */
    +
    +.button {
    +    border: 1px solid #dadada;
    +    -moz-border-radius: 3px;
    +    -webkit-border-radius: 3px;
    +    border-radius: 3px;
    +    color: #444;
    +    display: inline-block;
    +    font-family: Helvetica, Arial, sans-serif;
    +    font-size: 92.308%;
    +    font-weight: bold;
    +    padding: 4px 13px 3px;
    +    -moz-text-shadow: 1px 1px 0 #fff;
    +    -webkit-text-shadow: 1px 1px 0 #fff;
    +    text-shadow: 1px 1px 0 #fff;
    +    white-space: nowrap;
    +
    +    background: #EFEFEF; /* old browsers */
    +    background: -moz-linear-gradient(top, #f5f5f5 0%, #efefef 50%, #e5e5e5 51%, #dfdfdf 100%); /* firefox */
    +    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(50%,#efefef), color-stop(51%,#e5e5e5), color-stop(100%,#dfdfdf)); /* webkit */
    +    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#dfdfdf',GradientType=0 ); /* ie */
    +}
    +
    +.button:hover {
    +    border-color: #466899;
    +    color: #fff;
    +    text-decoration: none;
    +    -moz-text-shadow: 1px 1px 0 #222;
    +    -webkit-text-shadow: 1px 1px 0 #222;
    +    text-shadow: 1px 1px 0 #222;
    +
    +    background: #6396D8; /* old browsers */
    +    background: -moz-linear-gradient(top, #6396D8 0%, #5A83BC 50%, #547AB7 51%, #466899 100%); /* firefox */
    +    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6396D8), color-stop(50%,#5A83BC), color-stop(51%,#547AB7), color-stop(100%,#466899)); /* webkit */
    +    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6396D8', endColorstr='#466899',GradientType=0 ); /* ie */
    +}
    +
    +.newwindow { text-align: center; }
    +
    +.header .version em {
    +    display: block;
    +    text-align: right;
    +}
    +
    +.yui3-skin-sam #classdocs .yui3-tabview-panel {
    +    background-color: transparent;
    +}
    +
    +.yui3-skin-sam #classdocs .yui3-tabview-panel {
    +    border: none;
    +}
    +
    +.yui3-skin-sam .yui3-tabview .yui3-tab,
    +.yui3-skin-sam .yui3-tabview .yui3-tab-selected,
    +.yui3-skin-sam .yui3-tabview .yui3-tab-hover {
    +    background: -moz-linear-gradient(center top , #F4F0EC 0%, #D6D2CE 100%) repeat scroll 0 0 transparent;
    +    border-bottom: 1px solid #DEDCD9;
    +    border-right: 1px solid #CDCBC8;
    +    border-left: 1px solid #CDCBC8;
    +    border-top: 1px solid #DADADA;
    +    color: #333333;
    +    text-decoration: none;
    +}
    +.yui3-skin-sam .yui3-tabview .yui3-tab-label,
    +.yui3-skin-sam .yui3-tabview .yui3-tab-selected .yui3-tab-label {
    +    border: none;
    +    background: none;
    +    font-size: 100%;
    +    color: #000;
    +}
    +
    +.yui3-skin-sam .yui3-tabview .yui3-tab-selected,
    +.yui3-skin-sam .yui3-tabview .yui3-tab-hover {
    +    background: none;
    +    background-color: #fff;
    +    border-bottom-color: #FFFFFF;
    +    border-top: 2px solid #8193C9;
    +    font-weight: bold;
    +    color: #000;
    +
    +}
    +
    +.yui3-skin-sam .yui3-tabview-list {
    +    border-color: #DFDFDF;
    +    border-width: 0 0 1px; 
    +}
    +
    +
    +a.external {
    +    background-image: url(external-small.png);
    +    background-repeat: no-repeat;
    +    background-position: 0 0;
    +    padding-left: 16px;
    +}
    +
    +#classdocs .item {
    +    border-bottom: 1px solid #466899;
    +    margin: 1em 0;
    +    padding: 1.5em;
    +}
    +
    +#classdocs .item .params p,
    +    #classdocs .item .returns p,{
    +    display: inline;
    +}
    +
    +#classdocs .item em code, #classdocs .item em.comment {
    +    color: green;
    +}
    +
    +#classdocs .item em.comment a {
    +    color: green;
    +    text-decoration: underline;
    +}
    +
    +#classdocs .foundat {
    +    font-size: 11px;
    +    font-style: normal;
    +}
    +
    +.attrs .emits {
    +    margin-left: 2em;
    +    padding: .5em;
    +    border-left: 1px dashed #ccc;
    +}
    +
    +abbr {
    +    border-bottom: 1px dashed #ccc;
    +    font-size: 80%;
    +    cursor: help;
    +}
    +
    +.prettyprint li.L0, 
    +.prettyprint li.L1, 
    +.prettyprint li.L2, 
    +.prettyprint li.L3, 
    +.prettyprint li.L5, 
    +.prettyprint li.L6, 
    +.prettyprint li.L7, 
    +.prettyprint li.L8 {
    +    list-style: decimal;
    +}
    +
    +ul li p {
    +    margin-top: 0;
    +}
    +
    +.method .name {
    +    font-size: 110%;
    +}
    +
    +#hd {
    +    background: -moz-linear-gradient(center top , #DCDBD9 0%, #F6F5F3 100%) repeat scroll 0 0 transparent;
    +    border-bottom: 1px solid #DFDFDF;
    +    padding: 0 15px 1px 20px;
    +    margin-bottom: 15px;
    +}
    +
    +#hd img {
    +    margin-right: 10px;
    +    vertical-align: middle;
    +}
    +
    Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/favicon.ico and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/favicon.ico differ
    Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/img/spinner.gif and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/img/spinner.gif differ
    diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/index.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/index.html
    --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/index.html	1970-01-01 00:00:00.000000000 +0000
    +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/index.html	2015-04-09 13:29:10.000000000 +0000
    @@ -0,0 +1,10 @@
    +
    +
    +    
    +        Redirector
    +        
    +    
    +    
    +        Click here to redirect
    +    
    +
    diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/apidocs.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/apidocs.js
    --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/apidocs.js	1970-01-01 00:00:00.000000000 +0000
    +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/apidocs.js	2015-04-09 13:29:10.000000000 +0000
    @@ -0,0 +1,370 @@
    +YUI().use(
    +    'yuidoc-meta',
    +    'api-list', 'history-hash', 'node-screen', 'node-style', 'pjax',
    +function (Y) {
    +
    +var win          = Y.config.win,
    +    localStorage = win.localStorage,
    +
    +    bdNode = Y.one('#bd'),
    +
    +    pjax,
    +    defaultRoute,
    +
    +    classTabView,
    +    selectedTab;
    +
    +// Kill pjax functionality unless serving over HTTP.
    +if (!Y.getLocation().protocol.match(/^https?\:/)) {
    +    Y.Router.html5 = false;
    +}
    +
    +// Create the default route with middleware which enables syntax highlighting
    +// on the loaded content.
    +defaultRoute = Y.Pjax.defaultRoute.concat(function (req, res, next) {
    +    prettyPrint();
    +    bdNode.removeClass('loading');
    +
    +    next();
    +});
    +
    +pjax = new Y.Pjax({
    +    container      : '#docs-main',
    +    contentSelector: '#docs-main > .content',
    +    linkSelector   : '#bd a',
    +    titleSelector  : '#xhr-title',
    +
    +    navigateOnHash: true,
    +    root          : '/',
    +    routes        : [
    +        // -- / ----------------------------------------------------------------
    +        {
    +            path     : '/(index.html)?',
    +            callbacks: defaultRoute
    +        },
    +
    +        // -- /classes/* -------------------------------------------------------
    +        {
    +            path     : '/classes/:class.html*',
    +            callbacks: [defaultRoute, 'handleClasses']
    +        },
    +
    +        // -- /files/* ---------------------------------------------------------
    +        {
    +            path     : '/files/*file',
    +            callbacks: [defaultRoute, 'handleFiles']
    +        },
    +
    +        // -- /modules/* -------------------------------------------------------
    +        {
    +            path     : '/modules/:module.html*',
    +            callbacks: defaultRoute
    +        }
    +    ]
    +});
    +
    +// -- Utility Functions --------------------------------------------------------
    +
    +pjax.checkVisibility = function (tab) {
    +    tab || (tab = selectedTab);
    +
    +    if (!tab) { return; }
    +
    +    var panelNode = tab.get('panelNode'),
    +        visibleItems;
    +
    +    // If no items are visible in the tab panel due to the current visibility
    +    // settings, display a message to that effect.
    +    visibleItems = panelNode.all('.item,.index-item').some(function (itemNode) {
    +        if (itemNode.getComputedStyle('display') !== 'none') {
    +            return true;
    +        }
    +    });
    +
    +    panelNode.all('.no-visible-items').remove();
    +
    +    if (!visibleItems) {
    +        if (Y.one('#index .index-item')) {
    +            panelNode.append(
    +                '
    ' + + '

    ' + + 'Some items are not shown due to the current visibility ' + + 'settings. Use the checkboxes at the upper right of this ' + + 'page to change the visibility settings.' + + '

    ' + + '
    ' + ); + } else { + panelNode.append( + '
    ' + + '

    ' + + 'This class doesn\'t provide any methods, properties, ' + + 'attributes, or events.' + + '

    ' + + '
    ' + ); + } + } + + // Hide index sections without any visible items. + Y.all('.index-section').each(function (section) { + var items = 0, + visibleItems = 0; + + section.all('.index-item').each(function (itemNode) { + items += 1; + + if (itemNode.getComputedStyle('display') !== 'none') { + visibleItems += 1; + } + }); + + section.toggleClass('hidden', !visibleItems); + section.toggleClass('no-columns', visibleItems < 4); + }); +}; + +pjax.initClassTabView = function () { + if (!Y.all('#classdocs .api-class-tab').size()) { + return; + } + + if (classTabView) { + classTabView.destroy(); + selectedTab = null; + } + + classTabView = new Y.TabView({ + srcNode: '#classdocs', + + on: { + selectionChange: pjax.onTabSelectionChange + } + }); + + pjax.updateTabState(); + classTabView.render(); +}; + +pjax.initLineNumbers = function () { + var hash = win.location.hash.substring(1), + container = pjax.get('container'), + hasLines, node; + + // Add ids for each line number in the file source view. + container.all('.linenums>li').each(function (lineNode, index) { + lineNode.set('id', 'l' + (index + 1)); + lineNode.addClass('file-line'); + hasLines = true; + }); + + // Scroll to the desired line. + if (hasLines && /^l\d+$/.test(hash)) { + if ((node = container.getById(hash))) { + win.scroll(0, node.getY()); + } + } +}; + +pjax.initRoot = function () { + var terminators = /^(?:classes|files|modules)$/, + parts = pjax._getPathRoot().split('/'), + root = [], + i, len, part; + + for (i = 0, len = parts.length; i < len; i += 1) { + part = parts[i]; + + if (part.match(terminators)) { + // Makes sure the path will end with a "/". + root.push(''); + break; + } + + root.push(part); + } + + pjax.set('root', root.join('/')); +}; + +pjax.updateTabState = function (src) { + var hash = win.location.hash.substring(1), + defaultTab, node, tab, tabPanel; + + function scrollToNode() { + if (node.hasClass('protected')) { + Y.one('#api-show-protected').set('checked', true); + pjax.updateVisibility(); + } + + if (node.hasClass('private')) { + Y.one('#api-show-private').set('checked', true); + pjax.updateVisibility(); + } + + setTimeout(function () { + // For some reason, unless we re-get the node instance here, + // getY() always returns 0. + var node = Y.one('#classdocs').getById(hash); + win.scrollTo(0, node.getY() - 70); + }, 1); + } + + if (!classTabView) { + return; + } + + if (src === 'hashchange' && !hash) { + defaultTab = 'index'; + } else { + if (localStorage) { + defaultTab = localStorage.getItem('tab_' + pjax.getPath()) || + 'index'; + } else { + defaultTab = 'index'; + } + } + + if (hash && (node = Y.one('#classdocs').getById(hash))) { + if ((tabPanel = node.ancestor('.api-class-tabpanel', true))) { + if ((tab = Y.one('#classdocs .api-class-tab.' + tabPanel.get('id')))) { + if (classTabView.get('rendered')) { + Y.Widget.getByNode(tab).set('selected', 1); + } else { + tab.addClass('yui3-tab-selected'); + } + } + } + + // Scroll to the desired element if this is a hash URL. + if (node) { + if (classTabView.get('rendered')) { + scrollToNode(); + } else { + classTabView.once('renderedChange', scrollToNode); + } + } + } else { + tab = Y.one('#classdocs .api-class-tab.' + defaultTab); + + // When the `defaultTab` node isn't found, `localStorage` is stale. + if (!tab && defaultTab !== 'index') { + tab = Y.one('#classdocs .api-class-tab.index'); + } + + if (classTabView.get('rendered')) { + Y.Widget.getByNode(tab).set('selected', 1); + } else { + tab.addClass('yui3-tab-selected'); + } + } +}; + +pjax.updateVisibility = function () { + var container = pjax.get('container'); + + container.toggleClass('hide-inherited', + !Y.one('#api-show-inherited').get('checked')); + + container.toggleClass('show-deprecated', + Y.one('#api-show-deprecated').get('checked')); + + container.toggleClass('show-protected', + Y.one('#api-show-protected').get('checked')); + + container.toggleClass('show-private', + Y.one('#api-show-private').get('checked')); + + pjax.checkVisibility(); +}; + +// -- Route Handlers ----------------------------------------------------------- + +pjax.handleClasses = function (req, res, next) { + var status = res.ioResponse.status; + + // Handles success and local filesystem XHRs. + if (res.ioResponse.readyState === 4 && (!status || (status >= 200 && status < 300))) { + pjax.initClassTabView(); + } + + next(); +}; + +pjax.handleFiles = function (req, res, next) { + var status = res.ioResponse.status; + + // Handles success and local filesystem XHRs. + if (res.ioResponse.readyState === 4 && (!status || (status >= 200 && status < 300))) { + pjax.initLineNumbers(); + } + + next(); +}; + +// -- Event Handlers ----------------------------------------------------------- + +pjax.onNavigate = function (e) { + var hash = e.hash, + originTarget = e.originEvent && e.originEvent.target, + tab; + + if (hash) { + tab = originTarget && originTarget.ancestor('.yui3-tab', true); + + if (hash === win.location.hash) { + pjax.updateTabState('hashchange'); + } else if (!tab) { + win.location.hash = hash; + } + + e.preventDefault(); + return; + } + + // Only scroll to the top of the page when the URL doesn't have a hash. + this.set('scrollToTop', !e.url.match(/#.+$/)); + + bdNode.addClass('loading'); +}; + +pjax.onOptionClick = function (e) { + pjax.updateVisibility(); +}; + +pjax.onTabSelectionChange = function (e) { + var tab = e.newVal, + tabId = tab.get('contentBox').getAttribute('href').substring(1); + + selectedTab = tab; + + // If switching from a previous tab (i.e., this is not the default tab), + // replace the history entry with a hash URL that will cause this tab to + // be selected if the user navigates away and then returns using the back + // or forward buttons. + if (e.prevVal && localStorage) { + localStorage.setItem('tab_' + pjax.getPath(), tabId); + } + + pjax.checkVisibility(tab); +}; + +// -- Init --------------------------------------------------------------------- + +pjax.on('navigate', pjax.onNavigate); + +pjax.initRoot(); +pjax.upgrade(); +pjax.initClassTabView(); +pjax.initLineNumbers(); +pjax.updateVisibility(); + +Y.APIList.rootPath = pjax.get('root'); + +Y.one('#api-options').delegate('click', pjax.onOptionClick, 'input'); + +Y.on('hashchange', function (e) { + pjax.updateTabState('hashchange'); +}, win); + +}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/api-filter.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/api-filter.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/api-filter.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/api-filter.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,52 @@ +YUI.add('api-filter', function (Y) { + +Y.APIFilter = Y.Base.create('apiFilter', Y.Base, [Y.AutoCompleteBase], { + // -- Initializer ---------------------------------------------------------- + initializer: function () { + this._bindUIACBase(); + this._syncUIACBase(); + }, + getDisplayName: function(name) { + + Y.each(Y.YUIDoc.meta.allModules, function(i) { + if (i.name === name && i.displayName) { + name = i.displayName; + } + }); + + return name; + } + +}, { + // -- Attributes ----------------------------------------------------------- + ATTRS: { + resultHighlighter: { + value: 'phraseMatch' + }, + + // May be set to "classes" or "modules". + queryType: { + value: 'classes' + }, + + source: { + valueFn: function() { + var self = this; + return function(q) { + var data = Y.YUIDoc.meta[self.get('queryType')], + out = []; + Y.each(data, function(v) { + if (v.toLowerCase().indexOf(q.toLowerCase()) > -1) { + out.push(v); + } + }); + return out; + }; + } + } + } +}); + +}, '3.4.0', {requires: [ + 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources' +]}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/api-list.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/api-list.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/api-list.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/api-list.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,251 @@ +YUI.add('api-list', function (Y) { + +var Lang = Y.Lang, + YArray = Y.Array, + + APIList = Y.namespace('APIList'), + + classesNode = Y.one('#api-classes'), + inputNode = Y.one('#api-filter'), + modulesNode = Y.one('#api-modules'), + tabviewNode = Y.one('#api-tabview'), + + tabs = APIList.tabs = {}, + + filter = APIList.filter = new Y.APIFilter({ + inputNode : inputNode, + maxResults: 1000, + + on: { + results: onFilterResults + } + }), + + search = APIList.search = new Y.APISearch({ + inputNode : inputNode, + maxResults: 100, + + on: { + clear : onSearchClear, + results: onSearchResults + } + }), + + tabview = APIList.tabview = new Y.TabView({ + srcNode : tabviewNode, + panelNode: '#api-tabview-panel', + render : true, + + on: { + selectionChange: onTabSelectionChange + } + }), + + focusManager = APIList.focusManager = tabviewNode.plug(Y.Plugin.NodeFocusManager, { + circular : true, + descendants: '#api-filter, .yui3-tab-panel-selected .api-list-item a, .yui3-tab-panel-selected .result a', + keys : {next: 'down:40', previous: 'down:38'} + }).focusManager, + + LIST_ITEM_TEMPLATE = + '
  • ' + + '{displayName}' + + '
  • '; + +// -- Init --------------------------------------------------------------------- + +// Duckpunch FocusManager's key event handling to prevent it from handling key +// events when a modifier is pressed. +Y.before(function (e, activeDescendant) { + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { + return new Y.Do.Prevent(); + } +}, focusManager, '_focusPrevious', focusManager); + +Y.before(function (e, activeDescendant) { + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { + return new Y.Do.Prevent(); + } +}, focusManager, '_focusNext', focusManager); + +// Create a mapping of tabs in the tabview so we can refer to them easily later. +tabview.each(function (tab, index) { + var name = tab.get('label').toLowerCase(); + + tabs[name] = { + index: index, + name : name, + tab : tab + }; +}); + +// Switch tabs on Ctrl/Cmd-Left/Right arrows. +tabviewNode.on('key', onTabSwitchKey, 'down:37,39'); + +// Focus the filter input when the `/` key is pressed. +Y.one(Y.config.doc).on('key', onSearchKey, 'down:83'); + +// Keep the Focus Manager up to date. +inputNode.on('focus', function () { + focusManager.set('activeDescendant', inputNode); +}); + +// Update all tabview links to resolved URLs. +tabview.get('panelNode').all('a').each(function (link) { + link.setAttribute('href', link.get('href')); +}); + +// -- Private Functions -------------------------------------------------------- +function getFilterResultNode() { + return filter.get('queryType') === 'classes' ? classesNode : modulesNode; +} + +// -- Event Handlers ----------------------------------------------------------- +function onFilterResults(e) { + var frag = Y.one(Y.config.doc.createDocumentFragment()), + resultNode = getFilterResultNode(), + typePlural = filter.get('queryType'), + typeSingular = typePlural === 'classes' ? 'class' : 'module'; + + if (e.results.length) { + YArray.each(e.results, function (result) { + frag.append(Lang.sub(LIST_ITEM_TEMPLATE, { + rootPath : APIList.rootPath, + displayName : filter.getDisplayName(result.highlighted), + name : result.text, + typePlural : typePlural, + typeSingular: typeSingular + })); + }); + } else { + frag.append( + '
  • ' + + 'No ' + typePlural + ' found.' + + '
  • ' + ); + } + + resultNode.empty(true); + resultNode.append(frag); + + focusManager.refresh(); +} + +function onSearchClear(e) { + + focusManager.refresh(); +} + +function onSearchKey(e) { + var target = e.target; + + if (target.test('input,select,textarea') + || target.get('isContentEditable')) { + return; + } + + e.preventDefault(); + + inputNode.focus(); + focusManager.refresh(); +} + +function onSearchResults(e) { + var frag = Y.one(Y.config.doc.createDocumentFragment()); + + if (e.results.length) { + YArray.each(e.results, function (result) { + frag.append(result.display); + }); + } else { + frag.append( + '
  • ' + + 'No results found. Maybe you\'ll have better luck with a ' + + 'different query?' + + '
  • ' + ); + } + + + focusManager.refresh(); +} + +function onTabSelectionChange(e) { + var tab = e.newVal, + name = tab.get('label').toLowerCase(); + + tabs.selected = { + index: tab.get('index'), + name : name, + tab : tab + }; + + switch (name) { + case 'classes': // fallthru + case 'modules': + filter.setAttrs({ + minQueryLength: 0, + queryType : name + }); + + search.set('minQueryLength', -1); + + // Only send a request if this isn't the initially-selected tab. + if (e.prevVal) { + filter.sendRequest(filter.get('value')); + } + break; + + case 'everything': + filter.set('minQueryLength', -1); + search.set('minQueryLength', 1); + + if (search.get('value')) { + search.sendRequest(search.get('value')); + } else { + inputNode.focus(); + } + break; + + default: + // WTF? We shouldn't be here! + filter.set('minQueryLength', -1); + search.set('minQueryLength', -1); + } + + if (focusManager) { + setTimeout(function () { + focusManager.refresh(); + }, 1); + } +} + +function onTabSwitchKey(e) { + var currentTabIndex = tabs.selected.index; + + if (!(e.ctrlKey || e.metaKey)) { + return; + } + + e.preventDefault(); + + switch (e.keyCode) { + case 37: // left arrow + if (currentTabIndex > 0) { + tabview.selectChild(currentTabIndex - 1); + inputNode.focus(); + } + break; + + case 39: // right arrow + if (currentTabIndex < (Y.Object.size(tabs) - 2)) { + tabview.selectChild(currentTabIndex + 1); + inputNode.focus(); + } + break; + } +} + +}, '3.4.0', {requires: [ + 'api-filter', 'api-search', 'event-key', 'node-focusmanager', 'tabview' +]}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/api-search.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/api-search.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/api-search.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/api-search.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,98 @@ +YUI.add('api-search', function (Y) { + +var Lang = Y.Lang, + Node = Y.Node, + YArray = Y.Array; + +Y.APISearch = Y.Base.create('apiSearch', Y.Base, [Y.AutoCompleteBase], { + // -- Public Properties ---------------------------------------------------- + RESULT_TEMPLATE: + '
  • ' + + '' + + '

    {name}

    ' + + '{resultType}' + + '
    {description}
    ' + + '{class}' + + '
    ' + + '
  • ', + + // -- Initializer ---------------------------------------------------------- + initializer: function () { + this._bindUIACBase(); + this._syncUIACBase(); + }, + + // -- Protected Methods ---------------------------------------------------- + _apiResultFilter: function (query, results) { + // Filter components out of the results. + return YArray.filter(results, function (result) { + return result.raw.resultType === 'component' ? false : result; + }); + }, + + _apiResultFormatter: function (query, results) { + return YArray.map(results, function (result) { + var raw = Y.merge(result.raw), // create a copy + desc = raw.description || ''; + + // Convert description to text and truncate it if necessary. + desc = Node.create('
    ' + desc + '
    ').get('text'); + + if (desc.length > 65) { + desc = Y.Escape.html(desc.substr(0, 65)) + ' …'; + } else { + desc = Y.Escape.html(desc); + } + + raw['class'] || (raw['class'] = ''); + raw.description = desc; + + // Use the highlighted result name. + raw.name = result.highlighted; + + return Lang.sub(this.RESULT_TEMPLATE, raw); + }, this); + }, + + _apiTextLocator: function (result) { + return result.displayName || result.name; + } +}, { + // -- Attributes ----------------------------------------------------------- + ATTRS: { + resultFormatter: { + valueFn: function () { + return this._apiResultFormatter; + } + }, + + resultFilters: { + valueFn: function () { + return this._apiResultFilter; + } + }, + + resultHighlighter: { + value: 'phraseMatch' + }, + + resultListLocator: { + value: 'data.results' + }, + + resultTextLocator: { + valueFn: function () { + return this._apiTextLocator; + } + }, + + source: { + value: '/api/v1/search?q={query}&count={maxResults}' + } + } +}); + +}, '3.4.0', {requires: [ + 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources', + 'escape' +]}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/tabs.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/tabs.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/tabs.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/tabs.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,67 @@ +/* + * Copyright 2011 Yahoo! Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Yahoo! Inc. nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + + +YUI({ + insertBefore: 'site_styles' +}).use('tabview', function(Y) { + var classdocs = Y.one('#classdocs'), + tabviewIndexTable = {}; + if (classdocs) { + if (classdocs.all('li').size()) { + var tabview = new Y.TabView({ srcNode: classdocs }); + tabview.render(); + classdocs.all('li a').each(function (item, index) { + var hash = item.get(['hash']); + type = hash.substring(1); + if (!tabviewIndexTable[type]) { + tabviewIndexTable[type] = index; + } + }) + Y.all('.sidebox.on-page').each(function (item, index) { + var children = item.all('li a'); + children.each(function (cItem, cIndex) { + return function () { + var handleClick = function (e) { + var node = Y.one(this), + hash = node.get(['hash']), + hashValue = hash.substring(1).split('_'), + type = hashValue.shift(), + ogKey = hashValue.join('_'); // in case the hash had other underscores + if (tabviewIndexTable[type] > -1 && tabviewIndexTable[type] !== currentTab) { + currentTab = tabviewIndexTable[type]; + tabview.selectChild(tabviewIndexTable[type]); + } + } + Y.on('click', handleClick, cItem) + }() + }) + }); + } + } +}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/yui-prettify.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/yui-prettify.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/yui-prettify.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/js/yui-prettify.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,44 @@ +/* + * Copyright 2011 Yahoo! Inc. + * All rights reserved. + *- + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Yahoo! Inc. nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + *- + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +YUI().use('node', function(Y) { + var code = Y.all('.prettyprint.linenums'); + if (code.size()) { + code.each(function(c) { + var lis = c.all('ol li'), + l = 1; + lis.each(function(n) { + n.prepend(''); + l++; + }); + }); + var h = location.hash; + location.hash = ''; + h = h.replace('LINE_', 'LINENUM_'); + location.hash = h; + } +}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/CHANGES.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/CHANGES.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/CHANGES.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/CHANGES.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,130 @@ + + + + Change Log + + + README + +

    Known Issues

    +
      +
    • Perl formatting is really crappy. Partly because the author is lazy and + partly because Perl is + hard to parse. +
    • On some browsers, <code> elements with newlines in the text + which use CSS to specify white-space:pre will have the newlines + improperly stripped if the element is not attached to the document at the time + the stripping is done. Also, on IE 6, all newlines will be stripped from + <code> elements because of the way IE6 produces + innerHTML. Workaround: use <pre> for code with + newlines. +
    + +

    Change Log

    +

    29 March 2007

    +
      +
    • Added tests for PHP support + to address + issue 3. +
    • Fixed + bug: prettyPrintOne was not halting. This was not + reachable through the normal entry point. +
    • Fixed + bug: recursing into a script block or PHP tag that was not properly + closed would not silently drop the content. + (test) +
    • Fixed + bug: was eating tabs + (test) +
    • Fixed entity handling so that the caveat +
      +

      Caveats: please properly escape less-thans. x&lt;y + instead of x<y, and use " instead of + &quot; for string delimiters.

      +
      + is no longer applicable. +
    • Added noisefree's C# + patch +
    • Added a distribution that has comments and + whitespace removed to reduce download size from 45.5kB to 12.8kB. +
    +

    4 Jul 2008

    +
      +
    • Added language specific formatters that are triggered by the presence + of a lang-<language-file-extension>
    • +
    • Fixed bug: python handling of '''string''' +
    • Fixed bug: / in regex [charsets] should not end regex +
    +

    5 Jul 2008

    +
      +
    • Defined language extensions for Lisp and Lua +
    +

    14 Jul 2008

    +
      +
    • Language handlers for F#, OCAML, SQL +
    • Support for nocode spans to allow embedding of line + numbers and code annotations which should not be styled or otherwise + affect the tokenization of prettified code. + See the issue 22 + testcase. +
    +

    6 Jan 2009

    +
      +
    • Language handlers for Visual Basic, Haskell, CSS, and WikiText
    • +
    • Added .mxml extension to the markup style handler for + Flex MXML files. See + issue 37. +
    • Added .m extension to the C style handler so that Objective + C source files properly highlight. See + issue 58. +
    • Changed HTML lexer to use the same embedded source mechanism as the + wiki language handler, and changed to use the registered + CSS handler for STYLE element content. +
    +

    21 May 2009

    +
      +
    • Rewrote to improve performance on large files. + See benchmarks.
    • +
    • Fixed bugs with highlighting of Haskell line comments, Lisp + number literals, Lua strings, C preprocessor directives, + newlines in Wiki code on Windows, and newlines in IE6.
    • +
    +

    14 August 2009

    +
      +
    • Fixed prettifying of <code> blocks with embedded newlines. +
    +

    3 October 2009

    +
      +
    • Fixed prettifying of XML/HTML tags that contain uppercase letters. +
    +

    19 July 2010

    +
      +
    • Added support for line numbers. Bug + 22
    • +
    • Added YAML support. Bug + 123
    • +
    • Added VHDL support courtesy Le Poussin.
    • +
    • IE performance improvements. Bug + 102 courtesy jacobly.
    • +
    • A variety of markup formatting fixes courtesy smain and thezbyg.
    • +
    • Fixed copy and paste in IE[678]. +
    • Changed output to use &#160; instead of + &nbsp; so that the output works when embedded in XML. + Bug + 108.
    • +
    + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/COPYING unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/COPYING --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/COPYING 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/COPYING 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/prettify-min.css unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/prettify-min.css --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/prettify-min.css 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/prettify-min.css 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1 @@ +.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} \ No newline at end of file diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/prettify-min.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/prettify-min.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/prettify-min.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/prettify-min.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,28 @@ +/* + * Copyright 2011 Yahoo! Inc. + * All rights reserved. + *- + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Yahoo! Inc. nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + *- + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +window.PR_SHOULD_USE_CONTINUATION=true;var prettyPrintOne;var prettyPrint;(function(){var O=window;var j=["break,continue,do,else,for,if,return,while"];var v=[j,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var q=[v,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var m=[q,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var y=[q,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var T=[y,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"];var s="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes";var x=[q,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var t="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var J=[j,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var g=[j,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var I=[j,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var B=[m,T,x,t+J,g,I];var f=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/;var D="str";var A="kwd";var k="com";var Q="typ";var H="lit";var M="pun";var G="pln";var n="tag";var F="dec";var K="src";var R="atn";var o="atv";var P="nocode";var N="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function l(ab){var af=0;var U=false;var ae=false;for(var X=0,W=ab.length;X122)){if(!(am<65||ai>90)){ah.push([Math.max(65,ai)|32,Math.min(am,90)|32])}if(!(am<97||ai>122)){ah.push([Math.max(97,ai)&~32,Math.min(am,122)&~32])}}}}ah.sort(function(aw,av){return(aw[0]-av[0])||(av[1]-aw[1])});var ak=[];var aq=[];for(var at=0;atau[0]){if(au[1]+1>au[0]){ao.push("-")}ao.push(V(au[1]))}}ao.push("]");return ao.join("")}function Y(an){var al=an.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var aj=al.length;var ap=[];for(var am=0,ao=0;am=2&&ak==="["){al[am]=Z(ai)}else{if(ak!=="\\"){al[am]=ai.replace(/[a-zA-Z]/g,function(aq){var ar=aq.charCodeAt(0);return"["+String.fromCharCode(ar&~32,ar|32)+"]"})}}}}return al.join("")}var ac=[];for(var X=0,W=ab.length;X=0;){U[ae.charAt(ag)]=aa}}var ah=aa[1];var ac=""+ah;if(!ai.hasOwnProperty(ac)){aj.push(ah);ai[ac]=null}}aj.push(/[\0-\uffff]/);X=l(aj)})();var Z=V.length;var Y=function(aj){var ab=aj.sourceCode,aa=aj.basePos;var af=[aa,G];var ah=0;var ap=ab.match(X)||[];var al={};for(var ag=0,at=ap.length;ag=5&&"lang-"===ar.substring(0,5);if(ao&&!(ak&&typeof ak[1]==="string")){ao=false;ar=K}if(!ao){al[ai]=ar}}var ad=ah;ah+=ai.length;if(!ao){af.push(aa+ad,ar)}else{var an=ak[1];var am=ai.indexOf(an);var ae=am+an.length;if(ak[2]){ae=ai.length-ak[2].length;am=ae-an.length}var au=ar.substring(5);C(aa+ad,ai.substring(0,am),Y,af);C(aa+ad+am,an,r(au,an),af);C(aa+ad+ae,ai.substring(ae),Y,af)}}aj.decorations=af};return Y}function i(V){var Y=[],U=[];if(V.tripleQuotedStrings){Y.push([D,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(V.multiLineStrings){Y.push([D,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{Y.push([D,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(V.verbatimStrings){U.push([D,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var ab=V.hashComments;if(ab){if(V.cStyleComments){if(ab>1){Y.push([k,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{Y.push([k,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}U.push([D,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])}else{Y.push([k,/^#[^\r\n]*/,null,"#"])}}if(V.cStyleComments){U.push([k,/^\/\/[^\r\n]*/,null]);U.push([k,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(V.regexLiterals){var aa=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");U.push(["lang-regex",new RegExp("^"+N+"("+aa+")")])}var X=V.types;if(X){U.push([Q,X])}var W=(""+V.keywords).replace(/^ | $/g,"");if(W.length){U.push([A,new RegExp("^(?:"+W.replace(/[\s,]+/g,"|")+")\\b"),null])}Y.push([G,/^\s+/,null," \r\n\t\xA0"]);var Z=/^.[^\s\w\.$@\'\"\`\/\\]*/;U.push([H,/^@[a-z_$][a-z_$@0-9]*/i,null],[Q,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[G,/^[a-z_$][a-z_$@0-9]*/i,null],[H,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[G,/^\\[\s\S]?/,null],[M,Z,null]);return h(Y,U)}var L=i({keywords:B,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function S(W,ah,aa){var V=/(?:^|\s)nocode(?:\s|$)/;var ac=/\r\n?|\n/;var ad=W.ownerDocument;var ag=ad.createElement("li");while(W.firstChild){ag.appendChild(W.firstChild)}var X=[ag];function af(am){switch(am.nodeType){case 1:if(V.test(am.className)){break}if("br"===am.nodeName){ae(am);if(am.parentNode){am.parentNode.removeChild(am)}}else{for(var ao=am.firstChild;ao;ao=ao.nextSibling){af(ao)}}break;case 3:case 4:if(aa){var an=am.nodeValue;var ak=an.match(ac);if(ak){var aj=an.substring(0,ak.index);am.nodeValue=aj;var ai=an.substring(ak.index+ak[0].length);if(ai){var al=am.parentNode;al.insertBefore(ad.createTextNode(ai),am.nextSibling)}ae(am);if(!aj){am.parentNode.removeChild(am)}}}break}}function ae(al){while(!al.nextSibling){al=al.parentNode;if(!al){return}}function aj(am,at){var ar=at?am.cloneNode(false):am;var ap=am.parentNode;if(ap){var aq=aj(ap,1);var ao=am.nextSibling;aq.appendChild(ar);for(var an=ao;an;an=ao){ao=an.nextSibling;aq.appendChild(an)}}return ar}var ai=aj(al.nextSibling,0);for(var ak;(ak=ai.parentNode)&&ak.nodeType===1;){ai=ak}X.push(ai)}for(var Z=0;Z=U){aj+=2}if(Y>=ar){ac+=2}}}finally{if(au){au.style.display=ak}}}var u={};function d(W,X){for(var U=X.length;--U>=0;){var V=X[U];if(!u.hasOwnProperty(V)){u[V]=W}else{if(O.console){console.warn("cannot override language handler %s",V)}}}}function r(V,U){if(!(V&&u.hasOwnProperty(V))){V=/^\s*]*(?:>|$)/],[k,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[M,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);d(h([[G,/^[\s]+/,null," \t\r\n"],[o,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[n,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[R,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[M,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);d(h([],[[o,/^[\s\S]+/]]),["uq.val"]);d(i({keywords:m,hashComments:true,cStyleComments:true,types:f}),["c","cc","cpp","cxx","cyc","m"]);d(i({keywords:"null,true,false"}),["json"]);d(i({keywords:T,hashComments:true,cStyleComments:true,verbatimStrings:true,types:f}),["cs"]);d(i({keywords:y,cStyleComments:true}),["java"]);d(i({keywords:I,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);d(i({keywords:J,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);d(i({keywords:t,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);d(i({keywords:g,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);d(i({keywords:x,cStyleComments:true,regexLiterals:true}),["js"]);d(i({keywords:s,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);d(h([],[[D,/^[\s\S]+/]]),["regex"]);function e(X){var W=X.langExtension;try{var U=b(X.sourceNode,X.pre);var V=U.sourceCode;X.sourceCode=V;X.spans=U.spans;X.basePos=0;r(W,V)(X);E(X)}catch(Y){if(O.console){console.log(Y&&Y.stack?Y.stack:Y)}}}function z(Y,X,W){var U=document.createElement("pre");U.innerHTML=Y;if(W){S(U,W,true)}var V={langExtension:X,numberLines:W,sourceNode:U,pre:1};e(V);return U.innerHTML}function c(aj){function ab(al){return document.getElementsByTagName(al)}var ah=[ab("pre"),ab("code"),ab("xmp")];var V=[];for(var ae=0;ae]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/README.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/README.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/README.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/assets/vendor/prettify/README.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,203 @@ + + + + + Javascript code prettifier + + + + + + + + + + Languages : CH +

    Javascript code prettifier

    + +

    Setup

    +
      +
    1. Download a distribution +
    2. Include the script and stylesheets in your document + (you will need to make sure the css and js file are on your server, and + adjust the paths in the script and link tag) +
      +<link href="prettify.css" type="text/css" rel="stylesheet" />
      +<script type="text/javascript" src="prettify.js"></script>
      +
    3. Add onload="prettyPrint()" to your + document's body tag. +
    4. Modify the stylesheet to get the coloring you prefer
    5. +
    + +

    Usage

    +

    Put code snippets in + <pre class="prettyprint">...</pre> + or <code class="prettyprint">...</code> + and it will automatically be pretty printed. + + + + +
    The original + Prettier +
    class Voila {
    +public:
    +  // Voila
    +  static const string VOILA = "Voila";
    +
    +  // will not interfere with embedded tags.
    +}
    + +
    class Voila {
    +public:
    +  // Voila
    +  static const string VOILA = "Voila";
    +
    +  // will not interfere with embedded tags.
    +}
    +
    + +

    FAQ

    +

    Which languages does it work for?

    +

    The comments in prettify.js are authoritative but the lexer + should work on a number of languages including C and friends, + Java, Python, Bash, SQL, HTML, XML, CSS, Javascript, and Makefiles. + It works passably on Ruby, PHP, VB, and Awk and a decent subset of Perl + and Ruby, but, because of commenting conventions, doesn't work on + Smalltalk, or CAML-like languages.

    + +

    LISPy languages are supported via an extension: + lang-lisp.js.

    +

    And similarly for + CSS, + Haskell, + Lua, + OCAML, SML, F#, + Visual Basic, + SQL, + Protocol Buffers, and + WikiText.. + +

    If you'd like to add an extension for your favorite language, please + look at src/lang-lisp.js and file an + issue including your language extension, and a testcase.

    + +

    How do I specify which language my code is in?

    +

    You don't need to specify the language since prettyprint() + will guess. You can specify a language by specifying the language extension + along with the prettyprint class like so:

    +
    <pre class="prettyprint lang-html">
    +  The lang-* class specifies the language file extensions.
    +  File extensions supported by default include
    +    "bsh", "c", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html",
    +    "java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh",
    +    "xhtml", "xml", "xsl".
    +</pre>
    + +

    It doesn't work on <obfuscated code sample>?

    +

    Yes. Prettifying obfuscated code is like putting lipstick on a pig + — i.e. outside the scope of this tool.

    + +

    Which browsers does it work with?

    +

    It's been tested with IE 6, Firefox 1.5 & 2, and Safari 2.0.4. + Look at the test page to see if it + works in your browser.

    + +

    What's changed?

    +

    See the change log

    + +

    Why doesn't Prettyprinting of strings work on WordPress?

    +

    Apparently wordpress does "smart quoting" which changes close quotes. + This causes end quotes to not match up with open quotes. +

    This breaks prettifying as well as copying and pasting of code samples. + See + WordPress's help center for info on how to stop smart quoting of code + snippets.

    + +

    How do I put line numbers in my code?

    +

    You can use the linenums class to turn on line + numbering. If your code doesn't start at line number 1, you can + add a colon and a line number to the end of that class as in + linenums:52. + +

    For example +

    <pre class="prettyprint linenums:4"
    +>// This is line 4.
    +foo();
    +bar();
    +baz();
    +boo();
    +far();
    +faz();
    +<pre>
    + produces +
    // This is line 4.
    +foo();
    +bar();
    +baz();
    +boo();
    +far();
    +faz();
    +
    + +

    How do I prevent a portion of markup from being marked as code?

    +

    You can use the nocode class to identify a span of markup + that is not code. +

    <pre class=prettyprint>
    +int x = foo();  /* This is a comment  <span class="nocode">This is not code</span>
    +  Continuation of comment */
    +int y = bar();
    +</pre>
    +produces +
    +int x = foo();  /* This is a comment  This is not code
    +  Continuation of comment */
    +int y = bar();
    +
    + +

    For a more complete example see the issue22 + testcase.

    + +

    I get an error message "a is not a function" or "opt_whenDone is not a function"

    +

    If you are calling prettyPrint via an event handler, wrap it in a function. + Instead of doing +

    + addEventListener('load', prettyPrint, false); +
    + wrap it in a closure like +
    + addEventListener('load', function (event) { prettyPrint() }, false); +
    + so that the browser does not pass an event object to prettyPrint which + will confuse it. + +


    + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentHub.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentHub.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentHub.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentHub.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,460 @@ + + + + + ContentHub - Content Hub JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    Class ContentHub

    +Class defined in: content-hub.js:568 +

    The ContentHub object.

    +
    + + +
    + ContentHub( ) +
    + + + content-hub.js:568 +
    + +
    + +
    + +
    +
    + +
    + api.importContent( type, peer, transferOptions, onError, onSuccess ) +
    + + + content-hub.js:914 +
    +

    Creates a ContentStore object for the given ContentPeer.

    + + Parameters: +
      +
    • + type <ContentType> +

      type of the content to import

      + +
    • +
    • + peer <ContentPeer> +

      peer who's content should be imported

      + +
    • +
    • + transferOptions <Object> +

      a dictionary of transfer options. The options are the following:

      +
        +
      • multipleFiles {Bool}: specified if a transfer should involve multiple files or not
      • +
      • scope {ContentScope}: specifies the location where the transferred files should be copied to
      • +
      + +
    • +
    • + onError <Function(reason:)> +

      called when the transfer has failed

      + +
    • +
    • + onSuccess <Function(Array of ContentItem> +

      )} called when the transfer has been a success and items are available

      + +
    • +
    +
    + +
    + getPeers( filters, callback ) +
    + + + content-hub.js:782 +
    +

    Creates a ContentPeer object for the given source type.

    + + Parameters: +
      +
    • + filters <Object> +

      A dictionary of parameters to filter the result. The filtering keys are:

      +
        +
      • contentType: desired ContentType
      • +
      • handler: desired ContentHandler
      • +
      + +
    • +
    • + callback <Function(List of ContentPeer objects)> +

      Callback that receives the result or null

      + +
    • +
    +
    + +
    + getStore( scope, callback ) +
    + + + content-hub.js:798 +
    +

    Creates a ContentStore object for the given scope type.

    + + Parameters: +
      +
    • + scope <ContentScope> +

      The content scope for the store

      + +
    • +
    • + callback <Function(ContentStore)> +

      Callback that receives the result or null

      + +
    • +
    +
    + +
    + launchContentPeerPicker( filters, onPeerSelected, onCancelPressed ) +
    + + + content-hub.js:811 +
    +

    Launches the content peer picker ui that allows the user to select a peer.

    + + Parameters: +
      +
    • + filters <Object> +

      A dictionary of parameters to filter the result. The filtering keys are:

      +
        +
      • contentType: desired ContentType
      • +
      • handler: desired ContentHandler
      • +
      • showTitle: boolean value indicating if the title should be visible
      • +
      + +
    • +
    • + onPeerSelected <Function(ContentPeer)> +

      Called when the user has selected a peer

      + +
    • +
    • + onCancelPressed <Function()> +

      Called when the user has pressed cancel

      + +
    • +
    +
    + +
    + onExportRequested( callback ) +
    + + + content-hub.js:827 +
    +

    Sets a handler that is to be called when the current application is the + target of an export request.

    + + Parameters: +
      +
    • + callback <Function(ContentTransfer)> +

      Function when one requests a resource to be exported. + The corresponding ContentTransfer is provided as a parameter.

      + +
    • +
    +
    Example
    +
           var api = external.getUnityObject(1.0);
    +                       var hub = api.ContentHub;
    +                    
    +                       var transferState = hub.ContentTransfer.State;
    +                       
    +                       function _exportRequested(transfer) {
    +                         var url = window.location.href;
    +                         url = url.substr(0, url.lastIndexOf('/')+1) + 'img/ubuntuone-music.png';
    +                       
    +                         transfer.setItems([{name: 'Ubuntu One', url: url}],
    +                           function() {
    +                             transfer.setState(hub.ContentTransfer.State.Charged);
    +                           });
    +                         };
    +                       
    +                       hub.onExportRequested(_exportRequested);
    +                
    + +
    + +
    + onImportRequested( callback ) +
    + + + content-hub.js:886 +
    +

    Sets a handler that is to be called when the current application is the + target of an import request.

    + + Parameters: +
      +
    • + callback <Function(ContentTransfer)> +

      Function when one requests a resource to be imported. + The corresponding ContentTransfer is provided as a parameter.

      + +
    • +
    +
    Example
    +
           var api = external.getUnityObject(1.0);
    +                       var hub = api.ContentHub;
    +                
    +                       var transferState = hub.ContentTransfer.State;
    +                
    +                       function _importRequested(transfer) {
    +                       };
    +                
    +                       hub.onImportRequested(_importRequested);
    +                
    + +
    + +
    + onShareRequested( callback ) +
    + + + content-hub.js:860 +
    +

    Sets a handler that is to be called when the current application is the + target of an share request.

    + + Parameters: +
      +
    • + callback <Function(ContentTransfer)> +

      Function when one requests a resource to be shared. + The corresponding ContentTransfer is provided as a parameter.

      + +
    • +
    +
    Example
    +
           var api = external.getUnityObject(1.0);
    +                       var hub = api.ContentHub;
    +                
    +                       var transferState = hub.ContentTransfer.State;
    +                
    +                       function _shareRequested(transfer) {
    +                       };
    +                
    +                       hub.onShareRequested(_shareRequested);
    +                
    + +
    +
    +
    + +
    + ContentHandler <String> (static)
    + content-hub.js:614 +

    ContentHandler is an enumeration of well known content handlers.

    +

    Values:

    +

    Source

    +

    Destination

    +

    Share

    + +
    + +
    + ContentScope <String> (static)
    + content-hub.js:634 +

    ContentScope is an enumeration of well known scope types.

    +

    Values:

    +

    System

    +

    User

    +

    App

    + +
    + +
    + ContentTransfer.Direction <String> (static)
    + content-hub.js:736 +

    ContentTransfer.Direction is an enumeration of the directions of a given ContentTransfer.

    +

    Values:

    +

    Import

    +

    Export

    +

    Share

    + +
    + +
    + ContentTransfer.SelectionType <String> (static)
    + content-hub.js:761 +

    ContentTransfer.SelectionType is an enumeration of the directions of a given ContentTransfer.

    +

    Values:

    +

    Single: Transfer should contain a single item

    +

    Multiple: Transfer can contain multiple items

    + +
    + +
    + ContentTransfer.State <String> (static)
    + content-hub.js:656 +

    ContentTransfer.State is an enumeration of the state of a given ongoing ContentTransfer.

    +

    Values:

    +

    Created: Transfer created, waiting to be initiated.

    +

    Initiated: Transfer has been initiated.

    +

    InProgress: Transfer is in progress.

    +

    Charged: Transfer is charged with items and ready to be collected.

    +

    Collected: Items in the transfer have been collected.

    +

    Aborted: Transfer has been aborted.

    +

    Finalized: Transfer has been finished and cleaned up.

    +

    Downloaded: Download specified by downloadId has completed.

    +

    Downloading: Transfer is downloading item specified by downloadId.

    + +
    Example
    +

    var api = external.getUnityObject('1.0'); + var hub = api.ContentHub;

    +

    var transferState = hub.ContentTransfer.State; + var pictureContentType = hub.ContentType.Pictures;

    +

    hub.importContentForPeer( + pictureContentType, + peer, + function(transfer) { + hub.defaultStoreForType(pictureContentType, function(store) { + transfer.setStore(store, function() { + transfer.start(function(state) { + if (transferState.Aborted === state) { + [...] + } + [...] + }); + }); + }); + });

    + +
    + +
    + ContentType <String> (static)
    + content-hub.js:576 +

    ContentType is an enumeration of well known content types.

    +

    Values:

    +
    Pictures
    +                
    +                Documents
    +                
    +                Music
    +                
    +                Contacts
    +                
    +                Videos
    +                
    +                Links
    + +
    Example
    +

    var api = external.getUnityObject('1.0'); + var hub = api.ContentHub;

    +

    var pictureContentType = hub.ContentType.Pictures;

    + +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentPeer.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentPeer.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentPeer.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentPeer.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,411 @@ + + + + + ContentPeer - Content Hub JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    Class ContentPeer

    +Class defined in: content-hub.js:230 +

    ContentPeer is an object returned by the ContentHub. +It represents a remote peer that can be used in a request +to import, export or share content.

    +
    + + +
    + ContentPeer( ) +
    + + + content-hub.js:230 +
    + +
    Example
    +
      var api = external.getUnityObject('1.0');
    +      var hub = api.ContentHub;
    +    
    +      var pictureContentType = hub.ContentType.Pictures;
    +    
    +      hub.defaultSourceForType(
    +         pictureContentType
    +         , function(peer) {
    +            [do something with the peer]
    +          });
    + +
    + +
    + +
    +
    + +
    + String appId( callback ) +
    + + + content-hub.js:281 +
    +

    Retrieves the app Id of the associated peer.

    +

    If the callback parameter is not set, the current "local" value is retrieved.

    + + Parameters: +
      +
    • + callback <Function(String)> +

      (optional)

      + +
    • +
    +
    Returns: <String>

    Application Id for this peer

    +
    +
    + +
    + String contentType( callback ) +
    + + + content-hub.js:335 +
    +

    Retrieves the specific ContentType for this peer.

    +

    If the callback parameter is not set, the current "local" value is retrieved.

    + + Parameters: +
      +
    • + callback <Function(String)> +

      (optional)

      + +
    • +
    +
    Returns: <String>

    ContentType for this peer

    +
    +
    + +
    + destroy( ) +
    + + + content-hub.js:446 +
    +

    Destroys the remote object. This proxy object is not valid anymore.

    + +
    + +
    + String handler( callback ) +
    + + + content-hub.js:308 +
    +

    Retrieves the specific ContentHandler for this peer.

    +

    If the callback parameter is not set, the current "local" value is retrieved.

    + + Parameters: +
      +
    • + callback <Function(String)> +

      (optional)

      + +
    • +
    +
    Returns: <String>

    ContentHandler for this peer

    +
    +
    + +
    + isDefaultPeer( callback ) +
    + + + content-hub.js:405 +
    +

    Returns true if the peer is a default one, false otherwise.

    +

    If the callback parameter is not set, the current "local" value is retrieved.

    + + Parameters: +
      +
    • + callback <Function(Bool)> +

      (optional)

      + +
    • +
    +
    + +
    + name( callback ) +
    + + + content-hub.js:389 +
    +

    Retrieves the name of the associated peer.

    +

    If the callback parameter is not set, the current "local" value is retrieved.

    + + Parameters: +
      +
    • + callback <Function(String)> +

      (optional)

      + +
    • +
    +
    + +
    + request( callback ) +
    + + + content-hub.js:423 +
    +

    Request to exchange content with this ContentPeer.

    + + Parameters: +
      +
    • + callback <Function(ContentTransfer)> +

      Called with the resulting content transfer

      + +
    • +
    +
    + +
    + requestForStore( store, callback ) +
    + + + content-hub.js:433 +
    +

    Request to import content from this ContentPeer and use a ContentStore for permanent storage.

    + + Parameters: +
      +
    • + store <ContentStore> +

      Store used as a permanent storage

      + +
    • +
    • + callback <Function(ContentTransfer)> +

      Called with the resulting content transfer

      + +
    • +
    +
    + +
    + String selectionType( callback ) +
    + + + content-hub.js:362 +
    +

    Retrieves the specific SelectionType for this peer.

    +

    If the callback parameter is not set, the current "local" value is retrieved.

    + + Parameters: +
      +
    • + callback <Function(String)> +

      (optional)

      + +
    • +
    +
    Returns: <String>

    ContentTransfer.SelectionType for this peer

    +
    +
    + +
    + setAppId( appId, callback ) +
    + + + content-hub.js:297 +
    +

    Sets the app Id of the associated peer.

    + + Parameters: +
      +
    • + appId <String> + +
    • +
    • + callback <Function()> +

      called when the appId has been updated

      + +
    • +
    +
    + +
    + setContentType( contentType, callback ) +
    + + + content-hub.js:351 +
    +

    Sets specific ContentType for this peer.

    + + Parameters: +
      +
    • + contentType <ContentType> + +
    • +
    • + callback <Function()> +

      called when the content type has been updated

      + +
    • +
    +
    + +
    + setHandler( handler, callback ) +
    + + + content-hub.js:324 +
    +

    Sets specific ContentHandler for this peer.

    + + Parameters: +
      +
    • + handler <ContentHandler> + +
    • +
    • + callback <Function()> +

      called when the appId has been updated

      + +
    • +
    +
    + +
    + setSelectionType( selectionType, callback ) +
    + + + content-hub.js:378 +
    +

    Sets specific SelectionType for this peer.

    + + Parameters: +
      +
    • + selectionType <ContentTransfer.SelectionType> + +
    • +
    • + callback <Function()> +

      called when the content type has been updated

      + +
    • +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentStore.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentStore.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentStore.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentStore.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,205 @@ + + + + + ContentStore - Content Hub JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    Class ContentStore

    +Class defined in: content-hub.js:456 +

    ContentStore is an object returned by the ContentHub.

    +

    It represents a location where the resources imported or +exported from a peer during a transfer operation are to be +either saved or found.

    +
    + + +
    + ContentStore( ) +
    + + + content-hub.js:456 +
    + +
    Example
    +
      var api = external.getUnityObject('1.0');
    +      var hub = api.ContentHub;
    +    
    +      var pictureContentType = hub.ContentType.Pictures;
    +    
    +      hub.defaultStoreForType(pictureContentType, function(store) {
    +        [do something with the store]
    +        });
    + +
    + +
    + +
    +
    + +
    + destroy( ) +
    + + + content-hub.js:547 +
    +

    Destroys the remote object. This proxy object is not valid anymore.

    + +
    + +
    + ContentScope scope( callback ) +
    + + + content-hub.js:518 +
    +

    Retrieves the current scope.

    +

    If the callback parameter is not set, the current "local" value is retrieved.

    + + Parameters: +
      +
    • + callback <Function(ContentScope)> +

      (optional)

      + +
    • +
    +
    Returns: <ContentScope>

    current scope

    +
    +
    + +
    + setScope( scope, callback ) +
    + + + content-hub.js:534 +
    +

    Sets the current scope.

    + + Parameters: +
      +
    • + scope <ContentScope> + +
    • +
    • + callback <Function()> +

      called when the scope has been updated

      + +
    • +
    +
    + +
    + String uri( callback ) +
    + + + content-hub.js:501 +
    +

    Retrieves the uri of the associated store.

    +

    If the callback parameter is not set, the current "local" value is retrieved.

    + + Parameters: +
      +
    • + callback <Function(String)> +

      (optional)

      + +
    • +
    +
    Returns: <String>

    current uri

    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentTransfer.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentTransfer.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentTransfer.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/classes/ContentTransfer.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,415 @@ + + + + + ContentTransfer - Content Hub JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    Class ContentTransfer

    +Class defined in: content-hub.js:11 +

    ContentTransfer is an object created by the ContentHub to +and allows one to properly setup and manage a data +transfer between two peers.

    +
    + + +
    + ContentTransfer( ) +
    + + + content-hub.js:11 +
    + +
    Example
    +
      var api = external.getUnityObject('1.0');
    +      var hub = api.ContentHub;
    +    
    +      var pictureContentType = hub.ContentType.Pictures;
    +    
    +      hub.defaultSourceForType(
    +         pictureContentType
    +         , function(peer) {
    +           hub.importContentForPeer(
    +             pictureContentType,
    +             peer,
    +             function(transfer) {
    +               [setup the transfer options and store]
    +               transfer.start(function(state) { [...] });
    +             });
    +          });
    + +
    + +
    + +
    +
    + +
    + destroy( ) +
    + + + content-hub.js:220 +
    +

    Destroys the remote object. This proxy object is not valid anymore.

    + +
    + +
    + direction( callback ) +
    + + + content-hub.js:150 +
    +

    Retrieves the current transfer direction.

    +

    If the callback parameter is not set, the current "local" value is retrieved.

    + + Parameters: +
      +
    • + callback <Function(ContentTransfer.Direction)> +

      (optional)

      + +
    • +
    +
    + +
    + finalize( ) +
    + + + content-hub.js:209 +
    +

    Sets State to ContentTransfer.Finalized and cleans up temporary files.

    + +
    + +
    + items( callback ) +
    + + + content-hub.js:177 +
    +

    Retrieves the list of items associated with the ContentTransfer.

    + + Parameters: +
      +
    • + callback <Function( Objectname: , url:> +

      } )}

      + +
    • +
    +
    + +
    + onStateChanged( callback ) +
    + + + content-hub.js:115 +
    +

    Notifies the listener when the state of the transfer changes.

    + + Parameters: +
      +
    • + callback <Function(ContentTransfer.State)> + +
    • +
    +
    + +
    + selectionType( callback ) +
    + + + content-hub.js:125 +
    +

    Retrieves the current selection type.

    + + Parameters: +
      +
    • + callback <Function(ContentTransfer.SelectionType)> + +
    • +
    +
    + +
    + setDirection( direction, callback ) +
    + + + content-hub.js:165 +
    +

    Sets the transfer direction (import or export).

    + + Parameters: +
      +
    • + direction <ContentTransfer.Direction> + +
    • +
    • + callback <Function()> +

      called when the state has been updated

      + +
    • +
    +
    + +
    + setItems( items, callback ) +
    + + + content-hub.js:186 +
    +

    Sets the list of items for the associated ContentTransfer (used when exporting).

    + + Parameters: +
      +
    • + items <Array of Objectname: String, url: String> +

      }

      + +
    • +
    • + callback <Function()> +

      called when the state has been updated

      + +
    • +
    +
    + +
    + setSelectionType( selectionType, callback ) +
    + + + content-hub.js:138 +
    +

    Sets the selection type (single or multiple).

    + + Parameters: +
      +
    • + selectionType <ContentTransfer.SelectionType> + +
    • +
    • + callback <Function()> +

      called when the state has been updated

      + +
    • +
    +
    + +
    + setState( state, callback ) +
    + + + content-hub.js:105 +
    +

    Sets the state of the transfer.

    + + Parameters: +
      +
    • + state <ContentTransfer.State> + +
    • +
    • + callback <Function()> +

      called when the state has been updated

      + +
    • +
    +
    + +
    + setStore( store, callback ) +
    + + + content-hub.js:79 +
    +

    Sets the current store for the ContentTransfer.

    + + Parameters: +
      +
    • + store <ContentStore> + +
    • +
    • + callback <Function()> +

      (optional) called when the store has been updated

      + +
    • +
    +
    + +
    + start( callback ) +
    + + + content-hub.js:199 +
    +

    Starts a transfer

    + + Parameters: +
      +
    • + callback <Function(ContentTransfer.State)> + +
    • +
    +
    + +
    + state( callback ) +
    + + + content-hub.js:90 +
    +

    Retrieves the current state.

    +

    If the callback parameter is not set, the current "local" value is retrieved.

    + + Parameters: +
      +
    • + callback <Function(ContentTransfer.State)> +

      (optional)

      + +
    • +
    +
    + +
    + store( callback ) +
    + + + content-hub.js:64 +
    +

    Retrieves the current store.

    +

    If the callback parameter is not set, the current "local" value is retrieved.

    + + Parameters: +
      +
    • + callback <Function(String)> +

      (optional)

      + +
    • +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/data.json unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/data.json --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/data.json 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/data.json 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,909 @@ +{ + "project": { + "name": "Content Hub JS API", + "description": "Ubuntu App Platform Content Hub JavaScript API docs", + "version": "0.1" + }, + "files": { + "content-hub.js": { + "name": "content-hub.js", + "modules": { + "ContentHub": 1 + }, + "classes": { + "ContentTransfer": 1, + "ContentPeer": 1, + "ContentStore": 1, + "ContentHub": 1 + }, + "fors": {}, + "namespaces": {} + } + }, + "modules": { + "ContentHub": { + "name": "ContentHub", + "submodules": {}, + "classes": { + "ContentTransfer": 1, + "ContentPeer": 1, + "ContentStore": 1, + "ContentHub": 1 + }, + "fors": {}, + "namespaces": {}, + "tag": "module", + "file": "content-hub.js", + "line": 568, + "description": "ContentHub is the entry point to resource io transfer\n from/to remote applications (peers)." + } + }, + "classes": { + "ContentTransfer": { + "name": "ContentTransfer", + "shortname": "ContentTransfer", + "classitems": [], + "plugins": [], + "extensions": [], + "plugin_for": [], + "extension_for": [], + "module": "ContentHub", + "namespace": "", + "file": "content-hub.js", + "line": 11, + "description": "ContentTransfer is an object created by the ContentHub to\n and allows one to properly setup and manage a data\n transfer between two peers.", + "is_constructor": 1, + "example": [ + "\n\n var api = external.getUnityObject('1.0');\n var hub = api.ContentHub;\n\n var pictureContentType = hub.ContentType.Pictures;\n\n hub.defaultSourceForType(\n pictureContentType\n , function(peer) {\n hub.importContentForPeer(\n pictureContentType,\n peer,\n function(transfer) {\n [setup the transfer options and store]\n transfer.start(function(state) { [...] });\n });\n });" + ] + }, + "ContentPeer": { + "name": "ContentPeer", + "shortname": "ContentPeer", + "classitems": [], + "plugins": [], + "extensions": [], + "plugin_for": [], + "extension_for": [], + "module": "ContentHub", + "namespace": "", + "file": "content-hub.js", + "line": 230, + "description": "ContentPeer is an object returned by the ContentHub.\n It represents a remote peer that can be used in a request\n to import, export or share content.", + "is_constructor": 1, + "example": [ + "\n\n var api = external.getUnityObject('1.0');\n var hub = api.ContentHub;\n\n var pictureContentType = hub.ContentType.Pictures;\n\n hub.defaultSourceForType(\n pictureContentType\n , function(peer) {\n [do something with the peer]\n });" + ] + }, + "ContentStore": { + "name": "ContentStore", + "shortname": "ContentStore", + "classitems": [], + "plugins": [], + "extensions": [], + "plugin_for": [], + "extension_for": [], + "module": "ContentHub", + "namespace": "", + "file": "content-hub.js", + "line": 456, + "description": "ContentStore is an object returned by the ContentHub.\n\n It represents a location where the resources imported or\n exported from a peer during a transfer operation are to be\n either saved or found.", + "is_constructor": 1, + "example": [ + "\n\n var api = external.getUnityObject('1.0');\n var hub = api.ContentHub;\n\n var pictureContentType = hub.ContentType.Pictures;\n\n hub.defaultStoreForType(pictureContentType, function(store) {\n [do something with the store]\n });" + ] + }, + "ContentHub": { + "name": "ContentHub", + "shortname": "ContentHub", + "classitems": [], + "plugins": [], + "extensions": [], + "plugin_for": [], + "extension_for": [], + "module": "ContentHub", + "namespace": "", + "file": "content-hub.js", + "line": 568, + "description": "The ContentHub object.", + "static": 1, + "is_constructor": 1 + } + }, + "classitems": [ + { + "file": "content-hub.js", + "line": 64, + "description": "Retrieves the current store.\n\nIf the callback parameter is not set, the current \"local\" value is retrieved.", + "itemtype": "method", + "name": "store", + "params": [ + { + "name": "callback", + "description": "(optional)", + "type": "Function(String)" + } + ], + "class": "ContentTransfer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 79, + "description": "Sets the current store for the ContentTransfer.", + "itemtype": "method", + "name": "setStore", + "params": [ + { + "name": "store", + "description": "", + "type": "ContentStore" + }, + { + "name": "callback", + "description": "(optional) called when the store has been updated", + "type": "Function()" + } + ], + "class": "ContentTransfer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 90, + "description": "Retrieves the current state.\n\nIf the callback parameter is not set, the current \"local\" value is retrieved.", + "itemtype": "method", + "name": "state", + "params": [ + { + "name": "callback", + "description": "(optional)", + "type": "Function(ContentTransfer.State)" + } + ], + "class": "ContentTransfer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 105, + "description": "Sets the state of the transfer.", + "itemtype": "method", + "name": "setState", + "params": [ + { + "name": "state", + "description": "", + "type": "ContentTransfer.State" + }, + { + "name": "callback", + "description": "called when the state has been updated", + "type": "Function()" + } + ], + "class": "ContentTransfer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 115, + "description": "Notifies the listener when the state of the transfer changes.", + "itemtype": "method", + "name": "onStateChanged", + "params": [ + { + "name": "callback", + "description": "", + "type": "Function(ContentTransfer.State)" + } + ], + "class": "ContentTransfer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 125, + "description": "Retrieves the current selection type.", + "itemtype": "method", + "name": "selectionType", + "params": [ + { + "name": "callback", + "description": "", + "type": "Function(ContentTransfer.SelectionType)" + } + ], + "class": "ContentTransfer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 138, + "description": "Sets the selection type (single or multiple).", + "itemtype": "method", + "name": "setSelectionType", + "params": [ + { + "name": "selectionType", + "description": "", + "type": "ContentTransfer.SelectionType" + }, + { + "name": "callback", + "description": "called when the state has been updated", + "type": "Function()" + } + ], + "class": "ContentTransfer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 150, + "description": "Retrieves the current transfer direction.\n\nIf the callback parameter is not set, the current \"local\" value is retrieved.", + "itemtype": "method", + "name": "direction", + "params": [ + { + "name": "callback", + "description": "(optional)", + "type": "Function(ContentTransfer.Direction)" + } + ], + "class": "ContentTransfer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 165, + "description": "Sets the transfer direction (import or export).", + "itemtype": "method", + "name": "setDirection", + "params": [ + { + "name": "direction", + "description": "", + "type": "ContentTransfer.Direction" + }, + { + "name": "callback", + "description": "called when the state has been updated", + "type": "Function()" + } + ], + "class": "ContentTransfer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 177, + "description": "Retrieves the list of items associated with the ContentTransfer.", + "itemtype": "method", + "name": "items", + "params": [ + { + "name": "callback", + "description": "} )}", + "type": "Function( Objectname: , url:" + } + ], + "class": "ContentTransfer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 186, + "description": "Sets the list of items for the associated ContentTransfer (used when exporting).", + "itemtype": "method", + "name": "setItems", + "params": [ + { + "name": "items", + "description": "}", + "type": "Array of Objectname: String, url: String" + }, + { + "name": "callback", + "description": "called when the state has been updated", + "type": "Function()" + } + ], + "class": "ContentTransfer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 199, + "description": "Starts a transfer", + "itemtype": "method", + "name": "start", + "params": [ + { + "name": "callback", + "description": "", + "type": "Function(ContentTransfer.State)" + } + ], + "class": "ContentTransfer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 209, + "description": "Sets State to ContentTransfer.Finalized and cleans up temporary files.", + "itemtype": "method", + "name": "finalize", + "class": "ContentTransfer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 220, + "description": "Destroys the remote object. This proxy object is not valid anymore.", + "itemtype": "method", + "name": "destroy", + "class": "ContentTransfer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 281, + "description": "Retrieves the app Id of the associated peer.\n\nIf the callback parameter is not set, the current \"local\" value is retrieved.", + "itemtype": "method", + "name": "appId", + "return": { + "description": "Application Id for this peer", + "type": "String" + }, + "params": [ + { + "name": "callback", + "description": "(optional)", + "type": "Function(String)" + } + ], + "class": "ContentPeer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 297, + "description": "Sets the app Id of the associated peer.", + "itemtype": "method", + "name": "setAppId", + "params": [ + { + "name": "appId", + "description": "", + "type": "String" + }, + { + "name": "callback", + "description": "called when the appId has been updated", + "type": "Function()" + } + ], + "class": "ContentPeer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 308, + "description": "Retrieves the specific ContentHandler for this peer.\n\nIf the callback parameter is not set, the current \"local\" value is retrieved.", + "itemtype": "method", + "name": "handler", + "return": { + "description": "ContentHandler for this peer", + "type": "String" + }, + "params": [ + { + "name": "callback", + "description": "(optional)", + "type": "Function(String)" + } + ], + "class": "ContentPeer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 324, + "description": "Sets specific ContentHandler for this peer.", + "itemtype": "method", + "name": "setHandler", + "params": [ + { + "name": "handler", + "description": "", + "type": "ContentHandler" + }, + { + "name": "callback", + "description": "called when the appId has been updated", + "type": "Function()" + } + ], + "class": "ContentPeer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 335, + "description": "Retrieves the specific ContentType for this peer.\n\nIf the callback parameter is not set, the current \"local\" value is retrieved.", + "itemtype": "method", + "name": "contentType", + "return": { + "description": "ContentType for this peer", + "type": "String" + }, + "params": [ + { + "name": "callback", + "description": "(optional)", + "type": "Function(String)" + } + ], + "class": "ContentPeer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 351, + "description": "Sets specific ContentType for this peer.", + "itemtype": "method", + "name": "setContentType", + "params": [ + { + "name": "contentType", + "description": "", + "type": "ContentType" + }, + { + "name": "callback", + "description": "called when the content type has been updated", + "type": "Function()" + } + ], + "class": "ContentPeer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 362, + "description": "Retrieves the specific SelectionType for this peer.\n\nIf the callback parameter is not set, the current \"local\" value is retrieved.", + "itemtype": "method", + "name": "selectionType", + "return": { + "description": "ContentTransfer.SelectionType for this peer", + "type": "String" + }, + "params": [ + { + "name": "callback", + "description": "(optional)", + "type": "Function(String)" + } + ], + "class": "ContentPeer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 378, + "description": "Sets specific SelectionType for this peer.", + "itemtype": "method", + "name": "setSelectionType", + "params": [ + { + "name": "selectionType", + "description": "", + "type": "ContentTransfer.SelectionType" + }, + { + "name": "callback", + "description": "called when the content type has been updated", + "type": "Function()" + } + ], + "class": "ContentPeer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 389, + "description": "Retrieves the name of the associated peer.\n\nIf the callback parameter is not set, the current \"local\" value is retrieved.", + "itemtype": "method", + "name": "name", + "params": [ + { + "name": "callback", + "description": "(optional)", + "type": "Function(String)" + } + ], + "class": "ContentPeer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 405, + "description": "Returns true if the peer is a default one, false otherwise.\n\nIf the callback parameter is not set, the current \"local\" value is retrieved.", + "itemtype": "method", + "name": "isDefaultPeer", + "params": [ + { + "name": "callback", + "description": "(optional)", + "type": "Function(Bool)" + } + ], + "class": "ContentPeer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 423, + "description": "Request to exchange content with this ContentPeer.", + "itemtype": "method", + "name": "request", + "params": [ + { + "name": "callback", + "description": "Called with the resulting content transfer", + "type": "Function(ContentTransfer)" + } + ], + "class": "ContentPeer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 433, + "description": "Request to import content from this ContentPeer and use a ContentStore for permanent storage.", + "itemtype": "method", + "name": "requestForStore", + "params": [ + { + "name": "store", + "description": "Store used as a permanent storage", + "type": "ContentStore" + }, + { + "name": "callback", + "description": "Called with the resulting content transfer", + "type": "Function(ContentTransfer)" + } + ], + "class": "ContentPeer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 446, + "description": "Destroys the remote object. This proxy object is not valid anymore.", + "itemtype": "method", + "name": "destroy", + "class": "ContentPeer", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 501, + "description": "Retrieves the uri of the associated store.\n\nIf the callback parameter is not set, the current \"local\" value is retrieved.", + "itemtype": "method", + "name": "uri", + "return": { + "description": "current uri", + "type": "String" + }, + "params": [ + { + "name": "callback", + "description": "(optional)", + "type": "Function(String)" + } + ], + "class": "ContentStore", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 518, + "description": "Retrieves the current scope.\n\nIf the callback parameter is not set, the current \"local\" value is retrieved.", + "itemtype": "method", + "name": "scope", + "return": { + "description": "current scope", + "type": "ContentScope" + }, + "params": [ + { + "name": "callback", + "description": "(optional)", + "type": "Function(ContentScope)" + } + ], + "class": "ContentStore", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 534, + "description": "Sets the current scope.", + "itemtype": "method", + "name": "setScope", + "params": [ + { + "name": "scope", + "description": "", + "type": "ContentScope" + }, + { + "name": "callback", + "description": "called when the scope has been updated", + "type": "Function()" + } + ], + "class": "ContentStore", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 547, + "description": "Destroys the remote object. This proxy object is not valid anymore.", + "itemtype": "method", + "name": "destroy", + "class": "ContentStore", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 576, + "description": "ContentType is an enumeration of well known content types.\n\n Values:\n\n Pictures\n\n Documents\n \n Music\n\n Contacts\n\n Videos\n\n Links", + "static": 1, + "itemtype": "property", + "name": "ContentType", + "type": "String", + "example": [ + "\n\n var api = external.getUnityObject('1.0');\n var hub = api.ContentHub;\n\n var pictureContentType = hub.ContentType.Pictures;" + ], + "class": "ContentHub", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 614, + "description": "ContentHandler is an enumeration of well known content handlers.\n\n Values:\n\n Source\n\n Destination\n\n Share", + "static": 1, + "itemtype": "property", + "name": "ContentHandler", + "type": "String", + "class": "ContentHub", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 634, + "description": "ContentScope is an enumeration of well known scope types.\n\n Values:\n\n System\n\n User\n\n App", + "static": 1, + "itemtype": "property", + "name": "ContentScope", + "type": "String", + "class": "ContentHub", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 656, + "description": "ContentTransfer.State is an enumeration of the state of a given ongoing ContentTransfer.\n\n Values:\n\n Created: Transfer created, waiting to be initiated.\n\n Initiated: Transfer has been initiated.\n\n InProgress: Transfer is in progress.\n\n Charged: Transfer is charged with items and ready to be collected.\n\n Collected: Items in the transfer have been collected.\n\n Aborted: Transfer has been aborted.\n\n Finalized: Transfer has been finished and cleaned up.\n\n Downloaded: Download specified by downloadId has completed.\n\n Downloading: Transfer is downloading item specified by downloadId.", + "static": 1, + "itemtype": "property", + "name": "ContentTransfer.State", + "type": "String", + "example": [ + "\n\n var api = external.getUnityObject('1.0');\n var hub = api.ContentHub;\n\n var transferState = hub.ContentTransfer.State;\n var pictureContentType = hub.ContentType.Pictures;\n\n hub.importContentForPeer(\n pictureContentType,\n peer,\n function(transfer) {\n hub.defaultStoreForType(pictureContentType, function(store) {\n transfer.setStore(store, function() {\n transfer.start(function(state) {\n if (transferState.Aborted === state) {\n [...]\n }\n [...]\n });\n });\n });\n });\n" + ], + "class": "ContentHub", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 736, + "description": "ContentTransfer.Direction is an enumeration of the directions of a given ContentTransfer.\n\n Values:\n\n Import\n\n Export\n\n Share", + "static": 1, + "itemtype": "property", + "name": "ContentTransfer.Direction", + "type": "String", + "class": "ContentHub", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 761, + "description": "ContentTransfer.SelectionType is an enumeration of the directions of a given ContentTransfer.\n\n Values:\n\n Single: Transfer should contain a single item\n\n Multiple: Transfer can contain multiple items", + "static": 1, + "itemtype": "property", + "name": "ContentTransfer.SelectionType", + "type": "String", + "class": "ContentHub", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 782, + "description": "Creates a ContentPeer object for the given source type.", + "itemtype": "method", + "name": "getPeers", + "params": [ + { + "name": "filters", + "description": "A dictionary of parameters to filter the result. The filtering keys are:\n- contentType: desired ContentType\n- handler: desired ContentHandler", + "type": "Object" + }, + { + "name": "callback", + "description": "Callback that receives the result or null", + "type": "Function(List of ContentPeer objects)" + } + ], + "class": "ContentHub", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 798, + "description": "Creates a ContentStore object for the given scope type.", + "itemtype": "method", + "name": "getStore", + "params": [ + { + "name": "scope", + "description": "The content scope for the store", + "type": "ContentScope" + }, + { + "name": "callback", + "description": "Callback that receives the result or null", + "type": "Function(ContentStore)" + } + ], + "class": "ContentHub", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 811, + "description": "Launches the content peer picker ui that allows the user to select a peer.", + "itemtype": "method", + "name": "launchContentPeerPicker", + "params": [ + { + "name": "filters", + "description": "A dictionary of parameters to filter the result. The filtering keys are:\n- contentType: desired ContentType\n- handler: desired ContentHandler\n- showTitle: boolean value indicating if the title should be visible", + "type": "Object" + }, + { + "name": "onPeerSelected", + "description": "Called when the user has selected a peer", + "type": "Function(ContentPeer)" + }, + { + "name": "onCancelPressed", + "description": "Called when the user has pressed cancel", + "type": "Function()" + } + ], + "class": "ContentHub", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 827, + "description": "Sets a handler that is to be called when the current application is the\ntarget of an export request.", + "itemtype": "method", + "name": "onExportRequested", + "params": [ + { + "name": "callback", + "description": "Function when one requests a resource to be exported.\n The corresponding ContentTransfer is provided as a parameter.", + "type": "Function(ContentTransfer)" + } + ], + "example": [ + "\n \n var api = external.getUnityObject(1.0);\n var hub = api.ContentHub;\n \n var transferState = hub.ContentTransfer.State;\n \n function _exportRequested(transfer) {\n var url = window.location.href;\n url = url.substr(0, url.lastIndexOf('/')+1) + 'img/ubuntuone-music.png';\n \n transfer.setItems([{name: 'Ubuntu One', url: url}],\n function() {\n transfer.setState(hub.ContentTransfer.State.Charged);\n });\n };\n \n hub.onExportRequested(_exportRequested);\n " + ], + "class": "ContentHub", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 860, + "description": "Sets a handler that is to be called when the current application is the\ntarget of an share request.", + "itemtype": "method", + "name": "onShareRequested", + "params": [ + { + "name": "callback", + "description": "Function when one requests a resource to be shared.\n The corresponding ContentTransfer is provided as a parameter.", + "type": "Function(ContentTransfer)" + } + ], + "example": [ + "\n\n var api = external.getUnityObject(1.0);\n var hub = api.ContentHub;\n\n var transferState = hub.ContentTransfer.State;\n\n function _shareRequested(transfer) {\n };\n\n hub.onShareRequested(_shareRequested);\n" + ], + "class": "ContentHub", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 886, + "description": "Sets a handler that is to be called when the current application is the\ntarget of an import request.", + "itemtype": "method", + "name": "onImportRequested", + "params": [ + { + "name": "callback", + "description": "Function when one requests a resource to be imported.\n The corresponding ContentTransfer is provided as a parameter.", + "type": "Function(ContentTransfer)" + } + ], + "example": [ + "\n\n var api = external.getUnityObject(1.0);\n var hub = api.ContentHub;\n\n var transferState = hub.ContentTransfer.State;\n\n function _importRequested(transfer) {\n };\n\n hub.onImportRequested(_importRequested);\n" + ], + "class": "ContentHub", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 914, + "description": "Creates a ContentStore object for the given ContentPeer.", + "itemtype": "method", + "name": "api.importContent", + "params": [ + { + "name": "type", + "description": "type of the content to import", + "type": "ContentType" + }, + { + "name": "peer", + "description": "peer who's content should be imported", + "type": "ContentPeer" + }, + { + "name": "transferOptions", + "description": "a dictionary of transfer options. The options are the following:\n- multipleFiles {Bool}: specified if a transfer should involve multiple files or not\n- scope {ContentScope}: specifies the location where the transferred files should be copied to", + "type": "Object" + }, + { + "name": "onError", + "description": "called when the transfer has failed", + "type": "Function(reason:)" + }, + { + "name": "onSuccess", + "description": ")} called when the transfer has been a success and items are available", + "type": "Function(Array of ContentItem" + } + ], + "class": "ContentHub", + "module": "ContentHub" + }, + { + "file": "content-hub.js", + "line": 934, + "access": "private", + "tagname": "", + "class": "ContentHub", + "module": "ContentHub" + } + ], + "warnings": [ + { + "message": "Missing item type", + "line": " content-hub.js:934" + } + ] +} \ No newline at end of file diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/files/content-hub.js.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/files/content-hub.js.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/files/content-hub.js.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/files/content-hub.js.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,1025 @@ + + + + + content-hub.js - Content Hub JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    content-hub.js

    + +
    +/**
    + * ContentHub is the entry point to resource io transfer
    +   from/to remote applications (peers).
    +
    + * @module ContentHub
    + */
    +
    +function createContentHubApi(backendBridge) {
    +    var PLUGIN_URI = 'ContentHub';
    +
    +/**
    + * ContentTransfer is an object created by the ContentHub to
    +   and allows one to properly setup and manage a data
    +   transfer between two peers.
    +
    + * @class ContentTransfer
    + * @constructor
    + * @example
    +
    +       var api = external.getUnityObject('1.0');
    +       var hub = api.ContentHub;
    +
    +       var pictureContentType = hub.ContentType.Pictures;
    +
    +       hub.defaultSourceForType(
    +          pictureContentType
    +          , function(peer) {
    +            hub.importContentForPeer(
    +              pictureContentType,
    +              peer,
    +              function(transfer) {
    +                [setup the transfer options and store]
    +                transfer.start(function(state) { [...] });
    +              });
    +           });
    + */
    +    function ContentTransfer(objectid, content) {
    +        this._proxy = backendBridge.createRemoteObject(
    +            PLUGIN_URI, 'ContentTransfer', objectid);
    +
    +        this._store = content && content.store
    +             ? content.store : null;
    +        this._state = content && content.state
    +             ? content.state : null;
    +        this._selectionType = content && content.selectionType
    +             ? content.selectionType : null;
    +        this._direction = content && content.direction
    +             ? content.direction : null;
    +    };
    +    ContentTransfer.prototype = {
    +        // object methods
    +        serialize: function() {
    +            var self = this;
    +            return {
    +                type: 'object-proxy',
    +                apiid: 'ContentHub',
    +                objecttype: 'ContentTransfer',
    +                objectid: self._proxy.id(),
    +            }
    +        },
    +
    +        // properties
    +
    +        /**
    +         * Retrieves the current store.
    +         *
    +         * If the callback parameter is not set, the current "local" value is retrieved.
    +         *
    +         * @method store
    +         * @param callback (optional) {Function(String)}
    +         */
    +        store: function(callback) {
    +            if (callback && typeof(callback) === 'function') {
    +                this._proxy.call('store', [], callback);
    +                return;
    +            }
    +            return this._store;
    +        },
    +        /**
    +         * Sets the current store for the ContentTransfer.
    +         *
    +         * @method setStore
    +         * @param store {ContentStore}
    +         * @param callback (optional) {Function()} called when the store has been updated
    +         */
    +        setStore: function(store, callback) {
    +            this._proxy.call('setStore', [store.serialize(), callback]);
    +        },
    +
    +        /**
    +         * Retrieves the current state.
    +         *
    +         * If the callback parameter is not set, the current "local" value is retrieved.
    +         *
    +         * @method state
    +         * @param callback (optional) {Function(ContentTransfer.State)}
    +         */
    +        state: function(callback) {
    +            if (callback && typeof(callback) === 'function') {
    +                this._proxy.call('state', [], callback);
    +                return;
    +            }
    +            return this._state;
    +        },
    +        /**
    +         * Sets the state of the transfer.
    +         *
    +         * @method setState
    +         * @param state {ContentTransfer.State}
    +         * @param callback {Function()} called when the state has been updated
    +         */
    +        setState: function(state, callback) {
    +            this._proxy.call('setState', [state, callback]);
    +        },
    +        /**
    +         * Notifies the listener when the state of the transfer changes.
    +         *
    +         * @method onStateChanged
    +         * @param callback {Function(ContentTransfer.State)}
    +         */
    +        onStateChanged: function(callback) {
    +            this._proxy.call('onStateChanged', [callback]);
    +        },
    +
    +        /**
    +         * Retrieves the current selection type.
    +         *
    +         * @method selectionType
    +         * @param callback {Function(ContentTransfer.SelectionType)}
    +         */
    +        selectionType: function(callback) {
    +            if (callback && typeof(callback) === 'function') {
    +                this._proxy.call('selectionType', [], callback);
    +                return;
    +            }
    +            return this._selectionType;
    +        },
    +        /**
    +         * Sets the selection type (single or multiple).
    +         *
    +         * @method setSelectionType
    +         * @param selectionType {ContentTransfer.SelectionType}
    +         * @param callback {Function()} called when the state has been updated
    +         */
    +        setSelectionType: function(selectionType, callback) {
    +            this._selectionType = selectionType;
    +            this._proxy.call('setSelectionType', [selectionType, callback]);
    +        },
    +
    +        /**
    +         * Retrieves the current transfer direction.
    +         *
    +         * If the callback parameter is not set, the current "local" value is retrieved.
    +         *
    +         * @method direction
    +         * @param callback (optional) {Function(ContentTransfer.Direction)}
    +         */
    +        direction: function(callback) {
    +            if (callback && typeof(callback) === 'function') {
    +                this._proxy.call('direction', [], callback);
    +                return;
    +            }
    +            return this._direction;
    +        },
    +        /**
    +         * Sets the transfer direction (import or export).
    +         *
    +         * @method setDirection
    +         * @param direction {ContentTransfer.Direction}
    +         * @param callback {Function()} called when the state has been updated
    +         */
    +        setDirection: function(direction, callback) {
    +            this._direction = direction;
    +            this._proxy.call('setDirection', [direction, callback]);
    +        },
    +
    +        /**
    +         * Retrieves the list of items associated with the ContentTransfer.
    +         *
    +         * @method items
    +         * @param callback {Function( {Object{name: , url: }} )}
    +         */
    +        items: function(callback) {
    +            this._proxy.call('items', [], callback);
    +        },
    +        /**
    +         * Sets the list of items for the associated ContentTransfer (used when exporting).
    +         *
    +         * @method setItems
    +         * @param items {Array of Object{name: String, url: String}}
    +         * @param callback {Function()} called when the state has been updated
    +         */
    +        setItems: function(items, callback) {
    +            this._proxy.call('setItems', [items, callback]);
    +        },
    +
    +        // methods
    +
    +        /**
    +         * Starts a transfer
    +         * 
    +         * @method start
    +         * @param callback {Function(ContentTransfer.State)} 
    +         */
    +        start: function(callback) {
    +            this._proxy.call('start', [callback]);
    +        },
    +
    +        /**
    +         * Sets State to ContentTransfer.Finalized and cleans up temporary files.
    +         *
    +         * @method finalize
    +         */
    +        finalize: function() {
    +            this._proxy.call('finalize', []);
    +        },
    +
    +        // extras
    +
    +        /**
    +         * Destroys the remote object. This proxy object is not valid anymore.
    +         *
    +         * @method destroy
    +         */
    +        destroy: function() {
    +            this._proxy.call('destroy', []);
    +        },
    +    };
    +
    +/**
    + * ContentPeer is an object returned by the ContentHub.
    +   It represents a remote peer that can be used in a request
    +   to import, export or share content.
    +
    + * @class ContentPeer
    + * @module ContentHub
    + * @constructor
    + * @example
    +
    +       var api = external.getUnityObject('1.0');
    +       var hub = api.ContentHub;
    +
    +       var pictureContentType = hub.ContentType.Pictures;
    +
    +       hub.defaultSourceForType(
    +          pictureContentType
    +          , function(peer) {
    +             [do something with the peer]
    +           });
    + */
    +    function ContentPeer(objectid, content) {
    +        this._proxy = backendBridge.createRemoteObject(
    +            PLUGIN_URI, 'ContentPeer', objectid);
    +
    +        this._appId = content && content.appId
    +             ? content.appId : null;
    +        this._name = content && content.name
    +             ? content.name : null;
    +        this._handler = content && content.handler
    +             ? content.handler : null;
    +        this._contentType = content && content.contentType
    +             ? content.contentType : null;
    +        this._selectionType = content && content.selectionType
    +             ? content.selectionType : null;
    +        this._isDefaultPeer = content && content.isDefaultPeer;
    +    };
    +    ContentPeer.prototype = {
    +        // object methods
    +        serialize: function() {
    +            var self = this;
    +            return {
    +                type: 'object-proxy',
    +                apiid: 'ContentHub',
    +                objecttype: 'ContentPeer',
    +                objectid: self._proxy.id(),
    +            }
    +        },
    +
    +        // properties
    +
    +        /**
    +         * Retrieves the app Id of the associated peer.
    +         *
    +         * If the callback parameter is not set, the current "local" value is retrieved.
    +         *
    +         * @method appId
    +         * @return {String} Application Id for this peer
    +         * @param callback (optional) {Function(String)}
    +         */
    +        appId: function(callback) {
    +            if (callback && typeof(callback) === 'function') {
    +                this._proxy.call('appId', [], callback);
    +                return;
    +            }
    +            return this._appId;
    +        },
    +        /**
    +         * Sets the app Id of the associated peer.
    +         *
    +         * @method setAppId
    +         * @param appId {String}
    +         * @param callback {Function()} called when the appId has been updated
    +         */
    +        setAppId: function(appId, callback) {
    +            this._proxy.call('setAppId', [appId, callback]);
    +        },
    +
    +        /**
    +         * Retrieves the specific ContentHandler for this peer.
    +         *
    +         * If the callback parameter is not set, the current "local" value is retrieved.
    +         *
    +         * @method handler
    +         * @return {String} ContentHandler for this peer
    +         * @param callback (optional) {Function(String)}
    +         */
    +        handler: function(callback) {
    +            if (callback && typeof(callback) === 'function') {
    +                this._proxy.call('handler', [], callback);
    +                return;
    +            }
    +            return this._handler;
    +        },
    +        /**
    +         * Sets specific ContentHandler for this peer.
    +         *
    +         * @method setHandler
    +         * @param handler {ContentHandler}
    +         * @param callback {Function()} called when the appId has been updated
    +         */
    +        setHandler: function(handler, callback) {
    +            this._proxy.call('setHandler', [handler, callback]);
    +        },
    +
    +        /**
    +         * Retrieves the specific ContentType for this peer.
    +         *
    +         * If the callback parameter is not set, the current "local" value is retrieved.
    +         *
    +         * @method contentType
    +         * @return {String} ContentType for this peer
    +         * @param callback (optional) {Function(String)}
    +         */
    +        contentType: function(callback) {
    +            if (callback && typeof(callback) === 'function') {
    +                this._proxy.call('contentType', [], callback);
    +                return;
    +            }
    +            return this._contentType;
    +        },
    +        /**
    +         * Sets specific ContentType for this peer.
    +         *
    +         * @method setContentType
    +         * @param contentType {ContentType}
    +         * @param callback {Function()} called when the content type has been updated
    +         */
    +        setContentType: function(contentType, callback) {
    +            this._proxy.call('setContentType', [contentType, callback]);
    +        },
    +
    +        /**
    +         * Retrieves the specific SelectionType for this peer.
    +         *
    +         * If the callback parameter is not set, the current "local" value is retrieved.
    +         *
    +         * @method selectionType
    +         * @return {String} ContentTransfer.SelectionType for this peer
    +         * @param callback (optional) {Function(String)}
    +         */
    +        selectionType: function(callback) {
    +            if (callback && typeof(callback) === 'function') {
    +                this._proxy.call('selectionType', [], callback);
    +                return;
    +            }
    +            return this._selectionType;
    +        },
    +        /**
    +         * Sets specific SelectionType for this peer.
    +         *
    +         * @method setSelectionType
    +         * @param selectionType {ContentTransfer.SelectionType}
    +         * @param callback {Function()} called when the content type has been updated
    +         */
    +        setSelectionType: function(selectionType, callback) {
    +            this._proxy.call('setSelectionType', [selectionType, callback]);
    +        },
    +
    +        /**
    +         * Retrieves the name of the associated peer.
    +         *
    +         * If the callback parameter is not set, the current "local" value is retrieved.
    +         *
    +         * @method name
    +         * @param callback (optional) {Function(String)}
    +         */
    +        name: function(callback) {
    +            if (callback && typeof(callback) === 'function') {
    +                this._proxy.call('name', [], callback);
    +                return;
    +            }
    +            return this._name;
    +        },
    +
    +        /**
    +         * Returns true if the peer is a default one, false otherwise.
    +         *
    +         * If the callback parameter is not set, the current "local" value is retrieved.
    +         *
    +         * @method isDefaultPeer
    +         * @param callback (optional) {Function(Bool)}
    +         */
    +        isDefaultPeer: function(callback) {
    +            if (callback && typeof(callback) === 'function') {
    +                this._proxy.call('isDefaultPeer', [], callback);
    +                return;
    +            }
    +            return this._isDefaultPeer;
    +        },
    +
    +        // methods
    +
    +        /**
    +         * Request to exchange content with this ContentPeer.
    +         *
    +         * @method request
    +         * @param callback {Function(ContentTransfer)} Called with the resulting content transfer
    +         */
    +        request: function(callback) {
    +            this._proxy.call('request', [], callback);
    +        },
    +
    +        /**
    +         * Request to import content from this ContentPeer and use a ContentStore for permanent storage.
    +         *
    +         * @method requestForStore
    +         * @param store {ContentStore} Store used as a permanent storage
    +         * @param callback {Function(ContentTransfer)} Called with the resulting content transfer
    +         */
    +        requestForStore: function(store, callback) {
    +            this._proxy.call('requestForStore', [store.serialize()], callback);
    +        },
    +
    +        // extras
    +
    +        /**
    +         * Destroys the remote object. This proxy object is not valid anymore.
    +         *
    +         * @method destroy
    +         */
    +        destroy: function() {
    +            this._proxy.call('destroy', []);
    +        },
    +    };
    +
    +/**
    + * ContentStore is an object returned by the ContentHub.
    +
    +   It represents a location where the resources imported or
    +   exported from a peer during a transfer operation are to be
    +   either saved or found.
    +
    + * @class ContentStore
    + * @module ContentHub
    + * @constructor
    + * @example
    +
    +       var api = external.getUnityObject('1.0');
    +       var hub = api.ContentHub;
    +
    +       var pictureContentType = hub.ContentType.Pictures;
    +
    +       hub.defaultStoreForType(pictureContentType, function(store) {
    +         [do something with the store]
    +         });
    + */
    +    function ContentStore(objectid, content) {
    +        this._proxy = backendBridge.createRemoteObject(
    +            PLUGIN_URI, 'ContentStore', objectid);
    +
    +        this._uri = content && content.uri
    +             ? content.uri : null;
    +        this._scope = content && content.scope
    +             ? content.scope : null;
    +    };
    +    ContentStore.prototype = {
    +        // object methods
    +        serialize: function() {
    +            return {
    +                type: 'object-proxy',
    +                apiid: 'ContentHub',
    +                objecttype: 'ContentStore',
    +                objectid: this._proxy.id(),
    +            }
    +        },
    +
    +        // properties
    +
    +        //immutable
    +
    +        /**
    +         * Retrieves the uri of the associated store.
    +         *
    +         * If the callback parameter is not set, the current "local" value is retrieved.
    +         *
    +         * @method uri
    +         * @return {String} current uri
    +         * @param callback (optional) {Function(String)}
    +         */
    +        uri: function(callback) {
    +            if (callback && typeof(callback) === 'function') {
    +                this._proxy.call('uri', [], callback);
    +                return;
    +            }
    +            return this._uri;
    +        },
    +
    +        /**
    +         * Retrieves the current scope.
    +         *
    +         * If the callback parameter is not set, the current "local" value is retrieved.
    +         *
    +         * @method scope
    +         * @return {ContentScope} current scope
    +         * @param callback (optional) {Function(ContentScope)}
    +         */
    +        scope: function(callback) {
    +            if (callback && typeof(callback) === 'function') {
    +                this._proxy.call('scope', [], callback);
    +                return;
    +            }
    +            return this._scope;
    +        },
    +        /**
    +         * Sets the current scope.
    +         *
    +         * @method setScope
    +         * @param scope {ContentScope}
    +         * @param callback {Function()} called when the scope has been updated
    +         */
    +        setScope: function(scope, callback) {
    +            this._proxy.call('setScope', [scope, callback]);
    +        },
    +
    +        // extras
    +
    +        /**
    +         * Destroys the remote object. This proxy object is not valid anymore.
    +         *
    +         * @method destroy
    +         */
    +        destroy: function() {
    +            this._proxy.call('destroy', []);
    +        },
    +    };
    +
    +    function _constructorFromName(className) {
    +        var constructorPerName = {
    +            "ContentPeer": ContentPeer,
    +            "ContentStore": ContentStore,
    +            "ContentTransfer": ContentTransfer,
    +        };
    +        return className in constructorPerName
    +                ? constructorPerName[className]
    +                : null;
    +    };
    +
    +/**
    + * The ContentHub object.
    +
    + * @class ContentHub
    + * @static
    + * @constructor
    + */
    +    return {
    +        /**
    +         ContentType is an enumeration of well known content types.
    +         
    +           Values:
    +
    +             Pictures
    +
    +             Documents
    +             
    +             Music
    +
    +             Contacts
    +
    +             Videos
    +
    +             Links
    +
    +         @static
    +         @property ContentType {String}
    +         
    +         @example
    +
    +          var api = external.getUnityObject('1.0');
    +          var hub = api.ContentHub;
    +         
    +          var pictureContentType = hub.ContentType.Pictures;
    +         */
    +        ContentType: {
    +            All: "All",
    +            Unknown: "Unknown",
    +            Pictures: "Pictures",
    +            Documents: "Documents",
    +            Music: "Music",
    +            Contacts: "Contacts",
    +            Videos: "Videos",
    +            Links: "Links",
    +        },
    +
    +        /**
    +          ContentHandler is an enumeration of well known content handlers.
    +
    +           Values:
    +
    +             Source
    +
    +             Destination
    +
    +             Share
    +
    +           @static
    +           @property ContentHandler {String}
    +         */
    +        ContentHandler: {
    +            Source: "Source",
    +            Destination: "Destination",
    +            Share: "Share",
    +        },
    +
    +        /**
    +          ContentScope is an enumeration of well known scope types.
    +
    +           Values:
    +
    +             System
    +
    +             User
    +
    +             App
    +
    +           @static
    +           @property ContentScope {String}
    +         */
    +        ContentScope: {
    +            System: "System",
    +            User: "User",
    +            App: "App",
    +        },
    +
    +        ContentTransfer: {
    +
    +        /**
    +         ContentTransfer.State is an enumeration of the state of a given ongoing ContentTransfer.
    +         
    +           Values:
    +
    +            Created: Transfer created, waiting to be initiated.
    +
    +            Initiated: Transfer has been initiated.
    +
    +            InProgress: Transfer is in progress.
    +
    +            Charged: Transfer is charged with items and ready to be collected.
    +
    +            Collected: Items in the transfer have been collected.
    +
    +            Aborted: Transfer has been aborted.
    +
    +            Finalized: Transfer has been finished and cleaned up.
    +
    +            Downloaded: Download specified by downloadId has completed.
    +
    +            Downloading: Transfer is downloading item specified by downloadId.
    +          
    +         @static
    +         @property ContentTransfer.State {String}
    +         
    +         @example
    +
    +          var api = external.getUnityObject('1.0');
    +          var hub = api.ContentHub;
    +         
    +          var transferState = hub.ContentTransfer.State;
    +          var pictureContentType = hub.ContentType.Pictures;
    +
    +          hub.importContentForPeer(
    +            pictureContentType,
    +            peer,
    +            function(transfer) {
    +                hub.defaultStoreForType(pictureContentType, function(store) {
    +                    transfer.setStore(store, function() {
    +                        transfer.start(function(state) {
    +                            if (transferState.Aborted === state) {
    +                              [...]
    +                            }
    +                            [...]
    +                        });
    +                    });
    +                });
    +          });
    +
    +         */
    +            State: {
    +                // Transfer created, waiting to be initiated.
    +                Created: "Created",
    +
    +                // Transfer has been initiated.
    +                Initiated: "Initiated",
    +
    +                // Transfer is in progress.
    +                InProgress: "InProgress",
    +
    +                // Transfer is charged with items and ready to be collected.
    +                Charged: "Charged",
    +
    +                // Items in the transfer have been collected.
    +                Collected: "Collected",
    +
    +                // Transfer has been aborted.
    +                Aborted: "Aborted",
    +
    +                // Transfer has been finished and cleaned up.
    +                Finalized: "Finalized",
    +
    +                // Transfer has finished downloading.
    +                Downloaded: "Downloaded",
    +
    +                // Transfer is downloading.
    +                Downloading: "Downloading",
    +            },
    +
    +        /**
    +         ContentTransfer.Direction is an enumeration of the directions of a given ContentTransfer.
    +         
    +           Values:
    +
    +            Import
    +
    +            Export
    +
    +            Share
    +
    +         @static
    +         @property ContentTransfer.Direction {String}
    +         */
    +            Direction: {
    +                // Transfer is a request to import content
    +                Import: "Import",
    +
    +                // Transfer is a request to export content
    +                Export: "Export",
    +
    +                // Transfer is a request to share content
    +                Share: "Share",
    +            },
    +
    +        /**
    +         ContentTransfer.SelectionType is an enumeration of the directions of a given ContentTransfer.
    +         
    +           Values:
    +
    +            Single: Transfer should contain a single item
    +
    +            Multiple: Transfer can contain multiple items
    +
    +         @static
    +         @property ContentTransfer.SelectionType {String}
    +         */
    +            SelectionType: {
    +                // Transfer should contain a single item
    +                Single: "Single",
    +
    +                // Transfer can contain multiple items
    +                Multiple: "Multiple",
    +            },
    +        },
    +
    +        /**
    +         * Creates a ContentPeer object for the given source type.
    +         *
    +         * @method getPeers
    +         * @param filters {Object} A dictionary of parameters to filter the result. The filtering keys are:
    +         * - contentType: desired ContentType
    +         * - handler: desired ContentHandler
    +         *
    +         * @param callback {Function(List of ContentPeer objects)} Callback that receives the result or null
    +         */
    +        getPeers: function(filter, callback) {
    +            backendBridge.call('ContentHub.getPeers',
    +                               [filter],
    +                               callback);
    +        },
    +
    +        /**
    +         * Creates a ContentStore object for the given scope type.
    +         *
    +         * @method getStore
    +         * @param scope {ContentScope} The content scope for the store
    +         * @param callback {Function(ContentStore)} Callback that receives the result or null
    +         */
    +        getStore: function(scope, callback) {
    +            backendBridge.call('ContentHub.getStore',
    +                               [scope],
    +                               callback);
    +        },
    +
    +        /**
    +         * Launches the content peer picker ui that allows the user to select a peer.
    +         *
    +         * @method launchContentPeerPicker
    +         * @param filters {Object} A dictionary of parameters to filter the result. The filtering keys are:
    +         * - contentType: desired ContentType
    +         * - handler: desired ContentHandler
    +         * - showTitle: boolean value indicating if the title should be visible
    +         * @param onPeerSelected {Function(ContentPeer)} Called when the user has selected a peer
    +         * @param onCancelPressed {Function()} Called when the user has pressed cancel
    +         */
    +        launchContentPeerPicker: function(filters, onPeerSelected, onCancelPressed) {
    +            backendBridge.call('ContentHub.launchContentPeerPicker',
    +                               [filters, onPeerSelected, onCancelPressed]);
    +        },
    +
    +        /**
    +         * Sets a handler that is to be called when the current application is the
    +         * target of an export request.
    +         *
    +         * @method onExportRequested
    +         * @param callback {Function(ContentTransfer)} Function when one requests a resource to be exported.
    +         *                                                          The corresponding ContentTransfer is provided as a parameter.
    +         * 
    +         * @example
    +         
    +            var api = external.getUnityObject(1.0);
    +            var hub = api.ContentHub;
    +         
    +            var transferState = hub.ContentTransfer.State;
    +            
    +            function _exportRequested(transfer) {
    +              var url = window.location.href;
    +              url = url.substr(0, url.lastIndexOf('/')+1) + 'img/ubuntuone-music.png';
    +            
    +              transfer.setItems([{name: 'Ubuntu One', url: url}],
    +                function() {
    +                  transfer.setState(hub.ContentTransfer.State.Charged);
    +                });
    +              };
    +            
    +            hub.onExportRequested(_exportRequested);
    +         
    +         */
    +        onExportRequested: function(callback) {
    +            backendBridge.call('ContentHub.onExportRequested',
    +                               [callback]);
    +        },
    +
    +        /**
    +         * Sets a handler that is to be called when the current application is the
    +         * target of an share request.
    +         *
    +         * @method onShareRequested
    +         * @param callback {Function(ContentTransfer)} Function when one requests a resource to be shared.
    +         *                                                          The corresponding ContentTransfer is provided as a parameter.
    +         *
    +         * @example
    +
    +            var api = external.getUnityObject(1.0);
    +            var hub = api.ContentHub;
    +
    +            var transferState = hub.ContentTransfer.State;
    +
    +            function _shareRequested(transfer) {
    +            };
    +
    +            hub.onShareRequested(_shareRequested);
    +
    +         */
    +        onShareRequested: function(callback) {
    +            backendBridge.call('ContentHub.onShareRequested',
    +                               [callback]);
    +        },
    +
    +        /**
    +         * Sets a handler that is to be called when the current application is the
    +         * target of an import request.
    +         *
    +         * @method onImportRequested
    +         * @param callback {Function(ContentTransfer)} Function when one requests a resource to be imported.
    +         *                                                          The corresponding ContentTransfer is provided as a parameter.
    +         *
    +         * @example
    +
    +            var api = external.getUnityObject(1.0);
    +            var hub = api.ContentHub;
    +
    +            var transferState = hub.ContentTransfer.State;
    +
    +            function _importRequested(transfer) {
    +            };
    +
    +            hub.onImportRequested(_importRequested);
    +
    +         */
    +        onImportRequested: function(callback) {
    +            backendBridge.call('ContentHub.onImportRequested',
    +                               [callback]);
    +        },
    +
    +        api: {
    +
    +            /**
    +             * Creates a ContentStore object for the given ContentPeer.
    +             *
    +             * @method api.importContent
    +             * @param type {ContentType} type of the content to import
    +             * @param peer {ContentPeer} peer who's content should be imported
    +             * @param transferOptions {Object} a dictionary of transfer options. The options are the following:
    +             * - multipleFiles {Bool}: specified if a transfer should involve multiple files or not
    +             * - scope {ContentScope}: specifies the location where the transferred files should be copied to
    +             * @param onError {Function(reason:)} called when the transfer has failed
    +             * @param onSuccess {Function(Array of {ContentItem})} called when the transfer has been a success and items are available
    +             */
    +            importContent: function(type, peer, transferOptions, onSuccess, onError) {
    +                backendBridge.call('ContentHub.apiImportContent',
    +                                  [type, peer.serialize(), transferOptions, onSuccess, onError]);
    +            }
    +        },
    +
    +        // Internal
    +
    +        /**
    +         * @private
    +         *
    +         */
    +        createObjectWrapper: function(objectType, objectId, content) {
    +            var Constructor = _constructorFromName(objectType);
    +            return new Constructor(objectId, content);
    +        },
    +    };
    +};
    +
    +
    + +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/index.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/index.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/index.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/index.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,69 @@ + + + + + Content Hub JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    Welcome to Ubuntu Content Hub JavaScript API Docs

    +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/modules/ContentHub.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/modules/ContentHub.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/modules/ContentHub.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/content-hub/client/docsbuild/modules/ContentHub.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,97 @@ + + + + + ContentHub - Content Hub JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +
    +

    ContentHub

    +

    ContentHub is the entry point to resource io transfer +from/to remote applications (peers).

    +
    + +
    +
    +

    This module has the following classes:

    + +
    +
    +
    +
    +

    +Module description found: content-hub.js:568 +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/api.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/api.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/api.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/api.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,18 @@ +YUI.add("yuidoc-meta", function(Y) { + Y.YUIDoc = { meta: { + "classes": [ + "AccountService", + "OnlineAccounts" + ], + "modules": [ + "OnlineAccounts" + ], + "allModules": [ + { + "displayName": "OnlineAccounts", + "name": "OnlineAccounts", + "description": "OnlineAccounts is the entry point to online accounts service access." + } + ] +} }; +}); \ No newline at end of file Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/css/external-small.png and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/css/external-small.png differ Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/css/logo.png and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/css/logo.png differ diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/css/main.css unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/css/main.css --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/css/main.css 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/css/main.css 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,429 @@ +/* +Font sizes for all selectors other than the body are given in percentages, +with 100% equal to 13px. To calculate a font size percentage, multiply the +desired size in pixels by 7.6923076923. + +Here's a quick lookup table: + +10px - 76.923% +11px - 84.615% +12px - 92.308% +13px - 100% +14px - 107.692% +15px - 115.385% +16px - 123.077% +17px - 130.769% +18px - 138.462% +19px - 146.154% +20px - 153.846% +*/ + +html { + background: #fff; + color: #333; + overflow-y: scroll; +} + +body { + font: 13px/1.4 'Lucida Grande', 'Lucida Sans Unicode', 'DejaVu Sans', 'Bitstream Vera Sans', 'Helvetica', 'Arial', sans-serif; + margin: 0; + padding: 0; +} + +/* -- Links ----------------------------------------------------------------- */ +a { + color: #DD4814; + text-decoration: none; +} + +a:hover { text-decoration: underline; } + +/* "Jump to Table of Contents" link is shown to assistive tools, but hidden from + sight until it's focused. */ +.jump { + position: absolute; + padding: 3px 6px; + left: -99999px; + top: 0; +} + +.jump:focus { left: 40%; } + +/* -- Paragraphs ------------------------------------------------------------ */ +p { margin: 1.3em 0; } +dd p, td p { margin-bottom: 0; } +dd p:first-child, td p:first-child { margin-top: 0; } + +/* -- Headings -------------------------------------------------------------- */ +h1, h2, h3, h4, h5, h6 { + color: #DD4814 + font-family: 'Ubuntu', sans-serif; + font-weight: bold; + line-height: 1.1; + margin: 1.1em 0 0.5em; +} + +h1 { + font-size: 184.6%; + color: #30418C; + margin: 0.75em 0 0.5em; +} + +h2 { + font-size: 153.846%; + color: #E48A2B; +} + +h3 { font-size: 138.462%; } + +h4 { + border-bottom: 1px solid #DBDFEA; + color: #E48A2B; + font-size: 115.385%; + font-weight: normal; + padding-bottom: 2px; +} + +h5, h6 { font-size: 107.692%; } + +/* -- Code and examples ----------------------------------------------------- */ +code, kbd, pre, samp { + font-family: Menlo, Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; + font-size: 92.308%; + line-height: 1.35; +} + +p code, p kbd, p samp { + background: #FCFBFA; + border: 1px solid #EFEEED; + padding: 0 3px; +} + +a code, a kbd, a samp, +pre code, pre kbd, pre samp, +table code, table kbd, table samp, +.intro code, .intro kbd, .intro samp, +.toc code, .toc kbd, .toc samp { + background: none; + border: none; + padding: 0; +} + +pre.code, pre.terminal, pre.cmd { + overflow-x: auto; + *overflow-x: scroll; + padding: 0.3em 0.6em; +} + +pre.code { + background: #FCFBFA; + border: 1px solid #EFEEED; + border-left-width: 5px; +} + +pre.terminal, pre.cmd { + background: #F0EFFC; + border: 1px solid #D0CBFB; + border-left: 5px solid #D0CBFB; +} + +/* Don't reduce the font size of // elements inside
    +   blocks. */
    +pre code, pre kbd, pre samp { font-size: 100%; }
    +
    +/* Used to denote text that shouldn't be selectable, such as line numbers or
    +   shell prompts. Guess which browser this doesn't work in. */
    +.noselect {
    +    -moz-user-select: -moz-none;
    +    -khtml-user-select: none;
    +    -webkit-user-select: none;
    +    -o-user-select: none;
    +    user-select: none;
    +}
    +
    +/* -- Lists ----------------------------------------------------------------- */
    +dd { margin: 0.2em 0 0.7em 1em; }
    +dl { margin: 1em 0; }
    +dt { font-weight: bold; }
    +
    +/* -- Tables ---------------------------------------------------------------- */
    +caption, th { text-align: left; }
    +
    +table {
    +    border-collapse: collapse;
    +    width: 100%;
    +}
    +
    +td, th {
    +    border: 1px solid #fff;
    +    padding: 5px 12px;
    +    vertical-align: top;
    +}
    +
    +td { background: #E6E9F5; }
    +td dl { margin: 0; }
    +td dl dl { margin: 1em 0; }
    +td pre:first-child { margin-top: 0; }
    +
    +th {
    +    background: #D2D7E6;/*#97A0BF*/
    +    border-bottom: none;
    +    border-top: none;
    +    color: #000;/*#FFF1D5*/
    +    font-family: 'Trebuchet MS', sans-serif;
    +    font-weight: bold;
    +    line-height: 1.3;
    +    white-space: nowrap;
    +}
    +
    +
    +/* -- Layout and Content ---------------------------------------------------- */
    +#doc {
    +    margin: auto;
    +    min-width: 1024px;
    +}
    +
    +#main { width: 754px; }
    +#sidebar { width: 270px; margin: 0 15px; }
    +
    +.content { padding: 0 20px 0 25px; }
    +
    +/* -- Sidebar --------------------------------------------------------------- */
    +.sidebox {
    +    background: #F9F9FC;/*E6E9F5*/
    +    border: 1px solid #D4D8EB;
    +
    +    -moz-border-radius: 4px;
    +    -webkit-border-radius: 4px;
    +    border-radius: 4px;
    +    -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    +    -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    +    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    +    font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'Helvetica', 'Arial', sans-serif;
    +    margin: 0 0 15px 0;
    +    padding-bottom: 1px;
    +}
    +
    +.sidebox h2 {
    +    background: #E5E6F1;
    +    -moz-border-radius: 4px 4px 0 0;
    +    -webkit-border-radius: 4px 4px 0 0;
    +    border-radius: 4px 4px 0 0;
    +    color: #5E6BA4;
    +    font-weight: bold;
    +    font-size: 107.692%;
    +    margin: 0;
    +    padding: 4px 7px 5px;
    +}
    +
    +.sidebox .bd {
    +    font-size: 84.615%;
    +    padding: 0 5px 0 8px;
    +}
    +
    +.sidebox li { list-style-type: disc; color:#D4D5E3; }
    +
    +.sidebox ol, .sidebox ul {
    +    margin-left: 0;
    +    padding-left: 16px;
    +}
    +
    +.sidebox ol ol, .sidebox ol ul,
    +.sidebox ul ol, .sidebox ul ul {
    +    margin: 0;
    +    padding-left: 16px;
    +}
    +
    +/* -- Table of Contents ----------------------------------------------------- */
    +
    +/* The #toc id refers to the single global table of contents, while the .toc
    +   class refers to generic TOC lists that could be used throughout the page. */
    +
    +.toc code, .toc kbd, .toc samp { font-size: 100%; }
    +.toc li { font-weight: bold; }
    +.toc li li { font-weight: normal; }
    +
    +/* -- Intro and Example Boxes ----------------------------------------------- */
    +.intro, .example { margin-bottom: 2em; }
    +
    +.example {
    +    -moz-border-radius: 4px;
    +    -webkit-border-radius: 4px;
    +    border-radius: 4px;
    +    -moz-box-shadow: 0 0 5px #bfbfbf;
    +    -webkit-box-shadow: 0 0 5px #bfbfbf;
    +    box-shadow: 0 0 5px #bfbfbf;
    +    padding: 1em;
    +}
    +
    +.intro {
    +    background: none repeat scroll 0 0 #F0F1F8; border: 1px solid #D4D8EB; padding: 0 1em;
    +}
    +
    +/* -- Other Styles ---------------------------------------------------------- */
    +
    +/* These are probably YUI-specific, and should be moved out of Selleck's default
    +   theme. */
    +
    +.button {
    +    border: 1px solid #dadada;
    +    -moz-border-radius: 3px;
    +    -webkit-border-radius: 3px;
    +    border-radius: 3px;
    +    color: #444;
    +    display: inline-block;
    +    font-family: Helvetica, Arial, sans-serif;
    +    font-size: 92.308%;
    +    font-weight: bold;
    +    padding: 4px 13px 3px;
    +    -moz-text-shadow: 1px 1px 0 #fff;
    +    -webkit-text-shadow: 1px 1px 0 #fff;
    +    text-shadow: 1px 1px 0 #fff;
    +    white-space: nowrap;
    +
    +    background: #EFEFEF; /* old browsers */
    +    background: -moz-linear-gradient(top, #f5f5f5 0%, #efefef 50%, #e5e5e5 51%, #dfdfdf 100%); /* firefox */
    +    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(50%,#efefef), color-stop(51%,#e5e5e5), color-stop(100%,#dfdfdf)); /* webkit */
    +    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#dfdfdf',GradientType=0 ); /* ie */
    +}
    +
    +.button:hover {
    +    border-color: #466899;
    +    color: #fff;
    +    text-decoration: none;
    +    -moz-text-shadow: 1px 1px 0 #222;
    +    -webkit-text-shadow: 1px 1px 0 #222;
    +    text-shadow: 1px 1px 0 #222;
    +
    +    background: #6396D8; /* old browsers */
    +    background: -moz-linear-gradient(top, #6396D8 0%, #5A83BC 50%, #547AB7 51%, #466899 100%); /* firefox */
    +    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6396D8), color-stop(50%,#5A83BC), color-stop(51%,#547AB7), color-stop(100%,#466899)); /* webkit */
    +    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6396D8', endColorstr='#466899',GradientType=0 ); /* ie */
    +}
    +
    +.newwindow { text-align: center; }
    +
    +.header .version em {
    +    display: block;
    +    text-align: right;
    +}
    +
    +.yui3-skin-sam #classdocs .yui3-tabview-panel {
    +    background-color: transparent;
    +}
    +
    +.yui3-skin-sam #classdocs .yui3-tabview-panel {
    +    border: none;
    +}
    +
    +.yui3-skin-sam .yui3-tabview .yui3-tab,
    +.yui3-skin-sam .yui3-tabview .yui3-tab-selected,
    +.yui3-skin-sam .yui3-tabview .yui3-tab-hover {
    +    background: -moz-linear-gradient(center top , #F4F0EC 0%, #D6D2CE 100%) repeat scroll 0 0 transparent;
    +    border-bottom: 1px solid #DEDCD9;
    +    border-right: 1px solid #CDCBC8;
    +    border-left: 1px solid #CDCBC8;
    +    border-top: 1px solid #DADADA;
    +    color: #333333;
    +    text-decoration: none;
    +}
    +.yui3-skin-sam .yui3-tabview .yui3-tab-label,
    +.yui3-skin-sam .yui3-tabview .yui3-tab-selected .yui3-tab-label {
    +    border: none;
    +    background: none;
    +    font-size: 100%;
    +    color: #000;
    +}
    +
    +.yui3-skin-sam .yui3-tabview .yui3-tab-selected,
    +.yui3-skin-sam .yui3-tabview .yui3-tab-hover {
    +    background: none;
    +    background-color: #fff;
    +    border-bottom-color: #FFFFFF;
    +    border-top: 2px solid #8193C9;
    +    font-weight: bold;
    +    color: #000;
    +
    +}
    +
    +.yui3-skin-sam .yui3-tabview-list {
    +    border-color: #DFDFDF;
    +    border-width: 0 0 1px; 
    +}
    +
    +
    +a.external {
    +    background-image: url(external-small.png);
    +    background-repeat: no-repeat;
    +    background-position: 0 0;
    +    padding-left: 16px;
    +}
    +
    +#classdocs .item {
    +    border-bottom: 1px solid #466899;
    +    margin: 1em 0;
    +    padding: 1.5em;
    +}
    +
    +#classdocs .item .params p,
    +    #classdocs .item .returns p,{
    +    display: inline;
    +}
    +
    +#classdocs .item em code, #classdocs .item em.comment {
    +    color: green;
    +}
    +
    +#classdocs .item em.comment a {
    +    color: green;
    +    text-decoration: underline;
    +}
    +
    +#classdocs .foundat {
    +    font-size: 11px;
    +    font-style: normal;
    +}
    +
    +.attrs .emits {
    +    margin-left: 2em;
    +    padding: .5em;
    +    border-left: 1px dashed #ccc;
    +}
    +
    +abbr {
    +    border-bottom: 1px dashed #ccc;
    +    font-size: 80%;
    +    cursor: help;
    +}
    +
    +.prettyprint li.L0, 
    +.prettyprint li.L1, 
    +.prettyprint li.L2, 
    +.prettyprint li.L3, 
    +.prettyprint li.L5, 
    +.prettyprint li.L6, 
    +.prettyprint li.L7, 
    +.prettyprint li.L8 {
    +    list-style: decimal;
    +}
    +
    +ul li p {
    +    margin-top: 0;
    +}
    +
    +.method .name {
    +    font-size: 110%;
    +}
    +
    +#hd {
    +    background: -moz-linear-gradient(center top , #DCDBD9 0%, #F6F5F3 100%) repeat scroll 0 0 transparent;
    +    border-bottom: 1px solid #DFDFDF;
    +    padding: 0 15px 1px 20px;
    +    margin-bottom: 15px;
    +}
    +
    +#hd img {
    +    margin-right: 10px;
    +    vertical-align: middle;
    +}
    +
    Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/favicon.ico and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/favicon.ico differ
    Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/img/spinner.gif and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/img/spinner.gif differ
    diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/index.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/index.html
    --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/index.html	1970-01-01 00:00:00.000000000 +0000
    +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/index.html	2015-04-09 13:29:10.000000000 +0000
    @@ -0,0 +1,10 @@
    +
    +
    +    
    +        Redirector
    +        
    +    
    +    
    +        Click here to redirect
    +    
    +
    diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/apidocs.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/apidocs.js
    --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/apidocs.js	1970-01-01 00:00:00.000000000 +0000
    +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/apidocs.js	2015-04-09 13:29:10.000000000 +0000
    @@ -0,0 +1,370 @@
    +YUI().use(
    +    'yuidoc-meta',
    +    'api-list', 'history-hash', 'node-screen', 'node-style', 'pjax',
    +function (Y) {
    +
    +var win          = Y.config.win,
    +    localStorage = win.localStorage,
    +
    +    bdNode = Y.one('#bd'),
    +
    +    pjax,
    +    defaultRoute,
    +
    +    classTabView,
    +    selectedTab;
    +
    +// Kill pjax functionality unless serving over HTTP.
    +if (!Y.getLocation().protocol.match(/^https?\:/)) {
    +    Y.Router.html5 = false;
    +}
    +
    +// Create the default route with middleware which enables syntax highlighting
    +// on the loaded content.
    +defaultRoute = Y.Pjax.defaultRoute.concat(function (req, res, next) {
    +    prettyPrint();
    +    bdNode.removeClass('loading');
    +
    +    next();
    +});
    +
    +pjax = new Y.Pjax({
    +    container      : '#docs-main',
    +    contentSelector: '#docs-main > .content',
    +    linkSelector   : '#bd a',
    +    titleSelector  : '#xhr-title',
    +
    +    navigateOnHash: true,
    +    root          : '/',
    +    routes        : [
    +        // -- / ----------------------------------------------------------------
    +        {
    +            path     : '/(index.html)?',
    +            callbacks: defaultRoute
    +        },
    +
    +        // -- /classes/* -------------------------------------------------------
    +        {
    +            path     : '/classes/:class.html*',
    +            callbacks: [defaultRoute, 'handleClasses']
    +        },
    +
    +        // -- /files/* ---------------------------------------------------------
    +        {
    +            path     : '/files/*file',
    +            callbacks: [defaultRoute, 'handleFiles']
    +        },
    +
    +        // -- /modules/* -------------------------------------------------------
    +        {
    +            path     : '/modules/:module.html*',
    +            callbacks: defaultRoute
    +        }
    +    ]
    +});
    +
    +// -- Utility Functions --------------------------------------------------------
    +
    +pjax.checkVisibility = function (tab) {
    +    tab || (tab = selectedTab);
    +
    +    if (!tab) { return; }
    +
    +    var panelNode = tab.get('panelNode'),
    +        visibleItems;
    +
    +    // If no items are visible in the tab panel due to the current visibility
    +    // settings, display a message to that effect.
    +    visibleItems = panelNode.all('.item,.index-item').some(function (itemNode) {
    +        if (itemNode.getComputedStyle('display') !== 'none') {
    +            return true;
    +        }
    +    });
    +
    +    panelNode.all('.no-visible-items').remove();
    +
    +    if (!visibleItems) {
    +        if (Y.one('#index .index-item')) {
    +            panelNode.append(
    +                '
    ' + + '

    ' + + 'Some items are not shown due to the current visibility ' + + 'settings. Use the checkboxes at the upper right of this ' + + 'page to change the visibility settings.' + + '

    ' + + '
    ' + ); + } else { + panelNode.append( + '
    ' + + '

    ' + + 'This class doesn\'t provide any methods, properties, ' + + 'attributes, or events.' + + '

    ' + + '
    ' + ); + } + } + + // Hide index sections without any visible items. + Y.all('.index-section').each(function (section) { + var items = 0, + visibleItems = 0; + + section.all('.index-item').each(function (itemNode) { + items += 1; + + if (itemNode.getComputedStyle('display') !== 'none') { + visibleItems += 1; + } + }); + + section.toggleClass('hidden', !visibleItems); + section.toggleClass('no-columns', visibleItems < 4); + }); +}; + +pjax.initClassTabView = function () { + if (!Y.all('#classdocs .api-class-tab').size()) { + return; + } + + if (classTabView) { + classTabView.destroy(); + selectedTab = null; + } + + classTabView = new Y.TabView({ + srcNode: '#classdocs', + + on: { + selectionChange: pjax.onTabSelectionChange + } + }); + + pjax.updateTabState(); + classTabView.render(); +}; + +pjax.initLineNumbers = function () { + var hash = win.location.hash.substring(1), + container = pjax.get('container'), + hasLines, node; + + // Add ids for each line number in the file source view. + container.all('.linenums>li').each(function (lineNode, index) { + lineNode.set('id', 'l' + (index + 1)); + lineNode.addClass('file-line'); + hasLines = true; + }); + + // Scroll to the desired line. + if (hasLines && /^l\d+$/.test(hash)) { + if ((node = container.getById(hash))) { + win.scroll(0, node.getY()); + } + } +}; + +pjax.initRoot = function () { + var terminators = /^(?:classes|files|modules)$/, + parts = pjax._getPathRoot().split('/'), + root = [], + i, len, part; + + for (i = 0, len = parts.length; i < len; i += 1) { + part = parts[i]; + + if (part.match(terminators)) { + // Makes sure the path will end with a "/". + root.push(''); + break; + } + + root.push(part); + } + + pjax.set('root', root.join('/')); +}; + +pjax.updateTabState = function (src) { + var hash = win.location.hash.substring(1), + defaultTab, node, tab, tabPanel; + + function scrollToNode() { + if (node.hasClass('protected')) { + Y.one('#api-show-protected').set('checked', true); + pjax.updateVisibility(); + } + + if (node.hasClass('private')) { + Y.one('#api-show-private').set('checked', true); + pjax.updateVisibility(); + } + + setTimeout(function () { + // For some reason, unless we re-get the node instance here, + // getY() always returns 0. + var node = Y.one('#classdocs').getById(hash); + win.scrollTo(0, node.getY() - 70); + }, 1); + } + + if (!classTabView) { + return; + } + + if (src === 'hashchange' && !hash) { + defaultTab = 'index'; + } else { + if (localStorage) { + defaultTab = localStorage.getItem('tab_' + pjax.getPath()) || + 'index'; + } else { + defaultTab = 'index'; + } + } + + if (hash && (node = Y.one('#classdocs').getById(hash))) { + if ((tabPanel = node.ancestor('.api-class-tabpanel', true))) { + if ((tab = Y.one('#classdocs .api-class-tab.' + tabPanel.get('id')))) { + if (classTabView.get('rendered')) { + Y.Widget.getByNode(tab).set('selected', 1); + } else { + tab.addClass('yui3-tab-selected'); + } + } + } + + // Scroll to the desired element if this is a hash URL. + if (node) { + if (classTabView.get('rendered')) { + scrollToNode(); + } else { + classTabView.once('renderedChange', scrollToNode); + } + } + } else { + tab = Y.one('#classdocs .api-class-tab.' + defaultTab); + + // When the `defaultTab` node isn't found, `localStorage` is stale. + if (!tab && defaultTab !== 'index') { + tab = Y.one('#classdocs .api-class-tab.index'); + } + + if (classTabView.get('rendered')) { + Y.Widget.getByNode(tab).set('selected', 1); + } else { + tab.addClass('yui3-tab-selected'); + } + } +}; + +pjax.updateVisibility = function () { + var container = pjax.get('container'); + + container.toggleClass('hide-inherited', + !Y.one('#api-show-inherited').get('checked')); + + container.toggleClass('show-deprecated', + Y.one('#api-show-deprecated').get('checked')); + + container.toggleClass('show-protected', + Y.one('#api-show-protected').get('checked')); + + container.toggleClass('show-private', + Y.one('#api-show-private').get('checked')); + + pjax.checkVisibility(); +}; + +// -- Route Handlers ----------------------------------------------------------- + +pjax.handleClasses = function (req, res, next) { + var status = res.ioResponse.status; + + // Handles success and local filesystem XHRs. + if (res.ioResponse.readyState === 4 && (!status || (status >= 200 && status < 300))) { + pjax.initClassTabView(); + } + + next(); +}; + +pjax.handleFiles = function (req, res, next) { + var status = res.ioResponse.status; + + // Handles success and local filesystem XHRs. + if (res.ioResponse.readyState === 4 && (!status || (status >= 200 && status < 300))) { + pjax.initLineNumbers(); + } + + next(); +}; + +// -- Event Handlers ----------------------------------------------------------- + +pjax.onNavigate = function (e) { + var hash = e.hash, + originTarget = e.originEvent && e.originEvent.target, + tab; + + if (hash) { + tab = originTarget && originTarget.ancestor('.yui3-tab', true); + + if (hash === win.location.hash) { + pjax.updateTabState('hashchange'); + } else if (!tab) { + win.location.hash = hash; + } + + e.preventDefault(); + return; + } + + // Only scroll to the top of the page when the URL doesn't have a hash. + this.set('scrollToTop', !e.url.match(/#.+$/)); + + bdNode.addClass('loading'); +}; + +pjax.onOptionClick = function (e) { + pjax.updateVisibility(); +}; + +pjax.onTabSelectionChange = function (e) { + var tab = e.newVal, + tabId = tab.get('contentBox').getAttribute('href').substring(1); + + selectedTab = tab; + + // If switching from a previous tab (i.e., this is not the default tab), + // replace the history entry with a hash URL that will cause this tab to + // be selected if the user navigates away and then returns using the back + // or forward buttons. + if (e.prevVal && localStorage) { + localStorage.setItem('tab_' + pjax.getPath(), tabId); + } + + pjax.checkVisibility(tab); +}; + +// -- Init --------------------------------------------------------------------- + +pjax.on('navigate', pjax.onNavigate); + +pjax.initRoot(); +pjax.upgrade(); +pjax.initClassTabView(); +pjax.initLineNumbers(); +pjax.updateVisibility(); + +Y.APIList.rootPath = pjax.get('root'); + +Y.one('#api-options').delegate('click', pjax.onOptionClick, 'input'); + +Y.on('hashchange', function (e) { + pjax.updateTabState('hashchange'); +}, win); + +}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/api-filter.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/api-filter.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/api-filter.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/api-filter.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,52 @@ +YUI.add('api-filter', function (Y) { + +Y.APIFilter = Y.Base.create('apiFilter', Y.Base, [Y.AutoCompleteBase], { + // -- Initializer ---------------------------------------------------------- + initializer: function () { + this._bindUIACBase(); + this._syncUIACBase(); + }, + getDisplayName: function(name) { + + Y.each(Y.YUIDoc.meta.allModules, function(i) { + if (i.name === name && i.displayName) { + name = i.displayName; + } + }); + + return name; + } + +}, { + // -- Attributes ----------------------------------------------------------- + ATTRS: { + resultHighlighter: { + value: 'phraseMatch' + }, + + // May be set to "classes" or "modules". + queryType: { + value: 'classes' + }, + + source: { + valueFn: function() { + var self = this; + return function(q) { + var data = Y.YUIDoc.meta[self.get('queryType')], + out = []; + Y.each(data, function(v) { + if (v.toLowerCase().indexOf(q.toLowerCase()) > -1) { + out.push(v); + } + }); + return out; + }; + } + } + } +}); + +}, '3.4.0', {requires: [ + 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources' +]}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/api-list.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/api-list.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/api-list.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/api-list.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,251 @@ +YUI.add('api-list', function (Y) { + +var Lang = Y.Lang, + YArray = Y.Array, + + APIList = Y.namespace('APIList'), + + classesNode = Y.one('#api-classes'), + inputNode = Y.one('#api-filter'), + modulesNode = Y.one('#api-modules'), + tabviewNode = Y.one('#api-tabview'), + + tabs = APIList.tabs = {}, + + filter = APIList.filter = new Y.APIFilter({ + inputNode : inputNode, + maxResults: 1000, + + on: { + results: onFilterResults + } + }), + + search = APIList.search = new Y.APISearch({ + inputNode : inputNode, + maxResults: 100, + + on: { + clear : onSearchClear, + results: onSearchResults + } + }), + + tabview = APIList.tabview = new Y.TabView({ + srcNode : tabviewNode, + panelNode: '#api-tabview-panel', + render : true, + + on: { + selectionChange: onTabSelectionChange + } + }), + + focusManager = APIList.focusManager = tabviewNode.plug(Y.Plugin.NodeFocusManager, { + circular : true, + descendants: '#api-filter, .yui3-tab-panel-selected .api-list-item a, .yui3-tab-panel-selected .result a', + keys : {next: 'down:40', previous: 'down:38'} + }).focusManager, + + LIST_ITEM_TEMPLATE = + '
  • ' + + '{displayName}' + + '
  • '; + +// -- Init --------------------------------------------------------------------- + +// Duckpunch FocusManager's key event handling to prevent it from handling key +// events when a modifier is pressed. +Y.before(function (e, activeDescendant) { + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { + return new Y.Do.Prevent(); + } +}, focusManager, '_focusPrevious', focusManager); + +Y.before(function (e, activeDescendant) { + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { + return new Y.Do.Prevent(); + } +}, focusManager, '_focusNext', focusManager); + +// Create a mapping of tabs in the tabview so we can refer to them easily later. +tabview.each(function (tab, index) { + var name = tab.get('label').toLowerCase(); + + tabs[name] = { + index: index, + name : name, + tab : tab + }; +}); + +// Switch tabs on Ctrl/Cmd-Left/Right arrows. +tabviewNode.on('key', onTabSwitchKey, 'down:37,39'); + +// Focus the filter input when the `/` key is pressed. +Y.one(Y.config.doc).on('key', onSearchKey, 'down:83'); + +// Keep the Focus Manager up to date. +inputNode.on('focus', function () { + focusManager.set('activeDescendant', inputNode); +}); + +// Update all tabview links to resolved URLs. +tabview.get('panelNode').all('a').each(function (link) { + link.setAttribute('href', link.get('href')); +}); + +// -- Private Functions -------------------------------------------------------- +function getFilterResultNode() { + return filter.get('queryType') === 'classes' ? classesNode : modulesNode; +} + +// -- Event Handlers ----------------------------------------------------------- +function onFilterResults(e) { + var frag = Y.one(Y.config.doc.createDocumentFragment()), + resultNode = getFilterResultNode(), + typePlural = filter.get('queryType'), + typeSingular = typePlural === 'classes' ? 'class' : 'module'; + + if (e.results.length) { + YArray.each(e.results, function (result) { + frag.append(Lang.sub(LIST_ITEM_TEMPLATE, { + rootPath : APIList.rootPath, + displayName : filter.getDisplayName(result.highlighted), + name : result.text, + typePlural : typePlural, + typeSingular: typeSingular + })); + }); + } else { + frag.append( + '
  • ' + + 'No ' + typePlural + ' found.' + + '
  • ' + ); + } + + resultNode.empty(true); + resultNode.append(frag); + + focusManager.refresh(); +} + +function onSearchClear(e) { + + focusManager.refresh(); +} + +function onSearchKey(e) { + var target = e.target; + + if (target.test('input,select,textarea') + || target.get('isContentEditable')) { + return; + } + + e.preventDefault(); + + inputNode.focus(); + focusManager.refresh(); +} + +function onSearchResults(e) { + var frag = Y.one(Y.config.doc.createDocumentFragment()); + + if (e.results.length) { + YArray.each(e.results, function (result) { + frag.append(result.display); + }); + } else { + frag.append( + '
  • ' + + 'No results found. Maybe you\'ll have better luck with a ' + + 'different query?' + + '
  • ' + ); + } + + + focusManager.refresh(); +} + +function onTabSelectionChange(e) { + var tab = e.newVal, + name = tab.get('label').toLowerCase(); + + tabs.selected = { + index: tab.get('index'), + name : name, + tab : tab + }; + + switch (name) { + case 'classes': // fallthru + case 'modules': + filter.setAttrs({ + minQueryLength: 0, + queryType : name + }); + + search.set('minQueryLength', -1); + + // Only send a request if this isn't the initially-selected tab. + if (e.prevVal) { + filter.sendRequest(filter.get('value')); + } + break; + + case 'everything': + filter.set('minQueryLength', -1); + search.set('minQueryLength', 1); + + if (search.get('value')) { + search.sendRequest(search.get('value')); + } else { + inputNode.focus(); + } + break; + + default: + // WTF? We shouldn't be here! + filter.set('minQueryLength', -1); + search.set('minQueryLength', -1); + } + + if (focusManager) { + setTimeout(function () { + focusManager.refresh(); + }, 1); + } +} + +function onTabSwitchKey(e) { + var currentTabIndex = tabs.selected.index; + + if (!(e.ctrlKey || e.metaKey)) { + return; + } + + e.preventDefault(); + + switch (e.keyCode) { + case 37: // left arrow + if (currentTabIndex > 0) { + tabview.selectChild(currentTabIndex - 1); + inputNode.focus(); + } + break; + + case 39: // right arrow + if (currentTabIndex < (Y.Object.size(tabs) - 2)) { + tabview.selectChild(currentTabIndex + 1); + inputNode.focus(); + } + break; + } +} + +}, '3.4.0', {requires: [ + 'api-filter', 'api-search', 'event-key', 'node-focusmanager', 'tabview' +]}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/api-search.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/api-search.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/api-search.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/api-search.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,98 @@ +YUI.add('api-search', function (Y) { + +var Lang = Y.Lang, + Node = Y.Node, + YArray = Y.Array; + +Y.APISearch = Y.Base.create('apiSearch', Y.Base, [Y.AutoCompleteBase], { + // -- Public Properties ---------------------------------------------------- + RESULT_TEMPLATE: + '
  • ' + + '' + + '

    {name}

    ' + + '{resultType}' + + '
    {description}
    ' + + '{class}' + + '
    ' + + '
  • ', + + // -- Initializer ---------------------------------------------------------- + initializer: function () { + this._bindUIACBase(); + this._syncUIACBase(); + }, + + // -- Protected Methods ---------------------------------------------------- + _apiResultFilter: function (query, results) { + // Filter components out of the results. + return YArray.filter(results, function (result) { + return result.raw.resultType === 'component' ? false : result; + }); + }, + + _apiResultFormatter: function (query, results) { + return YArray.map(results, function (result) { + var raw = Y.merge(result.raw), // create a copy + desc = raw.description || ''; + + // Convert description to text and truncate it if necessary. + desc = Node.create('
    ' + desc + '
    ').get('text'); + + if (desc.length > 65) { + desc = Y.Escape.html(desc.substr(0, 65)) + ' …'; + } else { + desc = Y.Escape.html(desc); + } + + raw['class'] || (raw['class'] = ''); + raw.description = desc; + + // Use the highlighted result name. + raw.name = result.highlighted; + + return Lang.sub(this.RESULT_TEMPLATE, raw); + }, this); + }, + + _apiTextLocator: function (result) { + return result.displayName || result.name; + } +}, { + // -- Attributes ----------------------------------------------------------- + ATTRS: { + resultFormatter: { + valueFn: function () { + return this._apiResultFormatter; + } + }, + + resultFilters: { + valueFn: function () { + return this._apiResultFilter; + } + }, + + resultHighlighter: { + value: 'phraseMatch' + }, + + resultListLocator: { + value: 'data.results' + }, + + resultTextLocator: { + valueFn: function () { + return this._apiTextLocator; + } + }, + + source: { + value: '/api/v1/search?q={query}&count={maxResults}' + } + } +}); + +}, '3.4.0', {requires: [ + 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources', + 'escape' +]}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/tabs.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/tabs.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/tabs.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/tabs.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,67 @@ +/* + * Copyright 2011 Yahoo! Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Yahoo! Inc. nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + + +YUI({ + insertBefore: 'site_styles' +}).use('tabview', function(Y) { + var classdocs = Y.one('#classdocs'), + tabviewIndexTable = {}; + if (classdocs) { + if (classdocs.all('li').size()) { + var tabview = new Y.TabView({ srcNode: classdocs }); + tabview.render(); + classdocs.all('li a').each(function (item, index) { + var hash = item.get(['hash']); + type = hash.substring(1); + if (!tabviewIndexTable[type]) { + tabviewIndexTable[type] = index; + } + }) + Y.all('.sidebox.on-page').each(function (item, index) { + var children = item.all('li a'); + children.each(function (cItem, cIndex) { + return function () { + var handleClick = function (e) { + var node = Y.one(this), + hash = node.get(['hash']), + hashValue = hash.substring(1).split('_'), + type = hashValue.shift(), + ogKey = hashValue.join('_'); // in case the hash had other underscores + if (tabviewIndexTable[type] > -1 && tabviewIndexTable[type] !== currentTab) { + currentTab = tabviewIndexTable[type]; + tabview.selectChild(tabviewIndexTable[type]); + } + } + Y.on('click', handleClick, cItem) + }() + }) + }); + } + } +}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/yui-prettify.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/yui-prettify.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/yui-prettify.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/js/yui-prettify.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,44 @@ +/* + * Copyright 2011 Yahoo! Inc. + * All rights reserved. + *- + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Yahoo! Inc. nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + *- + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +YUI().use('node', function(Y) { + var code = Y.all('.prettyprint.linenums'); + if (code.size()) { + code.each(function(c) { + var lis = c.all('ol li'), + l = 1; + lis.each(function(n) { + n.prepend(''); + l++; + }); + }); + var h = location.hash; + location.hash = ''; + h = h.replace('LINE_', 'LINENUM_'); + location.hash = h; + } +}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/CHANGES.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/CHANGES.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/CHANGES.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/CHANGES.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,130 @@ + + + + Change Log + + + README + +

    Known Issues

    +
      +
    • Perl formatting is really crappy. Partly because the author is lazy and + partly because Perl is + hard to parse. +
    • On some browsers, <code> elements with newlines in the text + which use CSS to specify white-space:pre will have the newlines + improperly stripped if the element is not attached to the document at the time + the stripping is done. Also, on IE 6, all newlines will be stripped from + <code> elements because of the way IE6 produces + innerHTML. Workaround: use <pre> for code with + newlines. +
    + +

    Change Log

    +

    29 March 2007

    +
      +
    • Added tests for PHP support + to address + issue 3. +
    • Fixed + bug: prettyPrintOne was not halting. This was not + reachable through the normal entry point. +
    • Fixed + bug: recursing into a script block or PHP tag that was not properly + closed would not silently drop the content. + (test) +
    • Fixed + bug: was eating tabs + (test) +
    • Fixed entity handling so that the caveat +
      +

      Caveats: please properly escape less-thans. x&lt;y + instead of x<y, and use " instead of + &quot; for string delimiters.

      +
      + is no longer applicable. +
    • Added noisefree's C# + patch +
    • Added a distribution that has comments and + whitespace removed to reduce download size from 45.5kB to 12.8kB. +
    +

    4 Jul 2008

    +
      +
    • Added language specific formatters that are triggered by the presence + of a lang-<language-file-extension>
    • +
    • Fixed bug: python handling of '''string''' +
    • Fixed bug: / in regex [charsets] should not end regex +
    +

    5 Jul 2008

    +
      +
    • Defined language extensions for Lisp and Lua +
    +

    14 Jul 2008

    +
      +
    • Language handlers for F#, OCAML, SQL +
    • Support for nocode spans to allow embedding of line + numbers and code annotations which should not be styled or otherwise + affect the tokenization of prettified code. + See the issue 22 + testcase. +
    +

    6 Jan 2009

    +
      +
    • Language handlers for Visual Basic, Haskell, CSS, and WikiText
    • +
    • Added .mxml extension to the markup style handler for + Flex MXML files. See + issue 37. +
    • Added .m extension to the C style handler so that Objective + C source files properly highlight. See + issue 58. +
    • Changed HTML lexer to use the same embedded source mechanism as the + wiki language handler, and changed to use the registered + CSS handler for STYLE element content. +
    +

    21 May 2009

    +
      +
    • Rewrote to improve performance on large files. + See benchmarks.
    • +
    • Fixed bugs with highlighting of Haskell line comments, Lisp + number literals, Lua strings, C preprocessor directives, + newlines in Wiki code on Windows, and newlines in IE6.
    • +
    +

    14 August 2009

    +
      +
    • Fixed prettifying of <code> blocks with embedded newlines. +
    +

    3 October 2009

    +
      +
    • Fixed prettifying of XML/HTML tags that contain uppercase letters. +
    +

    19 July 2010

    +
      +
    • Added support for line numbers. Bug + 22
    • +
    • Added YAML support. Bug + 123
    • +
    • Added VHDL support courtesy Le Poussin.
    • +
    • IE performance improvements. Bug + 102 courtesy jacobly.
    • +
    • A variety of markup formatting fixes courtesy smain and thezbyg.
    • +
    • Fixed copy and paste in IE[678]. +
    • Changed output to use &#160; instead of + &nbsp; so that the output works when embedded in XML. + Bug + 108.
    • +
    + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/COPYING unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/COPYING --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/COPYING 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/COPYING 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/prettify-min.css unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/prettify-min.css --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/prettify-min.css 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/prettify-min.css 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1 @@ +.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} \ No newline at end of file diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/prettify-min.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/prettify-min.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/prettify-min.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/prettify-min.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,28 @@ +/* + * Copyright 2011 Yahoo! Inc. + * All rights reserved. + *- + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Yahoo! Inc. nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + *- + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +window.PR_SHOULD_USE_CONTINUATION=true;var prettyPrintOne;var prettyPrint;(function(){var O=window;var j=["break,continue,do,else,for,if,return,while"];var v=[j,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var q=[v,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var m=[q,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var y=[q,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var T=[y,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"];var s="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes";var x=[q,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var t="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var J=[j,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var g=[j,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var I=[j,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var B=[m,T,x,t+J,g,I];var f=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/;var D="str";var A="kwd";var k="com";var Q="typ";var H="lit";var M="pun";var G="pln";var n="tag";var F="dec";var K="src";var R="atn";var o="atv";var P="nocode";var N="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function l(ab){var af=0;var U=false;var ae=false;for(var X=0,W=ab.length;X122)){if(!(am<65||ai>90)){ah.push([Math.max(65,ai)|32,Math.min(am,90)|32])}if(!(am<97||ai>122)){ah.push([Math.max(97,ai)&~32,Math.min(am,122)&~32])}}}}ah.sort(function(aw,av){return(aw[0]-av[0])||(av[1]-aw[1])});var ak=[];var aq=[];for(var at=0;atau[0]){if(au[1]+1>au[0]){ao.push("-")}ao.push(V(au[1]))}}ao.push("]");return ao.join("")}function Y(an){var al=an.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var aj=al.length;var ap=[];for(var am=0,ao=0;am=2&&ak==="["){al[am]=Z(ai)}else{if(ak!=="\\"){al[am]=ai.replace(/[a-zA-Z]/g,function(aq){var ar=aq.charCodeAt(0);return"["+String.fromCharCode(ar&~32,ar|32)+"]"})}}}}return al.join("")}var ac=[];for(var X=0,W=ab.length;X=0;){U[ae.charAt(ag)]=aa}}var ah=aa[1];var ac=""+ah;if(!ai.hasOwnProperty(ac)){aj.push(ah);ai[ac]=null}}aj.push(/[\0-\uffff]/);X=l(aj)})();var Z=V.length;var Y=function(aj){var ab=aj.sourceCode,aa=aj.basePos;var af=[aa,G];var ah=0;var ap=ab.match(X)||[];var al={};for(var ag=0,at=ap.length;ag=5&&"lang-"===ar.substring(0,5);if(ao&&!(ak&&typeof ak[1]==="string")){ao=false;ar=K}if(!ao){al[ai]=ar}}var ad=ah;ah+=ai.length;if(!ao){af.push(aa+ad,ar)}else{var an=ak[1];var am=ai.indexOf(an);var ae=am+an.length;if(ak[2]){ae=ai.length-ak[2].length;am=ae-an.length}var au=ar.substring(5);C(aa+ad,ai.substring(0,am),Y,af);C(aa+ad+am,an,r(au,an),af);C(aa+ad+ae,ai.substring(ae),Y,af)}}aj.decorations=af};return Y}function i(V){var Y=[],U=[];if(V.tripleQuotedStrings){Y.push([D,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(V.multiLineStrings){Y.push([D,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{Y.push([D,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(V.verbatimStrings){U.push([D,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var ab=V.hashComments;if(ab){if(V.cStyleComments){if(ab>1){Y.push([k,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{Y.push([k,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}U.push([D,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])}else{Y.push([k,/^#[^\r\n]*/,null,"#"])}}if(V.cStyleComments){U.push([k,/^\/\/[^\r\n]*/,null]);U.push([k,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(V.regexLiterals){var aa=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");U.push(["lang-regex",new RegExp("^"+N+"("+aa+")")])}var X=V.types;if(X){U.push([Q,X])}var W=(""+V.keywords).replace(/^ | $/g,"");if(W.length){U.push([A,new RegExp("^(?:"+W.replace(/[\s,]+/g,"|")+")\\b"),null])}Y.push([G,/^\s+/,null," \r\n\t\xA0"]);var Z=/^.[^\s\w\.$@\'\"\`\/\\]*/;U.push([H,/^@[a-z_$][a-z_$@0-9]*/i,null],[Q,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[G,/^[a-z_$][a-z_$@0-9]*/i,null],[H,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[G,/^\\[\s\S]?/,null],[M,Z,null]);return h(Y,U)}var L=i({keywords:B,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function S(W,ah,aa){var V=/(?:^|\s)nocode(?:\s|$)/;var ac=/\r\n?|\n/;var ad=W.ownerDocument;var ag=ad.createElement("li");while(W.firstChild){ag.appendChild(W.firstChild)}var X=[ag];function af(am){switch(am.nodeType){case 1:if(V.test(am.className)){break}if("br"===am.nodeName){ae(am);if(am.parentNode){am.parentNode.removeChild(am)}}else{for(var ao=am.firstChild;ao;ao=ao.nextSibling){af(ao)}}break;case 3:case 4:if(aa){var an=am.nodeValue;var ak=an.match(ac);if(ak){var aj=an.substring(0,ak.index);am.nodeValue=aj;var ai=an.substring(ak.index+ak[0].length);if(ai){var al=am.parentNode;al.insertBefore(ad.createTextNode(ai),am.nextSibling)}ae(am);if(!aj){am.parentNode.removeChild(am)}}}break}}function ae(al){while(!al.nextSibling){al=al.parentNode;if(!al){return}}function aj(am,at){var ar=at?am.cloneNode(false):am;var ap=am.parentNode;if(ap){var aq=aj(ap,1);var ao=am.nextSibling;aq.appendChild(ar);for(var an=ao;an;an=ao){ao=an.nextSibling;aq.appendChild(an)}}return ar}var ai=aj(al.nextSibling,0);for(var ak;(ak=ai.parentNode)&&ak.nodeType===1;){ai=ak}X.push(ai)}for(var Z=0;Z=U){aj+=2}if(Y>=ar){ac+=2}}}finally{if(au){au.style.display=ak}}}var u={};function d(W,X){for(var U=X.length;--U>=0;){var V=X[U];if(!u.hasOwnProperty(V)){u[V]=W}else{if(O.console){console.warn("cannot override language handler %s",V)}}}}function r(V,U){if(!(V&&u.hasOwnProperty(V))){V=/^\s*]*(?:>|$)/],[k,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[M,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);d(h([[G,/^[\s]+/,null," \t\r\n"],[o,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[n,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[R,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[M,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);d(h([],[[o,/^[\s\S]+/]]),["uq.val"]);d(i({keywords:m,hashComments:true,cStyleComments:true,types:f}),["c","cc","cpp","cxx","cyc","m"]);d(i({keywords:"null,true,false"}),["json"]);d(i({keywords:T,hashComments:true,cStyleComments:true,verbatimStrings:true,types:f}),["cs"]);d(i({keywords:y,cStyleComments:true}),["java"]);d(i({keywords:I,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);d(i({keywords:J,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);d(i({keywords:t,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);d(i({keywords:g,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);d(i({keywords:x,cStyleComments:true,regexLiterals:true}),["js"]);d(i({keywords:s,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);d(h([],[[D,/^[\s\S]+/]]),["regex"]);function e(X){var W=X.langExtension;try{var U=b(X.sourceNode,X.pre);var V=U.sourceCode;X.sourceCode=V;X.spans=U.spans;X.basePos=0;r(W,V)(X);E(X)}catch(Y){if(O.console){console.log(Y&&Y.stack?Y.stack:Y)}}}function z(Y,X,W){var U=document.createElement("pre");U.innerHTML=Y;if(W){S(U,W,true)}var V={langExtension:X,numberLines:W,sourceNode:U,pre:1};e(V);return U.innerHTML}function c(aj){function ab(al){return document.getElementsByTagName(al)}var ah=[ab("pre"),ab("code"),ab("xmp")];var V=[];for(var ae=0;ae]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/README.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/README.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/README.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/assets/vendor/prettify/README.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,203 @@ + + + + + Javascript code prettifier + + + + + + + + + + Languages : CH +

    Javascript code prettifier

    + +

    Setup

    +
      +
    1. Download a distribution +
    2. Include the script and stylesheets in your document + (you will need to make sure the css and js file are on your server, and + adjust the paths in the script and link tag) +
      +<link href="prettify.css" type="text/css" rel="stylesheet" />
      +<script type="text/javascript" src="prettify.js"></script>
      +
    3. Add onload="prettyPrint()" to your + document's body tag. +
    4. Modify the stylesheet to get the coloring you prefer
    5. +
    + +

    Usage

    +

    Put code snippets in + <pre class="prettyprint">...</pre> + or <code class="prettyprint">...</code> + and it will automatically be pretty printed. + + + + +
    The original + Prettier +
    class Voila {
    +public:
    +  // Voila
    +  static const string VOILA = "Voila";
    +
    +  // will not interfere with embedded tags.
    +}
    + +
    class Voila {
    +public:
    +  // Voila
    +  static const string VOILA = "Voila";
    +
    +  // will not interfere with embedded tags.
    +}
    +
    + +

    FAQ

    +

    Which languages does it work for?

    +

    The comments in prettify.js are authoritative but the lexer + should work on a number of languages including C and friends, + Java, Python, Bash, SQL, HTML, XML, CSS, Javascript, and Makefiles. + It works passably on Ruby, PHP, VB, and Awk and a decent subset of Perl + and Ruby, but, because of commenting conventions, doesn't work on + Smalltalk, or CAML-like languages.

    + +

    LISPy languages are supported via an extension: + lang-lisp.js.

    +

    And similarly for + CSS, + Haskell, + Lua, + OCAML, SML, F#, + Visual Basic, + SQL, + Protocol Buffers, and + WikiText.. + +

    If you'd like to add an extension for your favorite language, please + look at src/lang-lisp.js and file an + issue including your language extension, and a testcase.

    + +

    How do I specify which language my code is in?

    +

    You don't need to specify the language since prettyprint() + will guess. You can specify a language by specifying the language extension + along with the prettyprint class like so:

    +
    <pre class="prettyprint lang-html">
    +  The lang-* class specifies the language file extensions.
    +  File extensions supported by default include
    +    "bsh", "c", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html",
    +    "java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh",
    +    "xhtml", "xml", "xsl".
    +</pre>
    + +

    It doesn't work on <obfuscated code sample>?

    +

    Yes. Prettifying obfuscated code is like putting lipstick on a pig + — i.e. outside the scope of this tool.

    + +

    Which browsers does it work with?

    +

    It's been tested with IE 6, Firefox 1.5 & 2, and Safari 2.0.4. + Look at the test page to see if it + works in your browser.

    + +

    What's changed?

    +

    See the change log

    + +

    Why doesn't Prettyprinting of strings work on WordPress?

    +

    Apparently wordpress does "smart quoting" which changes close quotes. + This causes end quotes to not match up with open quotes. +

    This breaks prettifying as well as copying and pasting of code samples. + See + WordPress's help center for info on how to stop smart quoting of code + snippets.

    + +

    How do I put line numbers in my code?

    +

    You can use the linenums class to turn on line + numbering. If your code doesn't start at line number 1, you can + add a colon and a line number to the end of that class as in + linenums:52. + +

    For example +

    <pre class="prettyprint linenums:4"
    +>// This is line 4.
    +foo();
    +bar();
    +baz();
    +boo();
    +far();
    +faz();
    +<pre>
    + produces +
    // This is line 4.
    +foo();
    +bar();
    +baz();
    +boo();
    +far();
    +faz();
    +
    + +

    How do I prevent a portion of markup from being marked as code?

    +

    You can use the nocode class to identify a span of markup + that is not code. +

    <pre class=prettyprint>
    +int x = foo();  /* This is a comment  <span class="nocode">This is not code</span>
    +  Continuation of comment */
    +int y = bar();
    +</pre>
    +produces +
    +int x = foo();  /* This is a comment  This is not code
    +  Continuation of comment */
    +int y = bar();
    +
    + +

    For a more complete example see the issue22 + testcase.

    + +

    I get an error message "a is not a function" or "opt_whenDone is not a function"

    +

    If you are calling prettyPrint via an event handler, wrap it in a function. + Instead of doing +

    + addEventListener('load', prettyPrint, false); +
    + wrap it in a closure like +
    + addEventListener('load', function (event) { prettyPrint() }, false); +
    + so that the browser does not pass an event object to prettyPrint which + will confuse it. + +


    + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/classes/AccountService.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/classes/AccountService.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/classes/AccountService.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/classes/AccountService.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,226 @@ + + + + + AccountService - Online Accounts JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    Class AccountService

    +Class defined in: online-accounts.js:10 +

    AccountService represents an instance of a service in an Online Accounts.

    +

    The AcountService object is not directly constructible but returned as a result of +OnlineAccounts api calls.

    +
    + + +
    + +
    +
    + +
    + String accountId( ) +
    + + + online-accounts.js:38 +
    +

    Returns the account's numeric ID; note that all + AccountService objects which work on the same online account will have the same ID.

    + +
    Returns: <String>

    Value for the accountId

    +
    +
    + +
    + authenticate( callback ) +
    + + + online-accounts.js:105 +
    +

    Perform the authentication on this account.

    +

    The callback will be called with the authentication result object which will have + these properties:

    +
      +
    • 'error': error message if the authentication was a failure
    • +
    • 'authenticated': boolean value that identifies if the operation was a success
    • +
    • 'data': Object with the data returned by the authentication process. An 'AccessToken' property can be usually found (when it applies) with the OAuth access token.
    • +
    +

    If the callback parameter is not set, the current "local" value is retrieved.

    + + Parameters: +
      +
    • + callback <Function(Object)> + +
    • +
    +
    + +
    + destroy( ) +
    + + + online-accounts.js:125 +
    +

    Destroys the remote object. This proxy object is not valid anymore.

    + +
    + +
    + String displayName( ) +
    + + + online-accounts.js:60 +
    +

    Returns The account's display name (usually the user's login or ID). + Note that all AccountService objects which work on the same online account + will share the same display name.

    + +
    Returns: <String>

    Value of the displayName

    +
    +
    + +
    + Boolean enabled( ) +
    + + + online-accounts.js:49 +
    +

    This read-only property returns whether the AccountService is enabled. + An application shouldn't use an AccountService which is disabled

    + +
    Returns: <Boolean>

    Value for the enabled flag

    +
    +
    + +
    + Object provider( ) +
    + + + online-accounts.js:72 +
    +

    Returns an object representing the provider which provides the account.

    +

    The returned object will have at least these properties:

    +
      +
    • 'id' is the unique identifier for this provider
    • +
    • 'displayName'
    • +
    • 'iconName'
    • +
    + +
    Returns: <Object>

    Value object for the provider

    +
    +
    + +
    + Object service( ) +
    + + + online-accounts.js:87 +
    +

    Returns an object representing the service which this AccountService instantiates

    +

    The returned object will have at least these properties:

    +
      +
    • 'id' is the unique identifier for this service
    • +
    • 'displayName'
    • +
    • 'iconName'
    • +
    • 'serviceTypeId' identifies the provided service type
    • +
    + +
    Returns: <Object>

    Value object for the service

    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/classes/OnlineAccounts.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/classes/OnlineAccounts.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/classes/OnlineAccounts.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/classes/OnlineAccounts.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,247 @@ + + + + + OnlineAccounts - Online Accounts JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    Class OnlineAccounts

    +Class defined in: online-accounts.js:144 +

    The OnlineAccounts object is the entry point to online accounts service access.

    +
    + + +
    + +
    +
    + +
    + api.getAccounts( filters, callback ) +
    + + + online-accounts.js:159 +
    +

    Gets the configured accounts satisfying the given filters.

    + + Parameters: +
      +
    • + filters <Object> +

      A dictionary of parameters to filter the result. The filtering keys are:

      +
        +
      • applicationId: the ID of a application (see /usr/share/accounts/applications/ or ~/.local/share/accounts/applications/ for a list of the available applications)
      • +
      • provider: the ID of a provider (see /usr/share/accounts/providers/ or ~/.local/share/accounts/providers/ for a list of the available providers)
      • +
      • service: the ID of a service (see /usr/share/accounts/services/ or ~/.local/share/accounts/services/ for a list of the available services)
      • +
      + +
    • +
    • + callback <Function(List of AccountService objects)> +

      Callback that receives the result or null

      + +
    • +
    +
    Example
    +
              var api = external.getUnityObject(1.0);
    +                          var oa = api.OnlineAccounts;
    +                        
    +                          oa.api.getAccounts({'provider': 'facebook'}, function(result) {
    +                            for (var i = 0; i < result.length; ++i) {
    +                              console.log("name: " + result[i].displayName()
    +                                          + ', id: ' + result[i].accountId()
    +                                          + ', providerName: ' + result[i].provider().displayName
    +                                          + ', enabled: ' + (result[i].enabled() ? "true" : "false")
    +                                          );
    +                            }               
    +                          });
    +                
    + +
    + +
    + api.getProviders( filters, callback ) +
    + + + online-accounts.js:190 +
    +

    Gets list of available providers.

    + + Parameters: +
      +
    • + filters <Object> +

      A dictionary of parameters to filter the result. The filtering keys are:

      +
        +
      • applicationId: the ID of a application (see /usr/share/accounts/applications/ or ~/.local/share/accounts/applications/ for a list of the available applications)
      • +
      + +
    • +
    • + callback <Function(List of AccountService objects)> +

      Callback that receives the result or null. + The result is a dictionary with the following keys: + - displayName: the display name for the corresponding provider + - providerId: the provider id

      + +
    • +
    +
    Example
    +
              var api = external.getUnityObject(1.0);
    +                          var oa = api.OnlineAccounts;
    +                
    +                          oa.api.getProviders({}, function(result) {
    +                            for (var i = 0; i < result.length; ++i) {
    +                              console.log("displayName: " + result[i].displayName
    +                                          + ', providerId: ' + result[i].providerId);
    +                            }
    +                          });
    +                
    + +
    + +
    + api.requestAccount( applicationId, providerId, callback ) +
    + + + online-accounts.js:218 +
    +

    Requests access to an account.

    +

    Applications must invoke this method in order to obtain access + to an account. The user will be prompted to grant access to + either an existing account, to create a new one or to decline + the request.

    + + Parameters: +
      +
    • + applicationId <String> +

      The ID of the application + requesting the account (see /usr/share/accounts/applications/ or + ~/.local/share/accounts/applications/ for a list of the + available applications)

      + +
    • +
    • + providerId <String> +

      The ID of the provider of the desired + account (see /usr/share/accounts/providers/ or + ~/.local/share/accounts/providers/ for a list of the available + providers)

      + +
    • +
    • + callback <Function()> +

      Callback which will be invoked + after the access request has been decided (either with the + access to an account being granted, or with a refusal).

      + +
    • +
    +
    Example
    +
              var api = external.getUnityObject(1.0);
    +                          var oa = api.OnlineAccounts;
    +                
    +                          var appId = 'com.ubuntu.developer.me.MyPackage_MyApp';
    +                          oa.api.requestAccount(appId,
    +                                                'facebook',
    +                                                function() {
    +                            oa.api.getAccounts({ 'application': appId }, function(result) {
    +                              for (var i = 0; i < result.length; ++i) {
    +                                console.log("name: " + result[i].displayName()
    +                                            + ', id: ' + result[i].accountId()
    +                                            + ', providerName: ' + result[i].provider().displayName
    +                                            + ', enabled: ' + (result[i].enabled() ? "true" : "false")
    +                                            );
    +                              }
    +                            });
    +                          });
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/data.json unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/data.json --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/data.json 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/data.json 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,253 @@ +{ + "project": { + "name": "Online Accounts JS API", + "description": "Ubuntu App Platform Online Accounts JavaScript API docs", + "version": "0.1" + }, + "files": { + "online-accounts.js": { + "name": "online-accounts.js", + "modules": { + "OnlineAccounts": 1 + }, + "classes": { + "AccountService": 1, + "OnlineAccounts": 1 + }, + "fors": {}, + "namespaces": {} + } + }, + "modules": { + "OnlineAccounts": { + "name": "OnlineAccounts", + "submodules": {}, + "classes": { + "AccountService": 1, + "OnlineAccounts": 1 + }, + "fors": {}, + "namespaces": {}, + "tag": "module", + "file": "online-accounts.js", + "line": 144, + "description": "OnlineAccounts is the entry point to online accounts service access." + } + }, + "classes": { + "AccountService": { + "name": "AccountService", + "shortname": "AccountService", + "classitems": [], + "plugins": [], + "extensions": [], + "plugin_for": [], + "extension_for": [], + "module": "OnlineAccounts", + "namespace": "", + "file": "online-accounts.js", + "line": 10, + "description": "AccountService represents an instance of a service in an Online Accounts.\n\nThe AcountService object is not directly constructible but returned as a result of\nOnlineAccounts api calls." + }, + "OnlineAccounts": { + "name": "OnlineAccounts", + "shortname": "OnlineAccounts", + "classitems": [], + "plugins": [], + "extensions": [], + "plugin_for": [], + "extension_for": [], + "module": "OnlineAccounts", + "namespace": "", + "file": "online-accounts.js", + "line": 144, + "description": "The OnlineAccounts object is the entry point to online accounts service access.", + "example": [ + "\n\n var api = external.getUnityObject(1.0);\n var oa = api.OnlineAccounts;\n\n oa.api.getAccounts({'provider': 'facebook'}, function(result) { [...] });" + ] + } + }, + "classitems": [ + { + "file": "online-accounts.js", + "line": 38, + "description": "Returns the account's numeric ID; note that all\nAccountService objects which work on the same online account will have the same ID.", + "itemtype": "method", + "name": "accountId", + "return": { + "description": "Value for the accountId", + "type": "String" + }, + "class": "AccountService", + "module": "OnlineAccounts" + }, + { + "file": "online-accounts.js", + "line": 49, + "description": "This read-only property returns whether the AccountService is enabled.\nAn application shouldn't use an AccountService which is disabled", + "itemtype": "method", + "name": "enabled", + "return": { + "description": "Value for the enabled flag", + "type": "Boolean" + }, + "class": "AccountService", + "module": "OnlineAccounts" + }, + { + "file": "online-accounts.js", + "line": 60, + "description": "Returns The account's display name (usually the user's login or ID).\nNote that all AccountService objects which work on the same online account\nwill share the same display name.", + "itemtype": "method", + "name": "displayName", + "return": { + "description": "Value of the displayName", + "type": "String" + }, + "class": "AccountService", + "module": "OnlineAccounts" + }, + { + "file": "online-accounts.js", + "line": 72, + "description": "Returns an object representing the provider which provides the account.\n\nThe returned object will have at least these properties:\n - 'id' is the unique identifier for this provider\n - 'displayName'\n - 'iconName'", + "itemtype": "method", + "name": "provider", + "return": { + "description": "Value object for the provider", + "type": "Object" + }, + "class": "AccountService", + "module": "OnlineAccounts" + }, + { + "file": "online-accounts.js", + "line": 87, + "description": "Returns an object representing the service which this AccountService instantiates\n\nThe returned object will have at least these properties:\n - 'id' is the unique identifier for this service\n - 'displayName'\n - 'iconName'\n - 'serviceTypeId' identifies the provided service type", + "itemtype": "method", + "name": "service", + "return": { + "description": "Value object for the service", + "type": "Object" + }, + "class": "AccountService", + "module": "OnlineAccounts" + }, + { + "file": "online-accounts.js", + "line": 105, + "description": "Perform the authentication on this account.\n\nThe callback will be called with the authentication result object which will have\nthese properties:\n - 'error': error message if the authentication was a failure\n - 'authenticated': boolean value that identifies if the operation was a success\n - 'data': Object with the data returned by the authentication process. An 'AccessToken' property can be usually found (when it applies) with the OAuth access token.\n\nIf the callback parameter is not set, the current \"local\" value is retrieved.", + "itemtype": "method", + "name": "authenticate", + "params": [ + { + "name": "callback", + "description": "", + "type": "Function(Object)" + } + ], + "class": "AccountService", + "module": "OnlineAccounts" + }, + { + "file": "online-accounts.js", + "line": 125, + "description": "Destroys the remote object. This proxy object is not valid anymore.", + "itemtype": "method", + "name": "destroy", + "class": "AccountService", + "module": "OnlineAccounts" + }, + { + "file": "online-accounts.js", + "line": 159, + "description": "Gets the configured accounts satisfying the given filters.", + "itemtype": "method", + "name": "api.getAccounts", + "params": [ + { + "name": "filters", + "description": "A dictionary of parameters to filter the result. The filtering keys are:\n- applicationId: the ID of a application (see /usr/share/accounts/applications/ or ~/.local/share/accounts/applications/ for a list of the available applications)\n- provider: the ID of a provider (see /usr/share/accounts/providers/ or ~/.local/share/accounts/providers/ for a list of the available providers)\n- service: the ID of a service (see /usr/share/accounts/services/ or ~/.local/share/accounts/services/ for a list of the available services)", + "type": "Object" + }, + { + "name": "callback", + "description": "Callback that receives the result or null", + "type": "Function(List of AccountService objects)" + } + ], + "example": [ + "\n var api = external.getUnityObject(1.0);\n var oa = api.OnlineAccounts;\n \n oa.api.getAccounts({'provider': 'facebook'}, function(result) {\n for (var i = 0; i < result.length; ++i) {\n console.log(\"name: \" + result[i].displayName()\n + ', id: ' + result[i].accountId()\n + ', providerName: ' + result[i].provider().displayName\n + ', enabled: ' + (result[i].enabled() ? \"true\" : \"false\")\n );\n } \n });\n" + ], + "class": "OnlineAccounts", + "module": "OnlineAccounts" + }, + { + "file": "online-accounts.js", + "line": 190, + "description": "Gets list of available providers.", + "itemtype": "method", + "name": "api.getProviders", + "params": [ + { + "name": "filters", + "description": "A dictionary of parameters to filter the result. The filtering keys are:\n- applicationId: the ID of a application (see /usr/share/accounts/applications/ or ~/.local/share/accounts/applications/ for a list of the available applications)", + "type": "Object" + }, + { + "name": "callback", + "description": "Callback that receives the result or null.\n The result is a dictionary with the following keys:\n - displayName: the display name for the corresponding provider\n - providerId: the provider id", + "type": "Function(List of AccountService objects)" + } + ], + "example": [ + "\n var api = external.getUnityObject(1.0);\n var oa = api.OnlineAccounts;\n\n oa.api.getProviders({}, function(result) {\n for (var i = 0; i < result.length; ++i) {\n console.log(\"displayName: \" + result[i].displayName\n + ', providerId: ' + result[i].providerId);\n }\n });\n" + ], + "class": "OnlineAccounts", + "module": "OnlineAccounts" + }, + { + "file": "online-accounts.js", + "line": 218, + "description": "Requests access to an account.\n\nApplications must invoke this method in order to obtain access\nto an account. The user will be prompted to grant access to\neither an existing account, to create a new one or to decline\nthe request.", + "itemtype": "method", + "name": "api.requestAccount", + "params": [ + { + "name": "applicationId", + "description": "The ID of the application\nrequesting the account (see /usr/share/accounts/applications/ or\n~/.local/share/accounts/applications/ for a list of the\navailable applications)", + "type": "String" + }, + { + "name": "providerId", + "description": "The ID of the provider of the desired\naccount (see /usr/share/accounts/providers/ or\n~/.local/share/accounts/providers/ for a list of the available\nproviders)", + "type": "String" + }, + { + "name": "callback", + "description": "Callback which will be invoked\nafter the access request has been decided (either with the\naccess to an account being granted, or with a refusal).", + "type": "Function()" + } + ], + "example": [ + "\n var api = external.getUnityObject(1.0);\n var oa = api.OnlineAccounts;\n\n var appId = 'com.ubuntu.developer.me.MyPackage_MyApp';\n oa.api.requestAccount(appId,\n 'facebook',\n function() {\n oa.api.getAccounts({ 'application': appId }, function(result) {\n for (var i = 0; i < result.length; ++i) {\n console.log(\"name: \" + result[i].displayName()\n + ', id: ' + result[i].accountId()\n + ', providerName: ' + result[i].provider().displayName\n + ', enabled: ' + (result[i].enabled() ? \"true\" : \"false\")\n );\n }\n });\n });" + ], + "class": "OnlineAccounts", + "module": "OnlineAccounts" + }, + { + "file": "online-accounts.js", + "line": 268, + "access": "private", + "tagname": "", + "class": "OnlineAccounts", + "module": "OnlineAccounts" + } + ], + "warnings": [ + { + "message": "Missing item type", + "line": " online-accounts.js:268" + } + ] +} \ No newline at end of file diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/files/online-accounts.js.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/files/online-accounts.js.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/files/online-accounts.js.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/files/online-accounts.js.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,359 @@ + + + + + online-accounts.js - Online Accounts JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    online-accounts.js

    + +
    +    /**
    + * OnlineAccounts is the entry point to online accounts service access.
    +
    + * @module OnlineAccounts
    + */
    +
    +function createOnlineAccountsApi(backendBridge) {
    +    var PLUGIN_URI = 'OnlineAccounts';
    +
    +/**
    + * AccountService represents an instance of a service in an Online Accounts.
    + * 
    + * The AcountService object is not directly constructible but returned as a result of
    + * OnlineAccounts api calls.
    + *
    + * @class AccountService
    + */
    +    function AccountService(id, content) {
    +        this._proxy = backendBridge.createRemoteObject(
    +            PLUGIN_URI, 'AccountService', id);
    +
    +        this._accountId = content && content.accountId
    +             ? content.accountId : null;
    +        this._enabled = content && content.enabled
    +             ? content.enabled : null;
    +        this._serviceEnabled = content && content.serviceEnabled
    +             ? content.serviceEnabled : null;
    +        this._displayName = content && content.displayName
    +             ? content.displayName : null;
    +        this._provider = content && content.provider
    +             ? content.provider : null;
    +        this._service = content && content.service
    +             ? content.service : null;
    +    };
    +    AccountService.prototype = {
    +        // properties
    +
    +        /**
    +         * Returns the account's numeric ID; note that all
    +         * AccountService objects which work on the same online account will have the same ID.
    +         *
    +         * @method accountId
    +         * @return {String} Value for the accountId
    +         */
    +        accountId: function() {
    +            return this._accountId;
    +        },
    +
    +        /**
    +         * This read-only property returns whether the AccountService is enabled.
    +         * An application shouldn't use an AccountService which is disabled
    +         *
    +         * @method enabled
    +         * @return {Boolean} Value for the enabled flag
    +         */
    +        enabled: function() {
    +            return this._enabled;
    +        },
    +
    +        /**
    +         * Returns The account's display name (usually the user's login or ID).
    +         * Note that all AccountService objects which work on the same online account
    +         * will share the same display name.
    +         *
    +         * @method displayName
    +         * @return {String} Value of the displayName
    +         */
    +        displayName: function() {
    +            return this._displayName;
    +        },
    +
    +        /**
    +         * Returns an object representing the provider which provides the account.
    +         * 
    +         * The returned object will have at least these properties:
    +         *   - 'id' is the unique identifier for this provider
    +         *   - 'displayName'
    +         *   - 'iconName'
    +         * 
    +         * @method provider
    +         * @return {Object} Value object for the provider
    +         */
    +        provider: function() {
    +            return this._provider;
    +        },
    +
    +        /**
    +         * Returns an object representing the service which this AccountService instantiates
    +         * 
    +         * The returned object will have at least these properties:
    +         *   - 'id' is the unique identifier for this service
    +         *   - 'displayName'
    +         *   - 'iconName'
    +         *   - 'serviceTypeId' identifies the provided service type
    +         * 
    +         * @method service
    +         * @return {Object} Value object for the service
    +         */
    +        service: function() {
    +            return this._service;
    +        },
    +
    +        // methods
    +
    +        /**
    +         * Perform the authentication on this account.
    +         * 
    +         * The callback will be called with the authentication result object which will have
    +         * these properties:
    +         *   - 'error': error message if the authentication was a failure
    +         *   - 'authenticated': boolean value that identifies if the operation was a success
    +         *   - 'data': Object with the data returned by the authentication process. An 'AccessToken' property can be usually found (when it applies) with the OAuth access token.
    +         * 
    +         * If the callback parameter is not set, the current "local" value is retrieved.
    +         *
    +         * @method authenticate
    +         * @param callback {Function(Object)}
    +         */
    +        authenticate: function(callback) {
    +            this._proxy.call('authenticate', [callback]);
    +        },
    +
    +        // extras
    +
    +        /**
    +         * Destroys the remote object. This proxy object is not valid anymore.
    +         *
    +         * @method destroy
    +         */
    +        destroy: function() {
    +            this._proxy.call('destroy', []);
    +        },
    +    };
    +
    +    function _constructorFromName(className) {
    +        var constructorPerName = {
    +            "AccountService": AccountService,
    +        };
    +        return className in constructorPerName
    +                ? constructorPerName[className]
    +                : null;
    +    };
    + 
    +/**
    + * The OnlineAccounts object is the entry point to online accounts service access.
    +
    + * @class OnlineAccounts
    + * 
    + * @example
    +
    +        var api = external.getUnityObject(1.0);
    +        var oa = api.OnlineAccounts;
    +
    +        oa.api.getAccounts({'provider': 'facebook'}, function(result) { [...] });
    + */
    +   return {
    +
    +        api: {
    +            /**
    +             * Gets the configured accounts satisfying the given filters.
    +             *
    +             * @method api.getAccounts
    +             * @param filters {Object} A dictionary of parameters to filter the result. The filtering keys are:
    +             * - applicationId: the ID of a application (see /usr/share/accounts/applications/ or ~/.local/share/accounts/applications/ for a list of the available applications)
    +             * - provider: the ID of a provider (see /usr/share/accounts/providers/ or ~/.local/share/accounts/providers/ for a list of the available providers)
    +             * - service: the ID of a service (see /usr/share/accounts/services/ or ~/.local/share/accounts/services/ for a list of the available services)
    +             *
    +             * @param callback {Function(List of AccountService objects)} Callback that receives the result or null
    +             *
    +             * @example
    +               var api = external.getUnityObject(1.0);
    +               var oa = api.OnlineAccounts;
    +             
    +               oa.api.getAccounts({'provider': 'facebook'}, function(result) {
    +                 for (var i = 0; i < result.length; ++i) {
    +                   console.log("name: " + result[i].displayName()
    +                               + ', id: ' + result[i].accountId()
    +                               + ', providerName: ' + result[i].provider().displayName
    +                               + ', enabled: ' + (result[i].enabled() ? "true" : "false")
    +                               );
    +                 }               
    +               });
    +
    +             */
    +            getAccounts: function(filters, callback) {
    +                backendBridge.call('OnlineAccounts.getAccounts'
    +                                   , [filters]
    +                                   , callback);
    +            },
    +            /**
    +             * Gets list of available providers.
    +             *
    +             * @method api.getProviders
    +             * @param filters {Object} A dictionary of parameters to filter the result. The filtering keys are:
    +             * - applicationId: the ID of a application (see /usr/share/accounts/applications/ or ~/.local/share/accounts/applications/ for a list of the available applications)
    +             * @param callback {Function(List of AccountService objects)} Callback that receives the result or null.
    +             *                                                            The result is a dictionary with the following keys:
    +             *          - displayName: the display name for the corresponding provider
    +             *          - providerId: the provider id
    +             *
    +             * @example
    +               var api = external.getUnityObject(1.0);
    +               var oa = api.OnlineAccounts;
    +
    +               oa.api.getProviders({}, function(result) {
    +                 for (var i = 0; i < result.length; ++i) {
    +                   console.log("displayName: " + result[i].displayName
    +                               + ', providerId: ' + result[i].providerId);
    +                 }
    +               });
    +
    +             */
    +            getProviders: function(filters, callback) {
    +                backendBridge.call('OnlineAccounts.getProviders'
    +                                   , [filters]
    +                                   , callback);
    +            },
    +            /**
    +             * Requests access to an account.
    +             *
    +             * Applications must invoke this method in order to obtain access
    +             * to an account.  The user will be prompted to grant access to
    +             * either an existing account, to create a new one or to decline
    +             * the request.
    +             *
    +             * @method api.requestAccount
    +             * @param applicationId {String} The ID of the application
    +             * requesting the account (see /usr/share/accounts/applications/ or
    +             * ~/.local/share/accounts/applications/ for a list of the
    +             * available applications)
    +             * @param providerId {String} The ID of the provider of the desired
    +             * account (see /usr/share/accounts/providers/ or
    +             * ~/.local/share/accounts/providers/ for a list of the available
    +             * providers)
    +             * @param callback {Function()} Callback which will be invoked
    +             * after the access request has been decided (either with the
    +             * access to an account being granted, or with a refusal).
    +             *
    +             * @example
    +               var api = external.getUnityObject(1.0);
    +               var oa = api.OnlineAccounts;
    +
    +               var appId = 'com.ubuntu.developer.me.MyPackage_MyApp';
    +               oa.api.requestAccount(appId,
    +                                     'facebook',
    +                                     function() {
    +                 oa.api.getAccounts({ 'application': appId }, function(result) {
    +                   for (var i = 0; i < result.length; ++i) {
    +                     console.log("name: " + result[i].displayName()
    +                                 + ', id: ' + result[i].accountId()
    +                                 + ', providerName: ' + result[i].provider().displayName
    +                                 + ', enabled: ' + (result[i].enabled() ? "true" : "false")
    +                                 );
    +                   }
    +                 });
    +               });
    +             */
    +            requestAccount: function(applicationId, providerId, callback) {
    +                backendBridge.call('OnlineAccounts.Client.requestAccount',
    +                                   [ applicationId, providerId],
    +                                   callback);
    +            },
    +        },
    +
    +
    +        // Internal
    +
    +        /**
    +         * @private
    +         *
    +         */
    +        createObjectWrapper: function(objectType, objectId, content) {
    +            var Constructor = _constructorFromName(objectType);
    +            return new Constructor(objectId, content);
    +        },
    +    };
    +};
    +
    +
    +
    +
    + +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/index.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/index.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/index.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/index.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,67 @@ + + + + + Online Accounts JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    Welcome to Ubuntu Online Accounts JavaScript API Docs

    +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/modules/OnlineAccounts.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/modules/OnlineAccounts.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/modules/OnlineAccounts.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/online-accounts/client/docsbuild/modules/OnlineAccounts.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,92 @@ + + + + + OnlineAccounts - Online Accounts JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +
    +

    OnlineAccounts

    +

    OnlineAccounts is the entry point to online accounts service access.

    +
    + +
    +
    +

    This module has the following classes:

    + +
    +
    +
    +
    +

    +Module description found: online-accounts.js:144 +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/api.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/api.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/api.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/api.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,17 @@ +YUI.add("yuidoc-meta", function(Y) { + Y.YUIDoc = { meta: { + "classes": [ + "RuntimeApi" + ], + "modules": [ + "RuntimeApi" + ], + "allModules": [ + { + "displayName": "RuntimeApi", + "name": "RuntimeApi", + "description": "RuntimeApi gives access to the application runtime information and management." + } + ] +} }; +}); \ No newline at end of file Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/css/external-small.png and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/css/external-small.png differ Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/css/logo.png and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/css/logo.png differ diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/css/main.css unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/css/main.css --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/css/main.css 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/css/main.css 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,429 @@ +/* +Font sizes for all selectors other than the body are given in percentages, +with 100% equal to 13px. To calculate a font size percentage, multiply the +desired size in pixels by 7.6923076923. + +Here's a quick lookup table: + +10px - 76.923% +11px - 84.615% +12px - 92.308% +13px - 100% +14px - 107.692% +15px - 115.385% +16px - 123.077% +17px - 130.769% +18px - 138.462% +19px - 146.154% +20px - 153.846% +*/ + +html { + background: #fff; + color: #333; + overflow-y: scroll; +} + +body { + font: 13px/1.4 'Lucida Grande', 'Lucida Sans Unicode', 'DejaVu Sans', 'Bitstream Vera Sans', 'Helvetica', 'Arial', sans-serif; + margin: 0; + padding: 0; +} + +/* -- Links ----------------------------------------------------------------- */ +a { + color: #DD4814; + text-decoration: none; +} + +a:hover { text-decoration: underline; } + +/* "Jump to Table of Contents" link is shown to assistive tools, but hidden from + sight until it's focused. */ +.jump { + position: absolute; + padding: 3px 6px; + left: -99999px; + top: 0; +} + +.jump:focus { left: 40%; } + +/* -- Paragraphs ------------------------------------------------------------ */ +p { margin: 1.3em 0; } +dd p, td p { margin-bottom: 0; } +dd p:first-child, td p:first-child { margin-top: 0; } + +/* -- Headings -------------------------------------------------------------- */ +h1, h2, h3, h4, h5, h6 { + color: #DD4814 + font-family: 'Ubuntu', sans-serif; + font-weight: bold; + line-height: 1.1; + margin: 1.1em 0 0.5em; +} + +h1 { + font-size: 184.6%; + color: #30418C; + margin: 0.75em 0 0.5em; +} + +h2 { + font-size: 153.846%; + color: #E48A2B; +} + +h3 { font-size: 138.462%; } + +h4 { + border-bottom: 1px solid #DBDFEA; + color: #E48A2B; + font-size: 115.385%; + font-weight: normal; + padding-bottom: 2px; +} + +h5, h6 { font-size: 107.692%; } + +/* -- Code and examples ----------------------------------------------------- */ +code, kbd, pre, samp { + font-family: Menlo, Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; + font-size: 92.308%; + line-height: 1.35; +} + +p code, p kbd, p samp { + background: #FCFBFA; + border: 1px solid #EFEEED; + padding: 0 3px; +} + +a code, a kbd, a samp, +pre code, pre kbd, pre samp, +table code, table kbd, table samp, +.intro code, .intro kbd, .intro samp, +.toc code, .toc kbd, .toc samp { + background: none; + border: none; + padding: 0; +} + +pre.code, pre.terminal, pre.cmd { + overflow-x: auto; + *overflow-x: scroll; + padding: 0.3em 0.6em; +} + +pre.code { + background: #FCFBFA; + border: 1px solid #EFEEED; + border-left-width: 5px; +} + +pre.terminal, pre.cmd { + background: #F0EFFC; + border: 1px solid #D0CBFB; + border-left: 5px solid #D0CBFB; +} + +/* Don't reduce the font size of // elements inside
    +   blocks. */
    +pre code, pre kbd, pre samp { font-size: 100%; }
    +
    +/* Used to denote text that shouldn't be selectable, such as line numbers or
    +   shell prompts. Guess which browser this doesn't work in. */
    +.noselect {
    +    -moz-user-select: -moz-none;
    +    -khtml-user-select: none;
    +    -webkit-user-select: none;
    +    -o-user-select: none;
    +    user-select: none;
    +}
    +
    +/* -- Lists ----------------------------------------------------------------- */
    +dd { margin: 0.2em 0 0.7em 1em; }
    +dl { margin: 1em 0; }
    +dt { font-weight: bold; }
    +
    +/* -- Tables ---------------------------------------------------------------- */
    +caption, th { text-align: left; }
    +
    +table {
    +    border-collapse: collapse;
    +    width: 100%;
    +}
    +
    +td, th {
    +    border: 1px solid #fff;
    +    padding: 5px 12px;
    +    vertical-align: top;
    +}
    +
    +td { background: #E6E9F5; }
    +td dl { margin: 0; }
    +td dl dl { margin: 1em 0; }
    +td pre:first-child { margin-top: 0; }
    +
    +th {
    +    background: #D2D7E6;/*#97A0BF*/
    +    border-bottom: none;
    +    border-top: none;
    +    color: #000;/*#FFF1D5*/
    +    font-family: 'Trebuchet MS', sans-serif;
    +    font-weight: bold;
    +    line-height: 1.3;
    +    white-space: nowrap;
    +}
    +
    +
    +/* -- Layout and Content ---------------------------------------------------- */
    +#doc {
    +    margin: auto;
    +    min-width: 1024px;
    +}
    +
    +#main { width: 754px; }
    +#sidebar { width: 270px; margin: 0 15px; }
    +
    +.content { padding: 0 20px 0 25px; }
    +
    +/* -- Sidebar --------------------------------------------------------------- */
    +.sidebox {
    +    background: #F9F9FC;/*E6E9F5*/
    +    border: 1px solid #D4D8EB;
    +
    +    -moz-border-radius: 4px;
    +    -webkit-border-radius: 4px;
    +    border-radius: 4px;
    +    -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    +    -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    +    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    +    font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'Helvetica', 'Arial', sans-serif;
    +    margin: 0 0 15px 0;
    +    padding-bottom: 1px;
    +}
    +
    +.sidebox h2 {
    +    background: #E5E6F1;
    +    -moz-border-radius: 4px 4px 0 0;
    +    -webkit-border-radius: 4px 4px 0 0;
    +    border-radius: 4px 4px 0 0;
    +    color: #5E6BA4;
    +    font-weight: bold;
    +    font-size: 107.692%;
    +    margin: 0;
    +    padding: 4px 7px 5px;
    +}
    +
    +.sidebox .bd {
    +    font-size: 84.615%;
    +    padding: 0 5px 0 8px;
    +}
    +
    +.sidebox li { list-style-type: disc; color:#D4D5E3; }
    +
    +.sidebox ol, .sidebox ul {
    +    margin-left: 0;
    +    padding-left: 16px;
    +}
    +
    +.sidebox ol ol, .sidebox ol ul,
    +.sidebox ul ol, .sidebox ul ul {
    +    margin: 0;
    +    padding-left: 16px;
    +}
    +
    +/* -- Table of Contents ----------------------------------------------------- */
    +
    +/* The #toc id refers to the single global table of contents, while the .toc
    +   class refers to generic TOC lists that could be used throughout the page. */
    +
    +.toc code, .toc kbd, .toc samp { font-size: 100%; }
    +.toc li { font-weight: bold; }
    +.toc li li { font-weight: normal; }
    +
    +/* -- Intro and Example Boxes ----------------------------------------------- */
    +.intro, .example { margin-bottom: 2em; }
    +
    +.example {
    +    -moz-border-radius: 4px;
    +    -webkit-border-radius: 4px;
    +    border-radius: 4px;
    +    -moz-box-shadow: 0 0 5px #bfbfbf;
    +    -webkit-box-shadow: 0 0 5px #bfbfbf;
    +    box-shadow: 0 0 5px #bfbfbf;
    +    padding: 1em;
    +}
    +
    +.intro {
    +    background: none repeat scroll 0 0 #F0F1F8; border: 1px solid #D4D8EB; padding: 0 1em;
    +}
    +
    +/* -- Other Styles ---------------------------------------------------------- */
    +
    +/* These are probably YUI-specific, and should be moved out of Selleck's default
    +   theme. */
    +
    +.button {
    +    border: 1px solid #dadada;
    +    -moz-border-radius: 3px;
    +    -webkit-border-radius: 3px;
    +    border-radius: 3px;
    +    color: #444;
    +    display: inline-block;
    +    font-family: Helvetica, Arial, sans-serif;
    +    font-size: 92.308%;
    +    font-weight: bold;
    +    padding: 4px 13px 3px;
    +    -moz-text-shadow: 1px 1px 0 #fff;
    +    -webkit-text-shadow: 1px 1px 0 #fff;
    +    text-shadow: 1px 1px 0 #fff;
    +    white-space: nowrap;
    +
    +    background: #EFEFEF; /* old browsers */
    +    background: -moz-linear-gradient(top, #f5f5f5 0%, #efefef 50%, #e5e5e5 51%, #dfdfdf 100%); /* firefox */
    +    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(50%,#efefef), color-stop(51%,#e5e5e5), color-stop(100%,#dfdfdf)); /* webkit */
    +    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#dfdfdf',GradientType=0 ); /* ie */
    +}
    +
    +.button:hover {
    +    border-color: #466899;
    +    color: #fff;
    +    text-decoration: none;
    +    -moz-text-shadow: 1px 1px 0 #222;
    +    -webkit-text-shadow: 1px 1px 0 #222;
    +    text-shadow: 1px 1px 0 #222;
    +
    +    background: #6396D8; /* old browsers */
    +    background: -moz-linear-gradient(top, #6396D8 0%, #5A83BC 50%, #547AB7 51%, #466899 100%); /* firefox */
    +    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6396D8), color-stop(50%,#5A83BC), color-stop(51%,#547AB7), color-stop(100%,#466899)); /* webkit */
    +    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6396D8', endColorstr='#466899',GradientType=0 ); /* ie */
    +}
    +
    +.newwindow { text-align: center; }
    +
    +.header .version em {
    +    display: block;
    +    text-align: right;
    +}
    +
    +.yui3-skin-sam #classdocs .yui3-tabview-panel {
    +    background-color: transparent;
    +}
    +
    +.yui3-skin-sam #classdocs .yui3-tabview-panel {
    +    border: none;
    +}
    +
    +.yui3-skin-sam .yui3-tabview .yui3-tab,
    +.yui3-skin-sam .yui3-tabview .yui3-tab-selected,
    +.yui3-skin-sam .yui3-tabview .yui3-tab-hover {
    +    background: -moz-linear-gradient(center top , #F4F0EC 0%, #D6D2CE 100%) repeat scroll 0 0 transparent;
    +    border-bottom: 1px solid #DEDCD9;
    +    border-right: 1px solid #CDCBC8;
    +    border-left: 1px solid #CDCBC8;
    +    border-top: 1px solid #DADADA;
    +    color: #333333;
    +    text-decoration: none;
    +}
    +.yui3-skin-sam .yui3-tabview .yui3-tab-label,
    +.yui3-skin-sam .yui3-tabview .yui3-tab-selected .yui3-tab-label {
    +    border: none;
    +    background: none;
    +    font-size: 100%;
    +    color: #000;
    +}
    +
    +.yui3-skin-sam .yui3-tabview .yui3-tab-selected,
    +.yui3-skin-sam .yui3-tabview .yui3-tab-hover {
    +    background: none;
    +    background-color: #fff;
    +    border-bottom-color: #FFFFFF;
    +    border-top: 2px solid #8193C9;
    +    font-weight: bold;
    +    color: #000;
    +
    +}
    +
    +.yui3-skin-sam .yui3-tabview-list {
    +    border-color: #DFDFDF;
    +    border-width: 0 0 1px; 
    +}
    +
    +
    +a.external {
    +    background-image: url(external-small.png);
    +    background-repeat: no-repeat;
    +    background-position: 0 0;
    +    padding-left: 16px;
    +}
    +
    +#classdocs .item {
    +    border-bottom: 1px solid #466899;
    +    margin: 1em 0;
    +    padding: 1.5em;
    +}
    +
    +#classdocs .item .params p,
    +    #classdocs .item .returns p,{
    +    display: inline;
    +}
    +
    +#classdocs .item em code, #classdocs .item em.comment {
    +    color: green;
    +}
    +
    +#classdocs .item em.comment a {
    +    color: green;
    +    text-decoration: underline;
    +}
    +
    +#classdocs .foundat {
    +    font-size: 11px;
    +    font-style: normal;
    +}
    +
    +.attrs .emits {
    +    margin-left: 2em;
    +    padding: .5em;
    +    border-left: 1px dashed #ccc;
    +}
    +
    +abbr {
    +    border-bottom: 1px dashed #ccc;
    +    font-size: 80%;
    +    cursor: help;
    +}
    +
    +.prettyprint li.L0, 
    +.prettyprint li.L1, 
    +.prettyprint li.L2, 
    +.prettyprint li.L3, 
    +.prettyprint li.L5, 
    +.prettyprint li.L6, 
    +.prettyprint li.L7, 
    +.prettyprint li.L8 {
    +    list-style: decimal;
    +}
    +
    +ul li p {
    +    margin-top: 0;
    +}
    +
    +.method .name {
    +    font-size: 110%;
    +}
    +
    +#hd {
    +    background: -moz-linear-gradient(center top , #DCDBD9 0%, #F6F5F3 100%) repeat scroll 0 0 transparent;
    +    border-bottom: 1px solid #DFDFDF;
    +    padding: 0 15px 1px 20px;
    +    margin-bottom: 15px;
    +}
    +
    +#hd img {
    +    margin-right: 10px;
    +    vertical-align: middle;
    +}
    +
    Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/favicon.ico and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/favicon.ico differ
    Binary files /tmp/F087AahjWT/unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/img/spinner.gif and /tmp/aBSqVMgCHG/unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/img/spinner.gif differ
    diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/index.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/index.html
    --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/index.html	1970-01-01 00:00:00.000000000 +0000
    +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/index.html	2015-04-09 13:29:10.000000000 +0000
    @@ -0,0 +1,10 @@
    +
    +
    +    
    +        Redirector
    +        
    +    
    +    
    +        Click here to redirect
    +    
    +
    diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/apidocs.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/apidocs.js
    --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/apidocs.js	1970-01-01 00:00:00.000000000 +0000
    +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/apidocs.js	2015-04-09 13:29:10.000000000 +0000
    @@ -0,0 +1,370 @@
    +YUI().use(
    +    'yuidoc-meta',
    +    'api-list', 'history-hash', 'node-screen', 'node-style', 'pjax',
    +function (Y) {
    +
    +var win          = Y.config.win,
    +    localStorage = win.localStorage,
    +
    +    bdNode = Y.one('#bd'),
    +
    +    pjax,
    +    defaultRoute,
    +
    +    classTabView,
    +    selectedTab;
    +
    +// Kill pjax functionality unless serving over HTTP.
    +if (!Y.getLocation().protocol.match(/^https?\:/)) {
    +    Y.Router.html5 = false;
    +}
    +
    +// Create the default route with middleware which enables syntax highlighting
    +// on the loaded content.
    +defaultRoute = Y.Pjax.defaultRoute.concat(function (req, res, next) {
    +    prettyPrint();
    +    bdNode.removeClass('loading');
    +
    +    next();
    +});
    +
    +pjax = new Y.Pjax({
    +    container      : '#docs-main',
    +    contentSelector: '#docs-main > .content',
    +    linkSelector   : '#bd a',
    +    titleSelector  : '#xhr-title',
    +
    +    navigateOnHash: true,
    +    root          : '/',
    +    routes        : [
    +        // -- / ----------------------------------------------------------------
    +        {
    +            path     : '/(index.html)?',
    +            callbacks: defaultRoute
    +        },
    +
    +        // -- /classes/* -------------------------------------------------------
    +        {
    +            path     : '/classes/:class.html*',
    +            callbacks: [defaultRoute, 'handleClasses']
    +        },
    +
    +        // -- /files/* ---------------------------------------------------------
    +        {
    +            path     : '/files/*file',
    +            callbacks: [defaultRoute, 'handleFiles']
    +        },
    +
    +        // -- /modules/* -------------------------------------------------------
    +        {
    +            path     : '/modules/:module.html*',
    +            callbacks: defaultRoute
    +        }
    +    ]
    +});
    +
    +// -- Utility Functions --------------------------------------------------------
    +
    +pjax.checkVisibility = function (tab) {
    +    tab || (tab = selectedTab);
    +
    +    if (!tab) { return; }
    +
    +    var panelNode = tab.get('panelNode'),
    +        visibleItems;
    +
    +    // If no items are visible in the tab panel due to the current visibility
    +    // settings, display a message to that effect.
    +    visibleItems = panelNode.all('.item,.index-item').some(function (itemNode) {
    +        if (itemNode.getComputedStyle('display') !== 'none') {
    +            return true;
    +        }
    +    });
    +
    +    panelNode.all('.no-visible-items').remove();
    +
    +    if (!visibleItems) {
    +        if (Y.one('#index .index-item')) {
    +            panelNode.append(
    +                '
    ' + + '

    ' + + 'Some items are not shown due to the current visibility ' + + 'settings. Use the checkboxes at the upper right of this ' + + 'page to change the visibility settings.' + + '

    ' + + '
    ' + ); + } else { + panelNode.append( + '
    ' + + '

    ' + + 'This class doesn\'t provide any methods, properties, ' + + 'attributes, or events.' + + '

    ' + + '
    ' + ); + } + } + + // Hide index sections without any visible items. + Y.all('.index-section').each(function (section) { + var items = 0, + visibleItems = 0; + + section.all('.index-item').each(function (itemNode) { + items += 1; + + if (itemNode.getComputedStyle('display') !== 'none') { + visibleItems += 1; + } + }); + + section.toggleClass('hidden', !visibleItems); + section.toggleClass('no-columns', visibleItems < 4); + }); +}; + +pjax.initClassTabView = function () { + if (!Y.all('#classdocs .api-class-tab').size()) { + return; + } + + if (classTabView) { + classTabView.destroy(); + selectedTab = null; + } + + classTabView = new Y.TabView({ + srcNode: '#classdocs', + + on: { + selectionChange: pjax.onTabSelectionChange + } + }); + + pjax.updateTabState(); + classTabView.render(); +}; + +pjax.initLineNumbers = function () { + var hash = win.location.hash.substring(1), + container = pjax.get('container'), + hasLines, node; + + // Add ids for each line number in the file source view. + container.all('.linenums>li').each(function (lineNode, index) { + lineNode.set('id', 'l' + (index + 1)); + lineNode.addClass('file-line'); + hasLines = true; + }); + + // Scroll to the desired line. + if (hasLines && /^l\d+$/.test(hash)) { + if ((node = container.getById(hash))) { + win.scroll(0, node.getY()); + } + } +}; + +pjax.initRoot = function () { + var terminators = /^(?:classes|files|modules)$/, + parts = pjax._getPathRoot().split('/'), + root = [], + i, len, part; + + for (i = 0, len = parts.length; i < len; i += 1) { + part = parts[i]; + + if (part.match(terminators)) { + // Makes sure the path will end with a "/". + root.push(''); + break; + } + + root.push(part); + } + + pjax.set('root', root.join('/')); +}; + +pjax.updateTabState = function (src) { + var hash = win.location.hash.substring(1), + defaultTab, node, tab, tabPanel; + + function scrollToNode() { + if (node.hasClass('protected')) { + Y.one('#api-show-protected').set('checked', true); + pjax.updateVisibility(); + } + + if (node.hasClass('private')) { + Y.one('#api-show-private').set('checked', true); + pjax.updateVisibility(); + } + + setTimeout(function () { + // For some reason, unless we re-get the node instance here, + // getY() always returns 0. + var node = Y.one('#classdocs').getById(hash); + win.scrollTo(0, node.getY() - 70); + }, 1); + } + + if (!classTabView) { + return; + } + + if (src === 'hashchange' && !hash) { + defaultTab = 'index'; + } else { + if (localStorage) { + defaultTab = localStorage.getItem('tab_' + pjax.getPath()) || + 'index'; + } else { + defaultTab = 'index'; + } + } + + if (hash && (node = Y.one('#classdocs').getById(hash))) { + if ((tabPanel = node.ancestor('.api-class-tabpanel', true))) { + if ((tab = Y.one('#classdocs .api-class-tab.' + tabPanel.get('id')))) { + if (classTabView.get('rendered')) { + Y.Widget.getByNode(tab).set('selected', 1); + } else { + tab.addClass('yui3-tab-selected'); + } + } + } + + // Scroll to the desired element if this is a hash URL. + if (node) { + if (classTabView.get('rendered')) { + scrollToNode(); + } else { + classTabView.once('renderedChange', scrollToNode); + } + } + } else { + tab = Y.one('#classdocs .api-class-tab.' + defaultTab); + + // When the `defaultTab` node isn't found, `localStorage` is stale. + if (!tab && defaultTab !== 'index') { + tab = Y.one('#classdocs .api-class-tab.index'); + } + + if (classTabView.get('rendered')) { + Y.Widget.getByNode(tab).set('selected', 1); + } else { + tab.addClass('yui3-tab-selected'); + } + } +}; + +pjax.updateVisibility = function () { + var container = pjax.get('container'); + + container.toggleClass('hide-inherited', + !Y.one('#api-show-inherited').get('checked')); + + container.toggleClass('show-deprecated', + Y.one('#api-show-deprecated').get('checked')); + + container.toggleClass('show-protected', + Y.one('#api-show-protected').get('checked')); + + container.toggleClass('show-private', + Y.one('#api-show-private').get('checked')); + + pjax.checkVisibility(); +}; + +// -- Route Handlers ----------------------------------------------------------- + +pjax.handleClasses = function (req, res, next) { + var status = res.ioResponse.status; + + // Handles success and local filesystem XHRs. + if (res.ioResponse.readyState === 4 && (!status || (status >= 200 && status < 300))) { + pjax.initClassTabView(); + } + + next(); +}; + +pjax.handleFiles = function (req, res, next) { + var status = res.ioResponse.status; + + // Handles success and local filesystem XHRs. + if (res.ioResponse.readyState === 4 && (!status || (status >= 200 && status < 300))) { + pjax.initLineNumbers(); + } + + next(); +}; + +// -- Event Handlers ----------------------------------------------------------- + +pjax.onNavigate = function (e) { + var hash = e.hash, + originTarget = e.originEvent && e.originEvent.target, + tab; + + if (hash) { + tab = originTarget && originTarget.ancestor('.yui3-tab', true); + + if (hash === win.location.hash) { + pjax.updateTabState('hashchange'); + } else if (!tab) { + win.location.hash = hash; + } + + e.preventDefault(); + return; + } + + // Only scroll to the top of the page when the URL doesn't have a hash. + this.set('scrollToTop', !e.url.match(/#.+$/)); + + bdNode.addClass('loading'); +}; + +pjax.onOptionClick = function (e) { + pjax.updateVisibility(); +}; + +pjax.onTabSelectionChange = function (e) { + var tab = e.newVal, + tabId = tab.get('contentBox').getAttribute('href').substring(1); + + selectedTab = tab; + + // If switching from a previous tab (i.e., this is not the default tab), + // replace the history entry with a hash URL that will cause this tab to + // be selected if the user navigates away and then returns using the back + // or forward buttons. + if (e.prevVal && localStorage) { + localStorage.setItem('tab_' + pjax.getPath(), tabId); + } + + pjax.checkVisibility(tab); +}; + +// -- Init --------------------------------------------------------------------- + +pjax.on('navigate', pjax.onNavigate); + +pjax.initRoot(); +pjax.upgrade(); +pjax.initClassTabView(); +pjax.initLineNumbers(); +pjax.updateVisibility(); + +Y.APIList.rootPath = pjax.get('root'); + +Y.one('#api-options').delegate('click', pjax.onOptionClick, 'input'); + +Y.on('hashchange', function (e) { + pjax.updateTabState('hashchange'); +}, win); + +}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/api-filter.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/api-filter.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/api-filter.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/api-filter.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,52 @@ +YUI.add('api-filter', function (Y) { + +Y.APIFilter = Y.Base.create('apiFilter', Y.Base, [Y.AutoCompleteBase], { + // -- Initializer ---------------------------------------------------------- + initializer: function () { + this._bindUIACBase(); + this._syncUIACBase(); + }, + getDisplayName: function(name) { + + Y.each(Y.YUIDoc.meta.allModules, function(i) { + if (i.name === name && i.displayName) { + name = i.displayName; + } + }); + + return name; + } + +}, { + // -- Attributes ----------------------------------------------------------- + ATTRS: { + resultHighlighter: { + value: 'phraseMatch' + }, + + // May be set to "classes" or "modules". + queryType: { + value: 'classes' + }, + + source: { + valueFn: function() { + var self = this; + return function(q) { + var data = Y.YUIDoc.meta[self.get('queryType')], + out = []; + Y.each(data, function(v) { + if (v.toLowerCase().indexOf(q.toLowerCase()) > -1) { + out.push(v); + } + }); + return out; + }; + } + } + } +}); + +}, '3.4.0', {requires: [ + 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources' +]}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/api-list.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/api-list.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/api-list.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/api-list.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,251 @@ +YUI.add('api-list', function (Y) { + +var Lang = Y.Lang, + YArray = Y.Array, + + APIList = Y.namespace('APIList'), + + classesNode = Y.one('#api-classes'), + inputNode = Y.one('#api-filter'), + modulesNode = Y.one('#api-modules'), + tabviewNode = Y.one('#api-tabview'), + + tabs = APIList.tabs = {}, + + filter = APIList.filter = new Y.APIFilter({ + inputNode : inputNode, + maxResults: 1000, + + on: { + results: onFilterResults + } + }), + + search = APIList.search = new Y.APISearch({ + inputNode : inputNode, + maxResults: 100, + + on: { + clear : onSearchClear, + results: onSearchResults + } + }), + + tabview = APIList.tabview = new Y.TabView({ + srcNode : tabviewNode, + panelNode: '#api-tabview-panel', + render : true, + + on: { + selectionChange: onTabSelectionChange + } + }), + + focusManager = APIList.focusManager = tabviewNode.plug(Y.Plugin.NodeFocusManager, { + circular : true, + descendants: '#api-filter, .yui3-tab-panel-selected .api-list-item a, .yui3-tab-panel-selected .result a', + keys : {next: 'down:40', previous: 'down:38'} + }).focusManager, + + LIST_ITEM_TEMPLATE = + '
  • ' + + '{displayName}' + + '
  • '; + +// -- Init --------------------------------------------------------------------- + +// Duckpunch FocusManager's key event handling to prevent it from handling key +// events when a modifier is pressed. +Y.before(function (e, activeDescendant) { + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { + return new Y.Do.Prevent(); + } +}, focusManager, '_focusPrevious', focusManager); + +Y.before(function (e, activeDescendant) { + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { + return new Y.Do.Prevent(); + } +}, focusManager, '_focusNext', focusManager); + +// Create a mapping of tabs in the tabview so we can refer to them easily later. +tabview.each(function (tab, index) { + var name = tab.get('label').toLowerCase(); + + tabs[name] = { + index: index, + name : name, + tab : tab + }; +}); + +// Switch tabs on Ctrl/Cmd-Left/Right arrows. +tabviewNode.on('key', onTabSwitchKey, 'down:37,39'); + +// Focus the filter input when the `/` key is pressed. +Y.one(Y.config.doc).on('key', onSearchKey, 'down:83'); + +// Keep the Focus Manager up to date. +inputNode.on('focus', function () { + focusManager.set('activeDescendant', inputNode); +}); + +// Update all tabview links to resolved URLs. +tabview.get('panelNode').all('a').each(function (link) { + link.setAttribute('href', link.get('href')); +}); + +// -- Private Functions -------------------------------------------------------- +function getFilterResultNode() { + return filter.get('queryType') === 'classes' ? classesNode : modulesNode; +} + +// -- Event Handlers ----------------------------------------------------------- +function onFilterResults(e) { + var frag = Y.one(Y.config.doc.createDocumentFragment()), + resultNode = getFilterResultNode(), + typePlural = filter.get('queryType'), + typeSingular = typePlural === 'classes' ? 'class' : 'module'; + + if (e.results.length) { + YArray.each(e.results, function (result) { + frag.append(Lang.sub(LIST_ITEM_TEMPLATE, { + rootPath : APIList.rootPath, + displayName : filter.getDisplayName(result.highlighted), + name : result.text, + typePlural : typePlural, + typeSingular: typeSingular + })); + }); + } else { + frag.append( + '
  • ' + + 'No ' + typePlural + ' found.' + + '
  • ' + ); + } + + resultNode.empty(true); + resultNode.append(frag); + + focusManager.refresh(); +} + +function onSearchClear(e) { + + focusManager.refresh(); +} + +function onSearchKey(e) { + var target = e.target; + + if (target.test('input,select,textarea') + || target.get('isContentEditable')) { + return; + } + + e.preventDefault(); + + inputNode.focus(); + focusManager.refresh(); +} + +function onSearchResults(e) { + var frag = Y.one(Y.config.doc.createDocumentFragment()); + + if (e.results.length) { + YArray.each(e.results, function (result) { + frag.append(result.display); + }); + } else { + frag.append( + '
  • ' + + 'No results found. Maybe you\'ll have better luck with a ' + + 'different query?' + + '
  • ' + ); + } + + + focusManager.refresh(); +} + +function onTabSelectionChange(e) { + var tab = e.newVal, + name = tab.get('label').toLowerCase(); + + tabs.selected = { + index: tab.get('index'), + name : name, + tab : tab + }; + + switch (name) { + case 'classes': // fallthru + case 'modules': + filter.setAttrs({ + minQueryLength: 0, + queryType : name + }); + + search.set('minQueryLength', -1); + + // Only send a request if this isn't the initially-selected tab. + if (e.prevVal) { + filter.sendRequest(filter.get('value')); + } + break; + + case 'everything': + filter.set('minQueryLength', -1); + search.set('minQueryLength', 1); + + if (search.get('value')) { + search.sendRequest(search.get('value')); + } else { + inputNode.focus(); + } + break; + + default: + // WTF? We shouldn't be here! + filter.set('minQueryLength', -1); + search.set('minQueryLength', -1); + } + + if (focusManager) { + setTimeout(function () { + focusManager.refresh(); + }, 1); + } +} + +function onTabSwitchKey(e) { + var currentTabIndex = tabs.selected.index; + + if (!(e.ctrlKey || e.metaKey)) { + return; + } + + e.preventDefault(); + + switch (e.keyCode) { + case 37: // left arrow + if (currentTabIndex > 0) { + tabview.selectChild(currentTabIndex - 1); + inputNode.focus(); + } + break; + + case 39: // right arrow + if (currentTabIndex < (Y.Object.size(tabs) - 2)) { + tabview.selectChild(currentTabIndex + 1); + inputNode.focus(); + } + break; + } +} + +}, '3.4.0', {requires: [ + 'api-filter', 'api-search', 'event-key', 'node-focusmanager', 'tabview' +]}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/api-search.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/api-search.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/api-search.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/api-search.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,98 @@ +YUI.add('api-search', function (Y) { + +var Lang = Y.Lang, + Node = Y.Node, + YArray = Y.Array; + +Y.APISearch = Y.Base.create('apiSearch', Y.Base, [Y.AutoCompleteBase], { + // -- Public Properties ---------------------------------------------------- + RESULT_TEMPLATE: + '
  • ' + + '' + + '

    {name}

    ' + + '{resultType}' + + '
    {description}
    ' + + '{class}' + + '
    ' + + '
  • ', + + // -- Initializer ---------------------------------------------------------- + initializer: function () { + this._bindUIACBase(); + this._syncUIACBase(); + }, + + // -- Protected Methods ---------------------------------------------------- + _apiResultFilter: function (query, results) { + // Filter components out of the results. + return YArray.filter(results, function (result) { + return result.raw.resultType === 'component' ? false : result; + }); + }, + + _apiResultFormatter: function (query, results) { + return YArray.map(results, function (result) { + var raw = Y.merge(result.raw), // create a copy + desc = raw.description || ''; + + // Convert description to text and truncate it if necessary. + desc = Node.create('
    ' + desc + '
    ').get('text'); + + if (desc.length > 65) { + desc = Y.Escape.html(desc.substr(0, 65)) + ' …'; + } else { + desc = Y.Escape.html(desc); + } + + raw['class'] || (raw['class'] = ''); + raw.description = desc; + + // Use the highlighted result name. + raw.name = result.highlighted; + + return Lang.sub(this.RESULT_TEMPLATE, raw); + }, this); + }, + + _apiTextLocator: function (result) { + return result.displayName || result.name; + } +}, { + // -- Attributes ----------------------------------------------------------- + ATTRS: { + resultFormatter: { + valueFn: function () { + return this._apiResultFormatter; + } + }, + + resultFilters: { + valueFn: function () { + return this._apiResultFilter; + } + }, + + resultHighlighter: { + value: 'phraseMatch' + }, + + resultListLocator: { + value: 'data.results' + }, + + resultTextLocator: { + valueFn: function () { + return this._apiTextLocator; + } + }, + + source: { + value: '/api/v1/search?q={query}&count={maxResults}' + } + } +}); + +}, '3.4.0', {requires: [ + 'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources', + 'escape' +]}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/tabs.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/tabs.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/tabs.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/tabs.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,67 @@ +/* + * Copyright 2011 Yahoo! Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Yahoo! Inc. nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + + +YUI({ + insertBefore: 'site_styles' +}).use('tabview', function(Y) { + var classdocs = Y.one('#classdocs'), + tabviewIndexTable = {}; + if (classdocs) { + if (classdocs.all('li').size()) { + var tabview = new Y.TabView({ srcNode: classdocs }); + tabview.render(); + classdocs.all('li a').each(function (item, index) { + var hash = item.get(['hash']); + type = hash.substring(1); + if (!tabviewIndexTable[type]) { + tabviewIndexTable[type] = index; + } + }) + Y.all('.sidebox.on-page').each(function (item, index) { + var children = item.all('li a'); + children.each(function (cItem, cIndex) { + return function () { + var handleClick = function (e) { + var node = Y.one(this), + hash = node.get(['hash']), + hashValue = hash.substring(1).split('_'), + type = hashValue.shift(), + ogKey = hashValue.join('_'); // in case the hash had other underscores + if (tabviewIndexTable[type] > -1 && tabviewIndexTable[type] !== currentTab) { + currentTab = tabviewIndexTable[type]; + tabview.selectChild(tabviewIndexTable[type]); + } + } + Y.on('click', handleClick, cItem) + }() + }) + }); + } + } +}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/yui-prettify.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/yui-prettify.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/yui-prettify.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/js/yui-prettify.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,44 @@ +/* + * Copyright 2011 Yahoo! Inc. + * All rights reserved. + *- + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Yahoo! Inc. nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + *- + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +YUI().use('node', function(Y) { + var code = Y.all('.prettyprint.linenums'); + if (code.size()) { + code.each(function(c) { + var lis = c.all('ol li'), + l = 1; + lis.each(function(n) { + n.prepend(''); + l++; + }); + }); + var h = location.hash; + location.hash = ''; + h = h.replace('LINE_', 'LINENUM_'); + location.hash = h; + } +}); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/CHANGES.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/CHANGES.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/CHANGES.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/CHANGES.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,130 @@ + + + + Change Log + + + README + +

    Known Issues

    +
      +
    • Perl formatting is really crappy. Partly because the author is lazy and + partly because Perl is + hard to parse. +
    • On some browsers, <code> elements with newlines in the text + which use CSS to specify white-space:pre will have the newlines + improperly stripped if the element is not attached to the document at the time + the stripping is done. Also, on IE 6, all newlines will be stripped from + <code> elements because of the way IE6 produces + innerHTML. Workaround: use <pre> for code with + newlines. +
    + +

    Change Log

    +

    29 March 2007

    +
      +
    • Added tests for PHP support + to address + issue 3. +
    • Fixed + bug: prettyPrintOne was not halting. This was not + reachable through the normal entry point. +
    • Fixed + bug: recursing into a script block or PHP tag that was not properly + closed would not silently drop the content. + (test) +
    • Fixed + bug: was eating tabs + (test) +
    • Fixed entity handling so that the caveat +
      +

      Caveats: please properly escape less-thans. x&lt;y + instead of x<y, and use " instead of + &quot; for string delimiters.

      +
      + is no longer applicable. +
    • Added noisefree's C# + patch +
    • Added a distribution that has comments and + whitespace removed to reduce download size from 45.5kB to 12.8kB. +
    +

    4 Jul 2008

    +
      +
    • Added language specific formatters that are triggered by the presence + of a lang-<language-file-extension>
    • +
    • Fixed bug: python handling of '''string''' +
    • Fixed bug: / in regex [charsets] should not end regex +
    +

    5 Jul 2008

    +
      +
    • Defined language extensions for Lisp and Lua +
    +

    14 Jul 2008

    +
      +
    • Language handlers for F#, OCAML, SQL +
    • Support for nocode spans to allow embedding of line + numbers and code annotations which should not be styled or otherwise + affect the tokenization of prettified code. + See the issue 22 + testcase. +
    +

    6 Jan 2009

    +
      +
    • Language handlers for Visual Basic, Haskell, CSS, and WikiText
    • +
    • Added .mxml extension to the markup style handler for + Flex MXML files. See + issue 37. +
    • Added .m extension to the C style handler so that Objective + C source files properly highlight. See + issue 58. +
    • Changed HTML lexer to use the same embedded source mechanism as the + wiki language handler, and changed to use the registered + CSS handler for STYLE element content. +
    +

    21 May 2009

    +
      +
    • Rewrote to improve performance on large files. + See benchmarks.
    • +
    • Fixed bugs with highlighting of Haskell line comments, Lisp + number literals, Lua strings, C preprocessor directives, + newlines in Wiki code on Windows, and newlines in IE6.
    • +
    +

    14 August 2009

    +
      +
    • Fixed prettifying of <code> blocks with embedded newlines. +
    +

    3 October 2009

    +
      +
    • Fixed prettifying of XML/HTML tags that contain uppercase letters. +
    +

    19 July 2010

    +
      +
    • Added support for line numbers. Bug + 22
    • +
    • Added YAML support. Bug + 123
    • +
    • Added VHDL support courtesy Le Poussin.
    • +
    • IE performance improvements. Bug + 102 courtesy jacobly.
    • +
    • A variety of markup formatting fixes courtesy smain and thezbyg.
    • +
    • Fixed copy and paste in IE[678]. +
    • Changed output to use &#160; instead of + &nbsp; so that the output works when embedded in XML. + Bug + 108.
    • +
    + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/COPYING unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/COPYING --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/COPYING 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/COPYING 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/prettify-min.css unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/prettify-min.css --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/prettify-min.css 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/prettify-min.css 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1 @@ +.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} \ No newline at end of file diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/prettify-min.js unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/prettify-min.js --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/prettify-min.js 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/prettify-min.js 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,28 @@ +/* + * Copyright 2011 Yahoo! Inc. + * All rights reserved. + *- + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Yahoo! Inc. nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + *- + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +window.PR_SHOULD_USE_CONTINUATION=true;var prettyPrintOne;var prettyPrint;(function(){var O=window;var j=["break,continue,do,else,for,if,return,while"];var v=[j,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var q=[v,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var m=[q,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var y=[q,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var T=[y,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"];var s="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes";var x=[q,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var t="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var J=[j,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var g=[j,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var I=[j,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var B=[m,T,x,t+J,g,I];var f=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/;var D="str";var A="kwd";var k="com";var Q="typ";var H="lit";var M="pun";var G="pln";var n="tag";var F="dec";var K="src";var R="atn";var o="atv";var P="nocode";var N="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function l(ab){var af=0;var U=false;var ae=false;for(var X=0,W=ab.length;X122)){if(!(am<65||ai>90)){ah.push([Math.max(65,ai)|32,Math.min(am,90)|32])}if(!(am<97||ai>122)){ah.push([Math.max(97,ai)&~32,Math.min(am,122)&~32])}}}}ah.sort(function(aw,av){return(aw[0]-av[0])||(av[1]-aw[1])});var ak=[];var aq=[];for(var at=0;atau[0]){if(au[1]+1>au[0]){ao.push("-")}ao.push(V(au[1]))}}ao.push("]");return ao.join("")}function Y(an){var al=an.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var aj=al.length;var ap=[];for(var am=0,ao=0;am=2&&ak==="["){al[am]=Z(ai)}else{if(ak!=="\\"){al[am]=ai.replace(/[a-zA-Z]/g,function(aq){var ar=aq.charCodeAt(0);return"["+String.fromCharCode(ar&~32,ar|32)+"]"})}}}}return al.join("")}var ac=[];for(var X=0,W=ab.length;X=0;){U[ae.charAt(ag)]=aa}}var ah=aa[1];var ac=""+ah;if(!ai.hasOwnProperty(ac)){aj.push(ah);ai[ac]=null}}aj.push(/[\0-\uffff]/);X=l(aj)})();var Z=V.length;var Y=function(aj){var ab=aj.sourceCode,aa=aj.basePos;var af=[aa,G];var ah=0;var ap=ab.match(X)||[];var al={};for(var ag=0,at=ap.length;ag=5&&"lang-"===ar.substring(0,5);if(ao&&!(ak&&typeof ak[1]==="string")){ao=false;ar=K}if(!ao){al[ai]=ar}}var ad=ah;ah+=ai.length;if(!ao){af.push(aa+ad,ar)}else{var an=ak[1];var am=ai.indexOf(an);var ae=am+an.length;if(ak[2]){ae=ai.length-ak[2].length;am=ae-an.length}var au=ar.substring(5);C(aa+ad,ai.substring(0,am),Y,af);C(aa+ad+am,an,r(au,an),af);C(aa+ad+ae,ai.substring(ae),Y,af)}}aj.decorations=af};return Y}function i(V){var Y=[],U=[];if(V.tripleQuotedStrings){Y.push([D,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(V.multiLineStrings){Y.push([D,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{Y.push([D,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(V.verbatimStrings){U.push([D,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var ab=V.hashComments;if(ab){if(V.cStyleComments){if(ab>1){Y.push([k,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{Y.push([k,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}U.push([D,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])}else{Y.push([k,/^#[^\r\n]*/,null,"#"])}}if(V.cStyleComments){U.push([k,/^\/\/[^\r\n]*/,null]);U.push([k,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(V.regexLiterals){var aa=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");U.push(["lang-regex",new RegExp("^"+N+"("+aa+")")])}var X=V.types;if(X){U.push([Q,X])}var W=(""+V.keywords).replace(/^ | $/g,"");if(W.length){U.push([A,new RegExp("^(?:"+W.replace(/[\s,]+/g,"|")+")\\b"),null])}Y.push([G,/^\s+/,null," \r\n\t\xA0"]);var Z=/^.[^\s\w\.$@\'\"\`\/\\]*/;U.push([H,/^@[a-z_$][a-z_$@0-9]*/i,null],[Q,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[G,/^[a-z_$][a-z_$@0-9]*/i,null],[H,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[G,/^\\[\s\S]?/,null],[M,Z,null]);return h(Y,U)}var L=i({keywords:B,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function S(W,ah,aa){var V=/(?:^|\s)nocode(?:\s|$)/;var ac=/\r\n?|\n/;var ad=W.ownerDocument;var ag=ad.createElement("li");while(W.firstChild){ag.appendChild(W.firstChild)}var X=[ag];function af(am){switch(am.nodeType){case 1:if(V.test(am.className)){break}if("br"===am.nodeName){ae(am);if(am.parentNode){am.parentNode.removeChild(am)}}else{for(var ao=am.firstChild;ao;ao=ao.nextSibling){af(ao)}}break;case 3:case 4:if(aa){var an=am.nodeValue;var ak=an.match(ac);if(ak){var aj=an.substring(0,ak.index);am.nodeValue=aj;var ai=an.substring(ak.index+ak[0].length);if(ai){var al=am.parentNode;al.insertBefore(ad.createTextNode(ai),am.nextSibling)}ae(am);if(!aj){am.parentNode.removeChild(am)}}}break}}function ae(al){while(!al.nextSibling){al=al.parentNode;if(!al){return}}function aj(am,at){var ar=at?am.cloneNode(false):am;var ap=am.parentNode;if(ap){var aq=aj(ap,1);var ao=am.nextSibling;aq.appendChild(ar);for(var an=ao;an;an=ao){ao=an.nextSibling;aq.appendChild(an)}}return ar}var ai=aj(al.nextSibling,0);for(var ak;(ak=ai.parentNode)&&ak.nodeType===1;){ai=ak}X.push(ai)}for(var Z=0;Z=U){aj+=2}if(Y>=ar){ac+=2}}}finally{if(au){au.style.display=ak}}}var u={};function d(W,X){for(var U=X.length;--U>=0;){var V=X[U];if(!u.hasOwnProperty(V)){u[V]=W}else{if(O.console){console.warn("cannot override language handler %s",V)}}}}function r(V,U){if(!(V&&u.hasOwnProperty(V))){V=/^\s*]*(?:>|$)/],[k,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[M,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);d(h([[G,/^[\s]+/,null," \t\r\n"],[o,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[n,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[R,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[M,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);d(h([],[[o,/^[\s\S]+/]]),["uq.val"]);d(i({keywords:m,hashComments:true,cStyleComments:true,types:f}),["c","cc","cpp","cxx","cyc","m"]);d(i({keywords:"null,true,false"}),["json"]);d(i({keywords:T,hashComments:true,cStyleComments:true,verbatimStrings:true,types:f}),["cs"]);d(i({keywords:y,cStyleComments:true}),["java"]);d(i({keywords:I,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);d(i({keywords:J,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);d(i({keywords:t,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);d(i({keywords:g,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);d(i({keywords:x,cStyleComments:true,regexLiterals:true}),["js"]);d(i({keywords:s,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);d(h([],[[D,/^[\s\S]+/]]),["regex"]);function e(X){var W=X.langExtension;try{var U=b(X.sourceNode,X.pre);var V=U.sourceCode;X.sourceCode=V;X.spans=U.spans;X.basePos=0;r(W,V)(X);E(X)}catch(Y){if(O.console){console.log(Y&&Y.stack?Y.stack:Y)}}}function z(Y,X,W){var U=document.createElement("pre");U.innerHTML=Y;if(W){S(U,W,true)}var V={langExtension:X,numberLines:W,sourceNode:U,pre:1};e(V);return U.innerHTML}function c(aj){function ab(al){return document.getElementsByTagName(al)}var ah=[ab("pre"),ab("code"),ab("xmp")];var V=[];for(var ae=0;ae]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/README.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/README.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/README.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/assets/vendor/prettify/README.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,203 @@ + + + + + Javascript code prettifier + + + + + + + + + + Languages : CH +

    Javascript code prettifier

    + +

    Setup

    +
      +
    1. Download a distribution +
    2. Include the script and stylesheets in your document + (you will need to make sure the css and js file are on your server, and + adjust the paths in the script and link tag) +
      +<link href="prettify.css" type="text/css" rel="stylesheet" />
      +<script type="text/javascript" src="prettify.js"></script>
      +
    3. Add onload="prettyPrint()" to your + document's body tag. +
    4. Modify the stylesheet to get the coloring you prefer
    5. +
    + +

    Usage

    +

    Put code snippets in + <pre class="prettyprint">...</pre> + or <code class="prettyprint">...</code> + and it will automatically be pretty printed. + + + + +
    The original + Prettier +
    class Voila {
    +public:
    +  // Voila
    +  static const string VOILA = "Voila";
    +
    +  // will not interfere with embedded tags.
    +}
    + +
    class Voila {
    +public:
    +  // Voila
    +  static const string VOILA = "Voila";
    +
    +  // will not interfere with embedded tags.
    +}
    +
    + +

    FAQ

    +

    Which languages does it work for?

    +

    The comments in prettify.js are authoritative but the lexer + should work on a number of languages including C and friends, + Java, Python, Bash, SQL, HTML, XML, CSS, Javascript, and Makefiles. + It works passably on Ruby, PHP, VB, and Awk and a decent subset of Perl + and Ruby, but, because of commenting conventions, doesn't work on + Smalltalk, or CAML-like languages.

    + +

    LISPy languages are supported via an extension: + lang-lisp.js.

    +

    And similarly for + CSS, + Haskell, + Lua, + OCAML, SML, F#, + Visual Basic, + SQL, + Protocol Buffers, and + WikiText.. + +

    If you'd like to add an extension for your favorite language, please + look at src/lang-lisp.js and file an + issue including your language extension, and a testcase.

    + +

    How do I specify which language my code is in?

    +

    You don't need to specify the language since prettyprint() + will guess. You can specify a language by specifying the language extension + along with the prettyprint class like so:

    +
    <pre class="prettyprint lang-html">
    +  The lang-* class specifies the language file extensions.
    +  File extensions supported by default include
    +    "bsh", "c", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html",
    +    "java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh",
    +    "xhtml", "xml", "xsl".
    +</pre>
    + +

    It doesn't work on <obfuscated code sample>?

    +

    Yes. Prettifying obfuscated code is like putting lipstick on a pig + — i.e. outside the scope of this tool.

    + +

    Which browsers does it work with?

    +

    It's been tested with IE 6, Firefox 1.5 & 2, and Safari 2.0.4. + Look at the test page to see if it + works in your browser.

    + +

    What's changed?

    +

    See the change log

    + +

    Why doesn't Prettyprinting of strings work on WordPress?

    +

    Apparently wordpress does "smart quoting" which changes close quotes. + This causes end quotes to not match up with open quotes. +

    This breaks prettifying as well as copying and pasting of code samples. + See + WordPress's help center for info on how to stop smart quoting of code + snippets.

    + +

    How do I put line numbers in my code?

    +

    You can use the linenums class to turn on line + numbering. If your code doesn't start at line number 1, you can + add a colon and a line number to the end of that class as in + linenums:52. + +

    For example +

    <pre class="prettyprint linenums:4"
    +>// This is line 4.
    +foo();
    +bar();
    +baz();
    +boo();
    +far();
    +faz();
    +<pre>
    + produces +
    // This is line 4.
    +foo();
    +bar();
    +baz();
    +boo();
    +far();
    +faz();
    +
    + +

    How do I prevent a portion of markup from being marked as code?

    +

    You can use the nocode class to identify a span of markup + that is not code. +

    <pre class=prettyprint>
    +int x = foo();  /* This is a comment  <span class="nocode">This is not code</span>
    +  Continuation of comment */
    +int y = bar();
    +</pre>
    +produces +
    +int x = foo();  /* This is a comment  This is not code
    +  Continuation of comment */
    +int y = bar();
    +
    + +

    For a more complete example see the issue22 + testcase.

    + +

    I get an error message "a is not a function" or "opt_whenDone is not a function"

    +

    If you are calling prettyPrint via an event handler, wrap it in a function. + Instead of doing +

    + addEventListener('load', prettyPrint, false); +
    + wrap it in a closure like +
    + addEventListener('load', function (event) { prettyPrint() }, false); +
    + so that the browser does not pass an event object to prettyPrint which + will confuse it. + +


    + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/classes/RuntimeApi.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/classes/RuntimeApi.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/classes/RuntimeApi.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/classes/RuntimeApi.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,372 @@ + + + + + RuntimeApi - Runtime JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    Class RuntimeApi

    +Class defined in: runtime-api.js:196 +

    The RuntimeApi object

    +
    + + +
    + RuntimeApi( ) +
    + + + runtime-api.js:196 +
    + +
    Example
    +
      var api = external.getUnityObject('1.0');
    +      api.RuntimeApi.getApplication(function(application) {
    +        console.log('Application name: ' + application.getApplicationName());
    +      });
    + +
    + +
    + +
    +
    + +
    + getApplication( callback ) +
    + + + runtime-api.js:245 +
    +

    Creates an Application object.

    + + Parameters: +
      +
    • + callback <Function (Application)> + +
    • +
    +
    + +
    + String getApplicationName( ) +
    + + + runtime-api.js:53 +
    +

    Retrieves the application name.

    + +
    Returns: <String>

    application name

    +
    +
    + +
    + String getApplicationWritableLocation( ) +
    + + + runtime-api.js:75 +
    +

    Retrieves the fileystem location where the application is allowed to write its data in.

    + +
    Returns: <String>

    application writable location path

    +
    +
    + +
    + String getInputMethodName( ) +
    + + + runtime-api.js:162 +
    +

    Retrieves the current input method's name. The name varies depending on the platform + e.g. maliit can be part of the name for a maliit based Virtual Keyboard (possibly mangled + with e.g. 'phablet'), when a keyboard is there the name can be empty, ...

    + +
    Returns: <String>

    current input method name

    +
    +
    + +
    + Object getPlatformInfos( ) +
    + + + runtime-api.js:85 +
    +

    Retrieves current platform information.

    + +
    Returns: <Object>

    platform information as a dictionary with the following keys:

    +
      +
    • name: the platform name
    • +
    +
    +
    + +
    + ScreenOrientation getScreenOrientation( ) +
    + + + runtime-api.js:129 +
    +

    Retrieves the current screen orientation.

    + +
    Returns: <ScreenOrientation>

    current screen orientation.

    +
    +
    + +
    + onAboutToQuit( callback ) +
    + + + runtime-api.js:96 +
    +

    Sets up a callback that is to be called when the application is about to quit.

    + + Parameters: +
      +
    • + callback <Function()> +

      Function to be called when the application is about to quit.

      + +
    • +
    +
    + +
    + onActivated( callback ) +
    + + + runtime-api.js:118 +
    +

    Sets up a callback that is to be called when the application has been activated (from background).

    + + Parameters: +
      +
    • + callback <Function()> +

      Function to be called when the application has been activated.

      + +
    • +
    +
    + +
    + onApplicationNameChanged( callback ) +
    + + + runtime-api.js:63 +
    +

    Sets up a callback that is to be called when the application's name changed.

    + + Parameters: +
      +
    • + callback <Function(String)> +

      Function to be called when the application's name has changed.

      + +
    • +
    +
    + +
    + onDeactivated( callback ) +
    + + + runtime-api.js:107 +
    +

    Sets up a callback that is to be called when the application has been deactivated (background).

    + + Parameters: +
      +
    • + callback <Function()> +

      Function to be called when the application has been deactivated.

      + +
    • +
    +
    + +
    + onInputMethodVisibilityChanged( callback ) +
    + + + runtime-api.js:174 +
    +

    Sets up a callback that is to be called when the On Screen Keyboard visibility has changed.

    + + Parameters: +
      +
    • + callback <Function(Bool)> +

      Function to be called when the On Screen Keyboard visibility has changed (received the visibility as an arg).

      + +
    • +
    +
    + +
    + onScreenOrientationChanged( callback ) +
    + + + runtime-api.js:139 +
    +

    Sets up a callback that is to be called when the application's screen has changed its orientation.

    + + Parameters: +
      +
    • + callback <Function(ScreenOrientation)> +

      Function to be called when the application's screen orientation has changed.

      + +
    • +
    +
    + +
    + setupUriHandler( callback ) +
    + + + runtime-api.js:151 +
    +

    Sets up a URI handler. The application can be sent URIs to open.

    + + Parameters: +
      +
    • + callback <Function(String)> +

      Function to be called with the current list of uris to open

      + +
    • +
    +
    +
    +
    + +
    + ScreenOrientation <Object> (static)
    + runtime-api.js:209 +

    Enumeration of the available types of ScreenOrientation.

    +

    Values:

    +
    Landscape: The application screen is in landscape mode
    +                
    +                InvertedLandscape: The application screen is in inverted landscape mode
    +                
    +                Portrait: The application screen is in portrait mode
    +                
    +                InvertedPortrait: The application screen is in inverted portrait mode
    +                
    +                Unknown: The application screen is in an unknown mode
    + +
    Example
    +
    var api = external.getUnityObject('1.0');
    +                var orientation = api.RuntimeApi.ScreenOrientation;
    +                // use orientation.Landscape or orientation.Portrait
    + +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/data.json unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/data.json --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/data.json 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/data.json 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,289 @@ +{ + "project": { + "name": "Runtime JS API", + "description": "Ubuntu App Platform Runtime JavaScript API docs", + "version": "0.1" + }, + "files": { + "runtime-api.js": { + "name": "runtime-api.js", + "modules": { + "RuntimeApi": 1 + }, + "classes": { + "RuntimeApi": 1 + }, + "fors": {}, + "namespaces": {} + } + }, + "modules": { + "RuntimeApi": { + "name": "RuntimeApi", + "submodules": {}, + "classes": { + "RuntimeApi": 1 + }, + "fors": {}, + "namespaces": {}, + "tag": "module", + "file": "runtime-api.js", + "line": 196, + "description": "RuntimeApi gives access to the application runtime information and management." + } + }, + "classes": { + "RuntimeApi": { + "name": "RuntimeApi", + "shortname": "RuntimeApi", + "classitems": [], + "plugins": [], + "extensions": [], + "plugin_for": [], + "extension_for": [], + "module": "RuntimeApi", + "namespace": "", + "file": "runtime-api.js", + "line": 196, + "description": "The RuntimeApi object", + "is_constructor": 1, + "example": [ + "\n\n var api = external.getUnityObject('1.0');\n api.RuntimeApi.getApplication(function(application) {\n console.log('Application name: ' + application.getApplicationName());\n });" + ] + } + }, + "classitems": [ + { + "file": "runtime-api.js", + "line": 42, + "description": "Internal", + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 53, + "description": "Retrieves the application name.", + "itemtype": "method", + "name": "getApplicationName", + "return": { + "description": "application name", + "type": "String" + }, + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 63, + "description": "Sets up a callback that is to be called when the application's name changed.", + "itemtype": "method", + "name": "onApplicationNameChanged", + "params": [ + { + "name": "callback", + "description": "Function to be called when the application's name has changed.", + "type": "Function(String)" + } + ], + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 75, + "description": "Retrieves the fileystem location where the application is allowed to write its data in.", + "itemtype": "method", + "name": "getApplicationWritableLocation", + "return": { + "description": "application writable location path", + "type": "String" + }, + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 85, + "description": "Retrieves current platform information.", + "itemtype": "method", + "name": "getPlatformInfos", + "return": { + "description": "platform information as a dictionary with the following keys:\n - name: the platform name", + "type": "Object" + }, + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 96, + "description": "Sets up a callback that is to be called when the application is about to quit.", + "itemtype": "method", + "name": "onAboutToQuit", + "params": [ + { + "name": "callback", + "description": "Function to be called when the application is about to quit.", + "type": "Function()" + } + ], + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 107, + "description": "Sets up a callback that is to be called when the application has been deactivated (background).", + "itemtype": "method", + "name": "onDeactivated", + "params": [ + { + "name": "callback", + "description": "Function to be called when the application has been deactivated.", + "type": "Function()" + } + ], + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 118, + "description": "Sets up a callback that is to be called when the application has been activated (from background).", + "itemtype": "method", + "name": "onActivated", + "params": [ + { + "name": "callback", + "description": "Function to be called when the application has been activated.", + "type": "Function()" + } + ], + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 129, + "description": "Retrieves the current screen orientation.", + "itemtype": "method", + "name": "getScreenOrientation", + "return": { + "description": "current screen orientation.", + "type": "ScreenOrientation" + }, + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 139, + "description": "Sets up a callback that is to be called when the application's screen has changed its orientation.", + "itemtype": "method", + "name": "onScreenOrientationChanged", + "params": [ + { + "name": "callback", + "description": "Function to be called when the application's screen orientation has changed.", + "type": "Function(ScreenOrientation)" + } + ], + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 151, + "description": "Sets up a URI handler. The application can be sent URIs to open.", + "itemtype": "method", + "name": "setupUriHandler", + "params": [ + { + "name": "callback", + "description": "Function to be called with the current list of uris to open", + "type": "Function([String])" + } + ], + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 162, + "description": "Retrieves the current input method's name. The name varies depending on the platform\ne.g. maliit can be part of the name for a maliit based Virtual Keyboard (possibly mangled\nwith e.g. 'phablet'), when a keyboard is there the name can be empty, ...", + "itemtype": "method", + "name": "getInputMethodName", + "return": { + "description": "current input method name", + "type": "String" + }, + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 174, + "description": "Sets up a callback that is to be called when the On Screen Keyboard visibility has changed.", + "itemtype": "method", + "name": "onInputMethodVisibilityChanged", + "params": [ + { + "name": "callback", + "description": "Function to be called when the On Screen Keyboard visibility has changed (received the visibility as an arg).", + "type": "Function(Bool)" + } + ], + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 209, + "description": "Enumeration of the available types of ScreenOrientation.\n\n Values:\n\n Landscape: The application screen is in landscape mode\n\n InvertedLandscape: The application screen is in inverted landscape mode\n\n Portrait: The application screen is in portrait mode\n\n InvertedPortrait: The application screen is in inverted portrait mode\n\n Unknown: The application screen is in an unknown mode", + "static": 1, + "itemtype": "property", + "name": "ScreenOrientation", + "type": "Object", + "example": [ + "\n\n var api = external.getUnityObject('1.0');\n var orientation = api.RuntimeApi.ScreenOrientation;\n // use orientation.Landscape or orientation.Portrait" + ], + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 245, + "description": "Creates an Application object.", + "itemtype": "method", + "name": "getApplication", + "params": [ + { + "name": "callback", + "description": "", + "type": "Function (Application)" + } + ], + "class": "RuntimeApi", + "module": "RuntimeApi" + }, + { + "file": "runtime-api.js", + "line": 257, + "access": "private", + "tagname": "", + "class": "RuntimeApi", + "module": "RuntimeApi" + } + ], + "warnings": [ + { + "message": "Missing item type\nInternal", + "line": " runtime-api.js:42" + }, + { + "message": "Missing item type", + "line": " runtime-api.js:257" + } + ] +} \ No newline at end of file diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/files/runtime-api.js.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/files/runtime-api.js.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/files/runtime-api.js.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/files/runtime-api.js.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,347 @@ + + + + + runtime-api.js - Runtime JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    runtime-api.js

    + +
    +/*
    + * Copyright 2014 Canonical Ltd.
    + *
    + * This file is part of unity-webapps-qml.
    + *
    + * unity-webapps-qml is free software; you can redistribute it and/or modify
    + * it under the terms of the GNU General Public License as published by
    + * the Free Software Foundation; version 3.
    + *
    + * unity-webapps-qml is distributed in the hope that it will be useful,
    + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    + * GNU General Public License for more details.
    + *
    + * You should have received a copy of the GNU General Public License
    + * along with this program.  If not, see <http://www.gnu.org/licenses/>.
    + */
    +
    +
    +/**
    + * RuntimeApi gives access to the application runtime information and management.
    +
    + * @module RuntimeApi
    + */
    +function createRuntimeApi(backendBridge) {
    +    var PLUGIN_URI = 'RuntimeApi';
    +
    +    function Application(id, content) {
    +        this._proxy = backendBridge.createRemoteObject(
    +            PLUGIN_URI, 'Application', id);
    +
    +        this._name = content.name;
    +        this._platform = content.platform;
    +        this._writableLocation = content.writableLocation;
    +        this._screenOrientation = content.screenOrientation;
    +        this._inputMethodName = content.inputMethodName;
    +
    +        this._setupPropertyListeners();
    +    };
    +    Application.prototype = {
    +
    +        /**
    +         * Internal
    +         */
    +        _setupPropertyListeners: function() {
    +            var self = this;
    +            this._proxy.call('onApplicationNameChanged'
    +                               , [function(name) {self._name = name;}]);
    +            this._proxy.call('onScreenOrientationChanged'
    +                               , [function(orientation) {self._screenOrientation = orientation;}]);
    +        },
    +
    +        /**
    +         * Retrieves the application name.
    +         *
    +         * @method getApplicationName
    +         * @return {String} application name
    +         */
    +        getApplicationName: function() {
    +            return this._name;
    +        },
    +
    +        /**
    +         * Sets up a callback that is to be called when the application's name changed.
    +         *
    +         * @method onApplicationNameChanged
    +         * @param callback {Function(String)} Function to be called when the application's name has changed.
    +         */
    +        onApplicationNameChanged: function(callback) {
    +            var self = this;
    +            this._proxy.call('onApplicationNameChanged'
    +                               , [callback]);
    +        },
    +
    +        /**
    +         * Retrieves the fileystem location where the application is allowed to write its data in.
    +         *
    +         * @method getApplicationWritableLocation
    +         * @return {String} application writable location path
    +         */
    +        getApplicationWritableLocation: function() {
    +            return this._writableLocation;
    +        },
    +
    +        /**
    +         * Retrieves current platform information.
    +         *
    +         * @method getPlatformInfos
    +         * @return {Object} platform information as a dictionary with the following keys:
    +         *  - name: the platform name
    +         */
    +        getPlatformInfo: function() {
    +            return this._platform;
    +        },
    +
    +        /**
    +         * Sets up a callback that is to be called when the application is about to quit.
    +         *
    +         * @method onAboutToQuit
    +         * @param callback {Function()} Function to be called when the application is about to quit.
    +         */
    +        onAboutToQuit: function(callback) {
    +            this._proxy.call('onAboutToQuit'
    +                               , [callback]);
    +        },
    +
    +        /**
    +         * Sets up a callback that is to be called when the application has been deactivated (background).
    +         *
    +         * @method onDeactivated
    +         * @param callback {Function()} Function to be called when the application has been deactivated.
    +         */
    +        onDeactivated: function(callback) {
    +            this._proxy.call('onDeactivated'
    +                               , [callback]);
    +        },
    +
    +        /**
    +         * Sets up a callback that is to be called when the application has been activated (from background).
    +         *
    +         * @method onActivated
    +         * @param callback {Function()} Function to be called when the application has been activated.
    +         */
    +        onActivated: function(callback) {
    +            this._proxy.call('onActivated'
    +                               , [callback]);
    +        },
    +
    +        /**
    +         * Retrieves the current screen orientation.
    +         *
    +         * @method getScreenOrientation
    +         * @return {ScreenOrientation} current screen orientation.
    +         */
    +        getScreenOrientation: function() {
    +            return this._screenOrientation;
    +        },
    +
    +        /**
    +         * Sets up a callback that is to be called when the application's screen has changed its orientation.
    +         *
    +         * @method onScreenOrientationChanged
    +         * @param callback {Function(ScreenOrientation)} Function to be called when the application's screen orientation has changed.
    +         */
    +        onScreenOrientationChanged: function(callback) {
    +            var self = this;
    +            this._proxy.call('onScreenOrientationChanged'
    +                               , [callback]);
    +        },
    +
    +        /**
    +         * Sets up a URI handler. The application can be sent URIs to open.
    +         *
    +         * @method setupUriHandler
    +         * @param callback {Function([String])} Function to be called with the current list of uris to open
    +         */
    +        setupUriHandler: function(callback) {
    +            this._proxy.call('setupUriHandler'
    +                               , [callback]);
    +        },
    +
    +        /**
    +         * Retrieves the current input method's name. The name varies depending on the platform
    +         * e.g. maliit can be part of the name for a maliit based Virtual Keyboard (possibly mangled
    +         * with e.g. 'phablet'), when a keyboard is there the name can be empty, ...
    +         *
    +         * @method getInputMethodName
    +         * @return {String} current input method name
    +         */
    +        getInputMethodName: function() {
    +            return this._inputMethodName;
    +        },
    +
    +        /**
    +         * Sets up a callback that is to be called when the On Screen Keyboard visibility has changed.
    +         *
    +         * @method onInputMethodVisibilityChanged
    +         * @param callback {Function(Bool)} Function to be called when the On Screen Keyboard visibility has changed (received the visibility as an arg).
    +         */
    +        onInputMethodVisibilityChanged: function(callback) {
    +            this._proxy.call('onInputMethodVisibilityChanged'
    +                               , [callback]);
    +        }
    +    };
    +
    +    function _constructorFromName(className) {
    +        var constructorPerName = {
    +            "Application": Application,
    +        };
    +        return className in constructorPerName
    +                ? constructorPerName[className]
    +                : null;
    +    };
    +
    +
    +/**
    + * The RuntimeApi object
    +
    + * @class RuntimeApi
    + * @constructor
    + * @example
    +
    +       var api = external.getUnityObject('1.0');
    +       api.RuntimeApi.getApplication(function(application) {
    +         console.log('Application name: ' + application.getApplicationName());
    +       });
    + */
    +    return {
    +        /**
    +           Enumeration of the available types of ScreenOrientation.
    +
    +             Values:
    +
    +               Landscape: The application screen is in landscape mode
    +
    +               InvertedLandscape: The application screen is in inverted landscape mode
    +
    +               Portrait: The application screen is in portrait mode
    +
    +               InvertedPortrait: The application screen is in inverted portrait mode
    +
    +               Unknown: The application screen is in an unknown mode
    +
    +           @static
    +           @property ScreenOrientation {Object}
    +
    +           @example
    +
    +               var api = external.getUnityObject('1.0');
    +               var orientation = api.RuntimeApi.ScreenOrientation;
    +               // use orientation.Landscape or orientation.Portrait
    +         */
    +        ScreenOrientation: {
    +            Landscape: "Landscape",
    +
    +            InvertedLandscape: "InvertedLandscape",
    +
    +            Portrait: "Portrait",
    +
    +            InvertedPortrait: "InvertedPortrait",
    +
    +            Unknwon: "Unknown",
    +        },
    +
    +        /**
    +         * Creates an Application object.
    +         *
    +         * @method getApplication
    +         * @param callback {Function (Application)}
    +         */
    +        getApplication: function(callback) {
    +            backendBridge.call('RuntimeApi.getApplication'
    +                               , []
    +                               , callback);
    +        },
    +
    +        /**
    +         * @private
    +         *
    +         */
    +        createObjectWrapper: function(objectType, objectId, content) {
    +            var Constructor = _constructorFromName(objectType);
    +            return new Constructor(objectId, content);
    +        },
    +    };
    +};
    +
    +
    +
    +
    + +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/index.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/index.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/index.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/index.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,66 @@ + + + + + Runtime JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +

    Welcome to Ubuntu Runtime Javascript API Docs

    +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/modules/RuntimeApi.html unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/modules/RuntimeApi.html --- unity-webapps-qml-0.1+15.04.20150319/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/modules/RuntimeApi.html 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/src/Ubuntu/UnityWebApps/bindings/runtime-api/client/docsbuild/modules/RuntimeApi.html 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,90 @@ + + + + + RuntimeApi - Runtime JS API + + + + + + + +
    +
    + +
    + API Docs for: 0.1 +
    +
    +
    + + + +
    +
    +

    RuntimeApi

    +

    RuntimeApi gives access to the application runtime information and management.

    +
    + +
    +
    +

    This module has the following classes:

    + +
    +
    +
    +
    +

    +Module description found: runtime-api.js:196 +
    +
    +
    +
    + + + + + + diff -Nru unity-webapps-qml-0.1+15.04.20150319/update-docs unity-webapps-qml-0.1+15.04.20150409/update-docs --- unity-webapps-qml-0.1+15.04.20150319/update-docs 1970-01-01 00:00:00.000000000 +0000 +++ unity-webapps-qml-0.1+15.04.20150409/update-docs 2015-04-09 13:29:10.000000000 +0000 @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ ! $(which yuidoc) ]; then + echo "Please install yuidocjs: sudo apt-get install npm nodejs-legacy && sudo npm -g install yuidocjs" + exit 1 +fi + +cd ./src/Ubuntu/UnityWebApps/bindings && ./yuidoc-build.sh