OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 "use strict"; | 4 "use strict"; |
5 | 5 |
6 const {classes: Cc, interfaces: Ci, utils: Cu} = Components; | 6 const {classes: Cc, interfaces: Ci, utils: Cu} = Components; |
7 | 7 |
8 this.EXPORTED_SYMBOLS = ["WebrtcUI"]; | 8 this.EXPORTED_SYMBOLS = ["WebrtcUI"]; |
9 | 9 |
10 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); | 10 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 let msg = {}; | 90 let msg = {}; |
91 if (count == 0) { | 91 if (count == 0) { |
92 if (this._notificationId) { | 92 if (this._notificationId) { |
93 Notifications.cancel(this._notificationId); | 93 Notifications.cancel(this._notificationId); |
94 this._notificationId = null; | 94 this._notificationId = null; |
95 } | 95 } |
96 } else { | 96 } else { |
97 let notificationOptions = { | 97 let notificationOptions = { |
98 title: Strings.brand.GetStringFromName("brandShortName"), | 98 title: Strings.brand.GetStringFromName("brandShortName"), |
99 when: null, // hide the date row | 99 when: null, // hide the date row |
100 light: [0xFF009CD9, 1000, 1000], // Changed to match abb_accent_dark_blu
e. See https://issues.adblockplus.org/ticket/3769 | 100 light: [0xFF9500FF, 1000, 1000], |
101 ongoing: true | 101 ongoing: true |
102 }; | 102 }; |
103 | 103 |
104 let cameraActive = false; | 104 let cameraActive = false; |
105 let audioActive = false; | 105 let audioActive = false; |
106 for (let i = 0; i < count; i++) { | 106 for (let i = 0; i < count; i++) { |
107 let win = windows.queryElementAt(i, Ci.nsIDOMWindow); | 107 let win = windows.queryElementAt(i, Ci.nsIDOMWindow); |
108 let hasAudio = {}; | 108 let hasAudio = {}; |
109 let hasVideo = {}; | 109 let hasVideo = {}; |
110 MediaManagerService.mediaCaptureWindowState(win, hasVideo, hasAudio); | 110 MediaManagerService.mediaCaptureWindowState(win, hasVideo, hasAudio); |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 | 343 |
344 if (audioDevices.length > 1 || videoDevices.length > 0) { | 344 if (audioDevices.length > 1 || videoDevices.length > 0) { |
345 this._addDevicesToOptions(audioDevices, "audioDevice", options); | 345 this._addDevicesToOptions(audioDevices, "audioDevice", options); |
346 } | 346 } |
347 | 347 |
348 let buttons = this.getDeviceButtons(audioDevices, videoDevices, aCallID, uri
); | 348 let buttons = this.getDeviceButtons(audioDevices, videoDevices, aCallID, uri
); |
349 | 349 |
350 DoorHanger.show(aContentWindow, message, "webrtc-request", buttons, options,
"WEBRTC"); | 350 DoorHanger.show(aContentWindow, message, "webrtc-request", buttons, options,
"WEBRTC"); |
351 } | 351 } |
352 }; | 352 }; |
OLD | NEW |