2015-05-03 19:32:37 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* 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/. */
|
2011-11-02 13:44:16 +00:00
|
|
|
|
|
|
|
#ifndef mozilla_dom_Navigator_h
|
|
|
|
#define mozilla_dom_Navigator_h
|
|
|
|
|
2013-06-23 12:03:39 +00:00
|
|
|
#include "mozilla/MemoryReporting.h"
|
2016-11-15 22:44:43 +00:00
|
|
|
#include "mozilla/dom/BindingDeclarations.h"
|
2014-03-06 15:51:23 +00:00
|
|
|
#include "mozilla/dom/Nullable.h"
|
2013-08-15 18:17:48 +00:00
|
|
|
#include "mozilla/ErrorResult.h"
|
2011-11-02 13:44:16 +00:00
|
|
|
#include "nsIDOMNavigator.h"
|
2013-07-18 03:23:52 +00:00
|
|
|
#include "nsIMozNavigatorNetwork.h"
|
2013-06-20 18:34:38 +00:00
|
|
|
#include "nsWrapperCache.h"
|
2014-03-21 03:19:43 +00:00
|
|
|
#include "nsHashKeys.h"
|
|
|
|
#include "nsInterfaceHashtable.h"
|
2013-08-15 18:17:48 +00:00
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsTArray.h"
|
2015-08-18 11:42:14 +00:00
|
|
|
#include "nsWeakPtr.h"
|
2015-03-31 07:50:01 +00:00
|
|
|
#include "mozilla/dom/MediaKeySystemAccessManager.h"
|
2011-11-02 13:44:16 +00:00
|
|
|
|
|
|
|
class nsPluginArray;
|
|
|
|
class nsMimeTypeArray;
|
2016-01-30 17:05:36 +00:00
|
|
|
class nsPIDOMWindowInner;
|
2013-08-15 18:17:48 +00:00
|
|
|
class nsIDOMNavigatorSystemMessages;
|
|
|
|
class nsDOMDeviceStorage;
|
2014-03-12 09:03:05 +00:00
|
|
|
class nsIPrincipal;
|
2014-09-24 16:09:50 +00:00
|
|
|
class nsIURI;
|
2011-11-02 13:44:16 +00:00
|
|
|
|
2013-04-12 18:46:36 +00:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
2013-04-12 18:47:47 +00:00
|
|
|
class Geolocation;
|
2013-07-12 14:35:44 +00:00
|
|
|
class systemMessageCallback;
|
2014-09-20 06:20:41 +00:00
|
|
|
class MediaDevices;
|
2014-06-19 00:57:51 +00:00
|
|
|
struct MediaStreamConstraints;
|
2014-01-07 12:16:07 +00:00
|
|
|
class WakeLock;
|
2014-03-06 15:51:23 +00:00
|
|
|
class ArrayBufferViewOrBlobOrStringOrFormData;
|
2014-08-19 13:56:00 +00:00
|
|
|
class ServiceWorkerContainer;
|
2016-01-26 17:38:03 +00:00
|
|
|
class DOMRequest;
|
2016-06-02 06:47:00 +00:00
|
|
|
struct FlyWebPublishOptions;
|
|
|
|
struct FlyWebFilter;
|
2015-07-13 15:25:42 +00:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
2013-04-12 18:46:36 +00:00
|
|
|
|
2011-11-02 13:44:16 +00:00
|
|
|
//*****************************************************************************
|
|
|
|
// Navigator: Script "navigator" object
|
|
|
|
//*****************************************************************************
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2015-07-28 13:33:46 +00:00
|
|
|
class Permissions;
|
|
|
|
|
2011-11-02 15:27:06 +00:00
|
|
|
namespace battery {
|
|
|
|
class BatteryManager;
|
|
|
|
} // namespace battery
|
|
|
|
|
2013-10-02 17:27:07 +00:00
|
|
|
class Promise;
|
|
|
|
|
2013-04-10 14:20:43 +00:00
|
|
|
class DesktopNotificationCenter;
|
2013-07-12 14:35:35 +00:00
|
|
|
class MozIdleObserver;
|
2013-07-12 14:36:32 +00:00
|
|
|
#ifdef MOZ_GAMEPAD
|
|
|
|
class Gamepad;
|
2016-06-27 22:26:00 +00:00
|
|
|
class GamepadServiceTest;
|
2013-07-12 14:36:32 +00:00
|
|
|
#endif // MOZ_GAMEPAD
|
2013-09-16 06:34:57 +00:00
|
|
|
class NavigatorUserMediaSuccessCallback;
|
|
|
|
class NavigatorUserMediaErrorCallback;
|
2013-07-12 14:37:21 +00:00
|
|
|
class MozGetUserMediaDevicesSuccessCallback;
|
2011-11-25 00:48:57 +00:00
|
|
|
|
2012-01-16 17:14:56 +00:00
|
|
|
namespace network {
|
|
|
|
class Connection;
|
2015-07-13 15:25:42 +00:00
|
|
|
} // namespace network
|
2012-01-16 17:14:56 +00:00
|
|
|
|
2012-01-20 03:24:00 +00:00
|
|
|
class PowerManager;
|
2015-05-04 06:11:00 +00:00
|
|
|
class DeviceStorageAreaListener;
|
2015-03-19 07:48:28 +00:00
|
|
|
class Presentation;
|
2015-03-25 14:35:59 +00:00
|
|
|
class LegacyMozTCPSocket;
|
2016-02-24 23:54:50 +00:00
|
|
|
class VRDisplay;
|
2016-06-14 12:57:36 +00:00
|
|
|
class StorageManager;
|
2012-01-20 03:24:00 +00:00
|
|
|
|
2012-09-11 06:05:00 +00:00
|
|
|
namespace time {
|
|
|
|
class TimeManager;
|
|
|
|
} // namespace time
|
|
|
|
|
2012-11-29 22:52:03 +00:00
|
|
|
namespace system {
|
|
|
|
#ifdef MOZ_AUDIO_CHANNEL_MANAGER
|
|
|
|
class AudioChannelManager;
|
|
|
|
#endif
|
|
|
|
} // namespace system
|
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
class Navigator final : public nsIDOMNavigator
|
2015-03-27 18:52:19 +00:00
|
|
|
, public nsIMozNavigatorNetwork
|
|
|
|
, public nsWrapperCache
|
2011-11-02 13:44:16 +00:00
|
|
|
{
|
|
|
|
public:
|
2016-01-30 17:05:36 +00:00
|
|
|
explicit Navigator(nsPIDOMWindowInner* aInnerWindow);
|
2011-11-02 13:44:16 +00:00
|
|
|
|
2013-06-20 18:34:38 +00:00
|
|
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
|
|
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_AMBIGUOUS(Navigator,
|
|
|
|
nsIDOMNavigator)
|
2011-11-02 13:44:16 +00:00
|
|
|
NS_DECL_NSIDOMNAVIGATOR
|
2013-07-18 03:23:52 +00:00
|
|
|
NS_DECL_NSIMOZNAVIGATORNETWORK
|
2012-02-20 15:15:19 +00:00
|
|
|
|
2011-11-02 13:44:16 +00:00
|
|
|
static void Init();
|
|
|
|
|
2011-12-01 08:28:16 +00:00
|
|
|
void Invalidate();
|
2016-01-30 17:05:36 +00:00
|
|
|
nsPIDOMWindowInner *GetWindow() const
|
2013-06-20 18:34:38 +00:00
|
|
|
{
|
|
|
|
return mWindow;
|
|
|
|
}
|
2011-11-02 13:44:16 +00:00
|
|
|
|
2011-12-01 08:28:16 +00:00
|
|
|
void RefreshMIMEArray();
|
2011-11-02 13:44:16 +00:00
|
|
|
|
2013-06-23 12:03:39 +00:00
|
|
|
size_t SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
|
2011-11-02 13:44:16 +00:00
|
|
|
|
2011-12-28 13:39:55 +00:00
|
|
|
/**
|
|
|
|
* For use during document.write where our inner window changes.
|
|
|
|
*/
|
2016-01-30 17:05:36 +00:00
|
|
|
void SetWindow(nsPIDOMWindowInner *aInnerWindow);
|
2011-12-28 13:39:55 +00:00
|
|
|
|
2012-06-03 07:35:15 +00:00
|
|
|
/**
|
|
|
|
* Called when the inner window navigates to a new page.
|
|
|
|
*/
|
|
|
|
void OnNavigation();
|
|
|
|
|
2013-07-12 14:35:35 +00:00
|
|
|
// The XPCOM GetProduct is OK
|
|
|
|
// The XPCOM GetLanguage is OK
|
2016-11-15 22:44:43 +00:00
|
|
|
void GetAppName(nsAString& aAppName, CallerType aCallerType) const;
|
|
|
|
void GetAppVersion(nsAString& aAppName, CallerType aCallerType,
|
|
|
|
ErrorResult& aRv) const;
|
|
|
|
void GetPlatform(nsAString& aPlatform, CallerType aCallerType,
|
|
|
|
ErrorResult& aRv) const;
|
|
|
|
void GetUserAgent(nsAString& aUserAgent, CallerType aCallerType,
|
|
|
|
ErrorResult& aRv) const;
|
2013-07-12 14:35:35 +00:00
|
|
|
bool OnLine();
|
|
|
|
void RegisterProtocolHandler(const nsAString& aScheme, const nsAString& aURL,
|
2013-07-18 03:23:52 +00:00
|
|
|
const nsAString& aTitle, ErrorResult& aRv);
|
2013-07-12 14:35:35 +00:00
|
|
|
void RegisterContentHandler(const nsAString& aMIMEType, const nsAString& aURL,
|
2013-07-18 03:23:52 +00:00
|
|
|
const nsAString& aTitle, ErrorResult& aRv);
|
2013-07-12 14:35:35 +00:00
|
|
|
nsMimeTypeArray* GetMimeTypes(ErrorResult& aRv);
|
|
|
|
nsPluginArray* GetPlugins(ErrorResult& aRv);
|
2015-07-28 13:33:46 +00:00
|
|
|
Permissions* GetPermissions(ErrorResult& aRv);
|
2013-07-12 14:35:35 +00:00
|
|
|
// The XPCOM GetDoNotTrack is ok
|
|
|
|
Geolocation* GetGeolocation(ErrorResult& aRv);
|
2015-08-21 10:29:25 +00:00
|
|
|
Promise* GetBattery(ErrorResult& aRv);
|
2014-02-24 13:57:15 +00:00
|
|
|
|
2016-06-02 06:47:00 +00:00
|
|
|
already_AddRefed<Promise> PublishServer(const nsAString& aName,
|
|
|
|
const FlyWebPublishOptions& aOptions,
|
|
|
|
ErrorResult& aRv);
|
2014-09-23 19:11:18 +00:00
|
|
|
static void AppName(nsAString& aAppName, bool aUsePrefOverriddenValue);
|
|
|
|
|
|
|
|
static nsresult GetPlatform(nsAString& aPlatform,
|
|
|
|
bool aUsePrefOverriddenValue);
|
|
|
|
|
|
|
|
static nsresult GetAppVersion(nsAString& aAppVersion,
|
|
|
|
bool aUsePrefOverriddenValue);
|
|
|
|
|
2016-01-30 17:05:36 +00:00
|
|
|
static nsresult GetUserAgent(nsPIDOMWindowInner* aWindow,
|
2014-09-24 16:09:50 +00:00
|
|
|
nsIURI* aURI,
|
|
|
|
bool aIsCallerChrome,
|
|
|
|
nsAString& aUserAgent);
|
|
|
|
|
2015-07-21 06:42:00 +00:00
|
|
|
// Clears the user agent cache by calling:
|
|
|
|
// NavigatorBinding::ClearCachedUserAgentValue(this);
|
|
|
|
void ClearUserAgentCache();
|
|
|
|
|
2013-09-28 18:58:38 +00:00
|
|
|
bool Vibrate(uint32_t aDuration);
|
|
|
|
bool Vibrate(const nsTArray<uint32_t>& aDuration);
|
2016-04-26 13:40:27 +00:00
|
|
|
void SetVibrationPermission(bool aPermitted, bool aPersistent);
|
2014-01-28 16:09:34 +00:00
|
|
|
uint32_t MaxTouchPoints();
|
2013-07-12 14:35:35 +00:00
|
|
|
void GetAppCodeName(nsString& aAppCodeName, ErrorResult& aRv)
|
|
|
|
{
|
|
|
|
aRv = GetAppCodeName(aAppCodeName);
|
|
|
|
}
|
2016-11-15 22:44:43 +00:00
|
|
|
void GetOscpu(nsAString& aOscpu, CallerType aCallerType,
|
|
|
|
ErrorResult& aRv) const;
|
2013-07-12 14:35:35 +00:00
|
|
|
// The XPCOM GetVendor is OK
|
|
|
|
// The XPCOM GetVendorSub is OK
|
|
|
|
// The XPCOM GetProductSub is OK
|
|
|
|
bool CookieEnabled();
|
2016-11-15 22:44:43 +00:00
|
|
|
void GetBuildID(nsAString& aBuildID, CallerType aCallerType,
|
|
|
|
ErrorResult& aRv) const;
|
2013-09-11 14:35:04 +00:00
|
|
|
PowerManager* GetMozPower(ErrorResult& aRv);
|
2013-07-12 14:35:35 +00:00
|
|
|
bool JavaEnabled(ErrorResult& aRv);
|
2016-03-16 19:41:38 +00:00
|
|
|
uint64_t HardwareConcurrency();
|
2016-10-07 23:23:39 +00:00
|
|
|
bool CpuHasSSE2();
|
2013-07-12 14:35:35 +00:00
|
|
|
bool TaintEnabled()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
void AddIdleObserver(MozIdleObserver& aObserver, ErrorResult& aRv);
|
|
|
|
void RemoveIdleObserver(MozIdleObserver& aObserver, ErrorResult& aRv);
|
2014-01-07 12:16:07 +00:00
|
|
|
already_AddRefed<WakeLock> RequestWakeLock(const nsAString &aTopic,
|
|
|
|
ErrorResult& aRv);
|
2015-05-04 06:11:00 +00:00
|
|
|
DeviceStorageAreaListener* GetDeviceStorageAreaListener(ErrorResult& aRv);
|
2015-08-18 11:42:14 +00:00
|
|
|
|
|
|
|
already_AddRefed<nsDOMDeviceStorage> GetDeviceStorage(const nsAString& aType,
|
|
|
|
ErrorResult& aRv);
|
|
|
|
|
2013-07-12 14:35:44 +00:00
|
|
|
void GetDeviceStorages(const nsAString& aType,
|
2015-10-18 05:24:48 +00:00
|
|
|
nsTArray<RefPtr<nsDOMDeviceStorage> >& aStores,
|
2013-07-12 14:35:44 +00:00
|
|
|
ErrorResult& aRv);
|
2015-08-18 11:42:14 +00:00
|
|
|
|
|
|
|
already_AddRefed<nsDOMDeviceStorage>
|
|
|
|
GetDeviceStorageByNameAndType(const nsAString& aName, const nsAString& aType,
|
|
|
|
ErrorResult& aRv);
|
|
|
|
|
2013-07-12 14:35:44 +00:00
|
|
|
DesktopNotificationCenter* GetMozNotification(ErrorResult& aRv);
|
2015-03-25 14:35:59 +00:00
|
|
|
already_AddRefed<LegacyMozTCPSocket> MozTCPSocket();
|
2014-03-05 03:54:55 +00:00
|
|
|
network::Connection* GetConnection(ErrorResult& aRv);
|
2014-09-20 06:20:41 +00:00
|
|
|
MediaDevices* GetMediaDevices(ErrorResult& aRv);
|
2015-01-13 09:53:22 +00:00
|
|
|
|
2013-07-12 14:36:32 +00:00
|
|
|
#ifdef MOZ_GAMEPAD
|
2015-10-18 05:24:48 +00:00
|
|
|
void GetGamepads(nsTArray<RefPtr<Gamepad> >& aGamepads, ErrorResult& aRv);
|
2016-06-27 22:26:00 +00:00
|
|
|
GamepadServiceTest* RequestGamepadServiceTest();
|
2013-07-12 14:36:32 +00:00
|
|
|
#endif // MOZ_GAMEPAD
|
2016-04-13 00:39:28 +00:00
|
|
|
already_AddRefed<Promise> GetVRDisplays(ErrorResult& aRv);
|
2016-07-04 22:52:21 +00:00
|
|
|
void GetActiveVRDisplays(nsTArray<RefPtr<VRDisplay>>& aDisplays) const;
|
2013-07-12 14:36:32 +00:00
|
|
|
#ifdef MOZ_TIME_MANAGER
|
|
|
|
time::TimeManager* GetMozTime(ErrorResult& aRv);
|
|
|
|
#endif // MOZ_TIME_MANAGER
|
|
|
|
#ifdef MOZ_AUDIO_CHANNEL_MANAGER
|
|
|
|
system::AudioChannelManager* GetMozAudioChannelManager(ErrorResult& aRv);
|
|
|
|
#endif // MOZ_AUDIO_CHANNEL_MANAGER
|
2014-03-06 15:51:23 +00:00
|
|
|
|
2015-03-19 07:48:28 +00:00
|
|
|
Presentation* GetPresentation(ErrorResult& aRv);
|
|
|
|
|
2014-03-06 15:51:23 +00:00
|
|
|
bool SendBeacon(const nsAString& aUrl,
|
|
|
|
const Nullable<ArrayBufferViewOrBlobOrStringOrFormData>& aData,
|
|
|
|
ErrorResult& aRv);
|
|
|
|
|
2014-04-18 18:00:16 +00:00
|
|
|
void MozGetUserMedia(const MediaStreamConstraints& aConstraints,
|
2013-09-16 06:34:57 +00:00
|
|
|
NavigatorUserMediaSuccessCallback& aOnSuccess,
|
|
|
|
NavigatorUserMediaErrorCallback& aOnError,
|
2013-07-12 14:37:21 +00:00
|
|
|
ErrorResult& aRv);
|
2014-04-18 18:00:16 +00:00
|
|
|
void MozGetUserMediaDevices(const MediaStreamConstraints& aConstraints,
|
2013-09-16 06:34:57 +00:00
|
|
|
MozGetUserMediaDevicesSuccessCallback& aOnSuccess,
|
|
|
|
NavigatorUserMediaErrorCallback& aOnError,
|
2014-02-14 19:32:58 +00:00
|
|
|
uint64_t aInnerWindowID,
|
2016-01-07 22:30:10 +00:00
|
|
|
const nsAString& aCallID,
|
2013-07-12 14:37:21 +00:00
|
|
|
ErrorResult& aRv);
|
2013-11-19 23:14:07 +00:00
|
|
|
|
2014-08-19 13:56:00 +00:00
|
|
|
already_AddRefed<ServiceWorkerContainer> ServiceWorker();
|
2013-11-19 23:14:07 +00:00
|
|
|
|
2014-05-12 11:48:15 +00:00
|
|
|
void GetLanguages(nsTArray<nsString>& aLanguages);
|
2014-09-05 14:26:34 +00:00
|
|
|
|
2015-02-17 22:10:45 +00:00
|
|
|
bool MozE10sEnabled();
|
|
|
|
|
2016-06-14 12:57:36 +00:00
|
|
|
StorageManager* Storage();
|
|
|
|
|
2014-09-05 14:26:34 +00:00
|
|
|
static void GetAcceptLanguages(nsTArray<nsString>& aLanguages);
|
2013-07-12 14:35:35 +00:00
|
|
|
|
|
|
|
// WebIDL helper methods
|
|
|
|
static bool HasWakeLockSupport(JSContext* /* unused*/, JSObject* /*unused */);
|
2014-02-05 09:52:25 +00:00
|
|
|
static bool HasWifiManagerSupport(JSContext* /* unused */,
|
|
|
|
JSObject* aGlobal);
|
2013-07-12 14:37:21 +00:00
|
|
|
static bool HasUserMediaSupport(JSContext* /* unused */,
|
|
|
|
JSObject* /* unused */);
|
2013-07-12 14:36:32 +00:00
|
|
|
|
2015-02-17 22:10:45 +00:00
|
|
|
static bool IsE10sEnabled(JSContext* aCx, JSObject* aGlobal);
|
|
|
|
|
2016-01-30 17:05:36 +00:00
|
|
|
nsPIDOMWindowInner* GetParentObject() const
|
2013-07-12 14:35:35 +00:00
|
|
|
{
|
|
|
|
return GetWindow();
|
|
|
|
}
|
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual JSObject* WrapObject(JSContext* cx, JS::Handle<JSObject*> aGivenProto) override;
|
2013-07-12 14:37:23 +00:00
|
|
|
|
2015-01-15 16:58:41 +00:00
|
|
|
// GetWindowFromGlobal returns the inner window for this global, if
|
|
|
|
// any, else null.
|
2016-01-30 17:05:36 +00:00
|
|
|
static already_AddRefed<nsPIDOMWindowInner> GetWindowFromGlobal(JSObject* aGlobal);
|
2015-01-15 16:58:41 +00:00
|
|
|
|
2014-11-18 09:13:02 +00:00
|
|
|
already_AddRefed<Promise>
|
|
|
|
RequestMediaKeySystemAccess(const nsAString& aKeySystem,
|
2015-10-27 01:10:51 +00:00
|
|
|
const Sequence<MediaKeySystemConfiguration>& aConfig,
|
2014-11-18 09:13:02 +00:00
|
|
|
ErrorResult& aRv);
|
2015-03-31 07:50:01 +00:00
|
|
|
private:
|
2015-10-18 05:24:48 +00:00
|
|
|
RefPtr<MediaKeySystemAccessManager> mMediaKeySystemAccessManager;
|
2014-11-18 09:13:02 +00:00
|
|
|
|
2016-07-04 22:52:21 +00:00
|
|
|
public:
|
|
|
|
void NotifyVRDisplaysUpdated();
|
|
|
|
void NotifyActiveVRDisplaysChanged();
|
|
|
|
|
2011-11-02 13:44:16 +00:00
|
|
|
private:
|
2014-06-23 19:56:07 +00:00
|
|
|
virtual ~Navigator();
|
|
|
|
|
2012-10-02 09:08:02 +00:00
|
|
|
bool CheckPermission(const char* type);
|
2016-01-30 17:05:36 +00:00
|
|
|
static bool CheckPermission(nsPIDOMWindowInner* aWindow, const char* aType);
|
2013-07-12 14:35:35 +00:00
|
|
|
|
2015-08-18 11:42:14 +00:00
|
|
|
already_AddRefed<nsDOMDeviceStorage> FindDeviceStorage(const nsAString& aName,
|
|
|
|
const nsAString& aType);
|
|
|
|
|
2015-10-18 05:24:48 +00:00
|
|
|
RefPtr<nsMimeTypeArray> mMimeTypes;
|
|
|
|
RefPtr<nsPluginArray> mPlugins;
|
|
|
|
RefPtr<Permissions> mPermissions;
|
|
|
|
RefPtr<Geolocation> mGeolocation;
|
|
|
|
RefPtr<DesktopNotificationCenter> mNotification;
|
|
|
|
RefPtr<battery::BatteryManager> mBatteryManager;
|
|
|
|
RefPtr<Promise> mBatteryPromise;
|
|
|
|
RefPtr<PowerManager> mPowerManager;
|
|
|
|
RefPtr<network::Connection> mConnection;
|
2012-11-29 22:52:03 +00:00
|
|
|
#ifdef MOZ_AUDIO_CHANNEL_MANAGER
|
2015-10-18 05:24:48 +00:00
|
|
|
RefPtr<system::AudioChannelManager> mAudioChannelManager;
|
2012-02-20 15:15:19 +00:00
|
|
|
#endif
|
2015-10-18 05:24:48 +00:00
|
|
|
RefPtr<MediaDevices> mMediaDevices;
|
2015-08-18 11:42:14 +00:00
|
|
|
nsTArray<nsWeakPtr> mDeviceStorageStores;
|
2015-10-18 05:24:48 +00:00
|
|
|
RefPtr<time::TimeManager> mTimeManager;
|
|
|
|
RefPtr<ServiceWorkerContainer> mServiceWorkerContainer;
|
2016-01-30 17:05:36 +00:00
|
|
|
nsCOMPtr<nsPIDOMWindowInner> mWindow;
|
2015-10-18 05:24:48 +00:00
|
|
|
RefPtr<DeviceStorageAreaListener> mDeviceStorageAreaListener;
|
|
|
|
RefPtr<Presentation> mPresentation;
|
2016-06-27 22:26:00 +00:00
|
|
|
#ifdef MOZ_GAMEPAD
|
|
|
|
RefPtr<GamepadServiceTest> mGamepadServiceTest;
|
|
|
|
#endif
|
2016-04-13 00:39:28 +00:00
|
|
|
nsTArray<RefPtr<Promise> > mVRGetDisplaysPromises;
|
2016-04-26 13:40:27 +00:00
|
|
|
nsTArray<uint32_t> mRequestedVibrationPattern;
|
2016-06-14 12:57:36 +00:00
|
|
|
RefPtr<StorageManager> mStorageManager;
|
2011-11-02 13:44:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_Navigator_h
|