diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-04-23 15:32:23 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-04-23 15:32:23 -0400 |
commit | abe80cc31d5a40ebed743085011fbcda0c1a9a10 (patch) | |
tree | fb3762f06b84745b182af281abb107b95a9fcf01 /mobile/android/modules/RuntimePermissions.jsm | |
parent | 63295d0087eb58a6eb34cad324c4c53d1b220491 (diff) | |
download | UXP-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/modules/RuntimePermissions.jsm')
-rw-r--r-- | mobile/android/modules/RuntimePermissions.jsm | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/mobile/android/modules/RuntimePermissions.jsm b/mobile/android/modules/RuntimePermissions.jsm deleted file mode 100644 index 42d8024b1..000000000 --- a/mobile/android/modules/RuntimePermissions.jsm +++ /dev/null @@ -1,41 +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; - -this.EXPORTED_SYMBOLS = ["RuntimePermissions"]; - -Cu.import("resource://gre/modules/XPCOMUtils.jsm"); - -XPCOMUtils.defineLazyModuleGetter(this, "Messaging", "resource://gre/modules/Messaging.jsm"); - -// See: http://developer.android.com/reference/android/Manifest.permission.html -const CAMERA = "android.permission.CAMERA"; -const WRITE_EXTERNAL_STORAGE = "android.permission.WRITE_EXTERNAL_STORAGE"; -const RECORD_AUDIO = "android.permission.RECORD_AUDIO"; - -var RuntimePermissions = { - CAMERA: CAMERA, - RECORD_AUDIO: RECORD_AUDIO, - WRITE_EXTERNAL_STORAGE: WRITE_EXTERNAL_STORAGE, - - /** - * Check whether the permissions have been granted or not. If needed prompt the user to accept the permissions. - * - * @returns A promise resolving to true if all the permissions have been granted or false if any of the - * permissions have been denied. - */ - waitForPermissions: function(permission) { - let permissions = [].concat(permission); - - let msg = { - type: 'RuntimePermissions:Prompt', - permissions: permissions - }; - - return Messaging.sendRequestForResult(msg); - } -};
\ No newline at end of file |