summaryrefslogtreecommitdiffstats
path: root/mobile/android/extensions/flyweb/content
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-04-23 15:32:23 -0400
committerMatt A. Tobin <email@mattatobin.com>2019-04-23 15:32:23 -0400
commitabe80cc31d5a40ebed743085011fbcda0c1a9a10 (patch)
treefb3762f06b84745b182af281abb107b95a9fcf01 /mobile/android/extensions/flyweb/content
parent63295d0087eb58a6eb34cad324c4c53d1b220491 (diff)
downloadUXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.tar
UXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.tar.gz
UXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.tar.lz
UXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.tar.xz
UXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.zip
Issue #1053 - Drop support Android and remove Fennec - Part 1a: Remove mobile/android
Diffstat (limited to 'mobile/android/extensions/flyweb/content')
-rw-r--r--mobile/android/extensions/flyweb/content/aboutFlyWeb.css29
-rw-r--r--mobile/android/extensions/flyweb/content/aboutFlyWeb.js73
-rw-r--r--mobile/android/extensions/flyweb/content/aboutFlyWeb.xhtml47
-rw-r--r--mobile/android/extensions/flyweb/content/icon-64.pngbin1311 -> 0 bytes
4 files changed, 0 insertions, 149 deletions
diff --git a/mobile/android/extensions/flyweb/content/aboutFlyWeb.css b/mobile/android/extensions/flyweb/content/aboutFlyWeb.css
deleted file mode 100644
index 0c751b53f..000000000
--- a/mobile/android/extensions/flyweb/content/aboutFlyWeb.css
+++ /dev/null
@@ -1,29 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this file,
- * You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-include "defines.css"
-
-.list-item > a {
- color: inherit;
- text-decoration: none;
-}
-
-.details {
- -moz-margin-start: calc(var(--icon-size) + var(--icon-margin) * 2 - 1em);
- padding: 1em;
-}
-
-#flyweb-item-template {
- display: none;
-}
-
-#flyweb-list-empty {
- display: none;
-}
-
-#flyweb-list:empty + #flyweb-list-empty {
- display: block;
- text-align: center;
- padding-top: 3.9em;
-}
diff --git a/mobile/android/extensions/flyweb/content/aboutFlyWeb.js b/mobile/android/extensions/flyweb/content/aboutFlyWeb.js
deleted file mode 100644
index 48b7ea4b7..000000000
--- a/mobile/android/extensions/flyweb/content/aboutFlyWeb.js
+++ /dev/null
@@ -1,73 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this file,
- * You can obtain one at http://mozilla.org/MPL/2.0/. */
-"use strict";
-
-const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
-
-Cu.import("resource://gre/modules/Console.jsm");
-Cu.import("resource://gre/modules/XPCOMUtils.jsm");
-
-XPCOMUtils.defineLazyModuleGetter(this, "Services", "resource://gre/modules/Services.jsm");
-
-XPCOMUtils.defineLazyGetter(this, "gFlyWebBundle", function() {
- return Services.strings.createBundle("chrome://flyweb/locale/flyweb.properties");
-});
-
-let discoveryManager = new FlyWebDiscoveryManager();
-
-let discoveryCallback = {
- onDiscoveredServicesChanged(services) {
- if (!this.id) {
- return;
- }
-
- let list = document.getElementById("flyweb-list");
- while (list.firstChild) {
- list.firstChild.remove();
- }
-
- let template = document.getElementById("flyweb-item-template");
-
- for (let service of services) {
- let item = template.cloneNode(true);
- item.removeAttribute("id");
-
- item.setAttribute("data-service-id", service.serviceId);
- item.querySelector(".title").setAttribute("value", service.displayName);
- item.querySelector(".icon").src = "chrome://flyweb/content/icon-64.png";
-
- list.appendChild(item);
- }
- },
- start() {
- this.id = discoveryManager.startDiscovery(this);
- },
- stop() {
- discoveryManager.stopDiscovery(this.id);
- this.id = undefined;
- }
-};
-
-window.addEventListener("DOMContentLoaded", () => {
- let list = document.getElementById("flyweb-list");
- list.addEventListener("click", (evt) => {
- let serviceId = evt.target.closest("[data-service-id]").getAttribute("data-service-id");
-
- discoveryManager.pairWithService(serviceId, {
- pairingSucceeded(service) {
- window.open(service.uiUrl, "FlyWebWindow_" + serviceId);
- },
-
- pairingFailed(error) {
- console.error("FlyWeb failed to connect to service " + serviceId, error);
- }
- });
- });
-
- discoveryCallback.start();
-});
-
-window.addEventListener("unload", () => {
- discoveryCallback.stop();
-});
diff --git a/mobile/android/extensions/flyweb/content/aboutFlyWeb.xhtml b/mobile/android/extensions/flyweb/content/aboutFlyWeb.xhtml
deleted file mode 100644
index 85e92ddf8..000000000
--- a/mobile/android/extensions/flyweb/content/aboutFlyWeb.xhtml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" [
-<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
-%brandDTD;
-<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd" >
-%globalDTD;
-<!ENTITY % flywebDTD SYSTEM "chrome://flyweb/locale/aboutFlyWeb.dtd" >
-%flywebDTD;
-]>
-
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
- - License, v. 2.0. If a copy of the MPL was not distributed with this file,
- - You can obtain one at http://mozilla.org/MPL/2.0/. -->
-
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-<head>
- <title>&aboutFlyWeb.title;</title>
- <meta name="viewport" content="width=device-width; user-scalable=0" />
- <link rel="icon" type="image/png" sizes="64x64" href="chrome://branding/content/favicon64.png" />
- <link rel="stylesheet" href="chrome://browser/skin/aboutBase.css" type="text/css"/>
- <link rel="stylesheet" href="chrome://flyweb/content/aboutFlyWeb.css" type="text/css"/>
-</head>
-
-<body dir="&locale.dir;">
- <!--template id="flyweb-item-template"-->
- <li id="flyweb-item-template" class="list-item" role="button">
- <img class="icon" src=""/>
- <div class="details">
- <div class="row">
- <!-- This is a hack so that we can crop this label in its center -->
- <xul:label class="title" crop="center" value=""/>
- </div>
- </div>
- </li>
- <!--/template-->
-
- <div class="header">
- <div>&aboutFlyWeb.header;</div>
- </div>
- <ul id="flyweb-list" class="list"></ul>
- <span id="flyweb-list-empty">&aboutFlyWeb.empty;</span>
- <script type="application/javascript;version=1.8" src="chrome://flyweb/content/aboutFlyWeb.js"/>
-</body>
-</html>
diff --git a/mobile/android/extensions/flyweb/content/icon-64.png b/mobile/android/extensions/flyweb/content/icon-64.png
deleted file mode 100644
index be8ece467..000000000
--- a/mobile/android/extensions/flyweb/content/icon-64.png
+++ /dev/null
Binary files differ