2011-11-02 17:44:16 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=2 sw=2 et tw=80: */
|
2012-05-21 15:12:37 +04: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 17:44:16 +04:00
|
|
|
|
|
|
|
#ifndef mozilla_dom_Navigator_h
|
|
|
|
#define mozilla_dom_Navigator_h
|
|
|
|
|
2013-06-23 16:03:39 +04:00
|
|
|
#include "mozilla/MemoryReporting.h"
|
2011-11-02 17:44:16 +04:00
|
|
|
#include "nsIDOMNavigator.h"
|
2013-07-18 07:23:52 +04:00
|
|
|
#include "nsIDOMMobileMessageManager.h"
|
|
|
|
#include "nsIMozNavigatorNetwork.h"
|
2011-11-02 17:44:16 +04:00
|
|
|
#include "nsAutoPtr.h"
|
2011-12-01 12:28:16 +04:00
|
|
|
#include "nsWeakReference.h"
|
2012-08-02 10:29:34 +04:00
|
|
|
#include "DeviceStorage.h"
|
2013-06-20 22:34:38 +04:00
|
|
|
#include "nsWrapperCache.h"
|
2011-11-02 17:44:16 +04:00
|
|
|
|
|
|
|
class nsPluginArray;
|
|
|
|
class nsMimeTypeArray;
|
2011-12-01 12:28:16 +04:00
|
|
|
class nsPIDOMWindow;
|
2012-01-16 16:23:44 +04:00
|
|
|
class nsIDOMMozConnection;
|
2011-11-02 17:44:16 +04:00
|
|
|
|
2013-04-12 22:46:36 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
2013-04-12 22:47:47 +04:00
|
|
|
class Geolocation;
|
2013-07-12 18:35:44 +04:00
|
|
|
class systemMessageCallback;
|
2013-04-12 22:46:36 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-06-03 11:35:15 +04:00
|
|
|
#ifdef MOZ_MEDIA_NAVIGATOR
|
|
|
|
#include "nsIDOMNavigatorUserMedia.h"
|
|
|
|
#endif
|
|
|
|
|
2012-01-10 02:28:47 +04:00
|
|
|
#ifdef MOZ_B2G_RIL
|
2013-07-18 07:23:52 +04:00
|
|
|
class nsIDOMMozMobileConnection;
|
|
|
|
class nsIDOMMozCellBroadcast;
|
|
|
|
class nsIDOMMozVoicemail;
|
|
|
|
class nsIDOMMozIccManager;
|
|
|
|
#endif // MOZ_B2G_RIL
|
2012-01-10 02:28:47 +04:00
|
|
|
|
2013-08-12 20:08:19 +04:00
|
|
|
#ifdef MOZ_B2G_BT
|
|
|
|
class nsIDOMBluetoothManager;
|
|
|
|
#endif // MOZ_B2G_BT
|
|
|
|
|
2012-07-03 04:16:55 +04:00
|
|
|
#include "nsIDOMNavigatorSystemMessages.h"
|
|
|
|
|
2012-07-31 01:59:05 +04:00
|
|
|
#include "DOMCameraManager.h"
|
|
|
|
|
2011-11-02 17:44:16 +04:00
|
|
|
//*****************************************************************************
|
|
|
|
// Navigator: Script "navigator" object
|
|
|
|
//*****************************************************************************
|
|
|
|
|
2013-07-12 18:35:35 +04:00
|
|
|
void NS_GetNavigatorAppName(nsAString& aAppName);
|
|
|
|
|
2011-11-02 17:44:16 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2011-11-02 19:27:06 +04:00
|
|
|
namespace battery {
|
|
|
|
class BatteryManager;
|
|
|
|
} // namespace battery
|
|
|
|
|
2013-04-10 18:20:43 +04:00
|
|
|
class DesktopNotificationCenter;
|
2013-03-09 11:21:47 +04:00
|
|
|
class MobileMessageManager;
|
2013-07-12 18:35:35 +04:00
|
|
|
class MozIdleObserver;
|
2013-07-12 18:36:32 +04:00
|
|
|
#ifdef MOZ_GAMEPAD
|
|
|
|
class Gamepad;
|
|
|
|
#endif // MOZ_GAMEPAD
|
2013-07-12 18:37:21 +04:00
|
|
|
#ifdef MOZ_MEDIA_NAVIGATOR
|
|
|
|
class MozDOMGetUserMediaSuccessCallback;
|
|
|
|
class MozDOMGetUserMediaErrorCallback;
|
|
|
|
class MozGetUserMediaDevicesSuccessCallback;
|
|
|
|
#endif // MOZ_MEDIA_NAVIGATOR
|
2011-11-25 04:48:57 +04:00
|
|
|
|
2013-04-08 14:34:10 +04:00
|
|
|
namespace icc {
|
|
|
|
#ifdef MOZ_B2G_RIL
|
|
|
|
class IccManager;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2012-01-16 21:14:56 +04:00
|
|
|
namespace network {
|
|
|
|
class Connection;
|
2012-08-27 21:34:10 +04:00
|
|
|
#ifdef MOZ_B2G_RIL
|
2012-04-20 01:33:25 +04:00
|
|
|
class MobileConnection;
|
2012-08-27 21:34:10 +04:00
|
|
|
#endif
|
2012-01-16 21:14:56 +04:00
|
|
|
} // namespace Connection;
|
|
|
|
|
2013-07-15 12:27:19 +04:00
|
|
|
#ifdef MOZ_B2G_RIL
|
|
|
|
namespace telephony {
|
|
|
|
class Telephony;
|
|
|
|
} // namespace Telephony;
|
|
|
|
#endif
|
|
|
|
|
2012-01-20 07:24:00 +04:00
|
|
|
namespace power {
|
|
|
|
class PowerManager;
|
|
|
|
} // namespace power
|
|
|
|
|
2012-09-11 10:05:00 +04:00
|
|
|
namespace time {
|
|
|
|
class TimeManager;
|
|
|
|
} // namespace time
|
|
|
|
|
2012-11-30 02:52:03 +04:00
|
|
|
namespace system {
|
|
|
|
#ifdef MOZ_AUDIO_CHANNEL_MANAGER
|
|
|
|
class AudioChannelManager;
|
|
|
|
#endif
|
|
|
|
} // namespace system
|
|
|
|
|
2012-01-16 16:23:28 +04:00
|
|
|
class Navigator : public nsIDOMNavigator
|
2013-07-18 07:23:52 +04:00
|
|
|
, public nsIMozNavigatorNetwork
|
2013-06-20 22:34:38 +04:00
|
|
|
, public nsWrapperCache
|
2011-11-02 17:44:16 +04:00
|
|
|
{
|
|
|
|
public:
|
2011-12-01 12:28:16 +04:00
|
|
|
Navigator(nsPIDOMWindow *aInnerWindow);
|
2011-11-02 17:44:16 +04:00
|
|
|
virtual ~Navigator();
|
|
|
|
|
2013-06-20 22:34:38 +04:00
|
|
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
|
|
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_AMBIGUOUS(Navigator,
|
|
|
|
nsIDOMNavigator)
|
2011-11-02 17:44:16 +04:00
|
|
|
NS_DECL_NSIDOMNAVIGATOR
|
2013-07-18 07:23:52 +04:00
|
|
|
NS_DECL_NSIMOZNAVIGATORNETWORK
|
2012-02-20 19:15:19 +04:00
|
|
|
|
2011-11-02 17:44:16 +04:00
|
|
|
static void Init();
|
|
|
|
|
2011-12-01 12:28:16 +04:00
|
|
|
void Invalidate();
|
2013-07-12 18:35:35 +04:00
|
|
|
nsPIDOMWindow *GetWindow() const
|
2013-06-20 22:34:38 +04:00
|
|
|
{
|
|
|
|
return mWindow;
|
|
|
|
}
|
2011-11-02 17:44:16 +04:00
|
|
|
|
2011-12-01 12:28:16 +04:00
|
|
|
void RefreshMIMEArray();
|
2011-11-02 17:44:16 +04:00
|
|
|
|
|
|
|
static bool HasDesktopNotificationSupport();
|
|
|
|
|
2013-06-23 16:03:39 +04:00
|
|
|
size_t SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
|
2011-11-02 17:44:16 +04:00
|
|
|
|
2011-12-28 17:39:55 +04:00
|
|
|
/**
|
|
|
|
* For use during document.write where our inner window changes.
|
|
|
|
*/
|
|
|
|
void SetWindow(nsPIDOMWindow *aInnerWindow);
|
|
|
|
|
2012-06-03 11:35:15 +04:00
|
|
|
/**
|
|
|
|
* Called when the inner window navigates to a new page.
|
|
|
|
*/
|
|
|
|
void OnNavigation();
|
|
|
|
|
2012-07-03 04:16:55 +04:00
|
|
|
// Helper to initialize mMessagesManager.
|
|
|
|
nsresult EnsureMessagesManager();
|
2013-04-30 17:01:46 +04:00
|
|
|
|
2013-07-12 18:35:35 +04:00
|
|
|
// WebIDL API
|
|
|
|
void GetAppName(nsString& aAppName)
|
|
|
|
{
|
|
|
|
NS_GetNavigatorAppName(aAppName);
|
|
|
|
}
|
|
|
|
void GetAppVersion(nsString& aAppVersion, ErrorResult& aRv)
|
|
|
|
{
|
|
|
|
aRv = GetAppVersion(aAppVersion);
|
|
|
|
}
|
|
|
|
void GetPlatform(nsString& aPlatform, ErrorResult& aRv)
|
|
|
|
{
|
|
|
|
aRv = GetPlatform(aPlatform);
|
|
|
|
}
|
|
|
|
void GetUserAgent(nsString& aUserAgent, ErrorResult& aRv)
|
|
|
|
{
|
|
|
|
aRv = GetUserAgent(aUserAgent);
|
|
|
|
}
|
|
|
|
// The XPCOM GetProduct is OK
|
|
|
|
// The XPCOM GetLanguage is OK
|
|
|
|
bool OnLine();
|
|
|
|
void RegisterProtocolHandler(const nsAString& aScheme, const nsAString& aURL,
|
2013-07-18 07:23:52 +04:00
|
|
|
const nsAString& aTitle, ErrorResult& aRv);
|
2013-07-12 18:35:35 +04:00
|
|
|
void RegisterContentHandler(const nsAString& aMIMEType, const nsAString& aURL,
|
2013-07-18 07:23:52 +04:00
|
|
|
const nsAString& aTitle, ErrorResult& aRv);
|
2013-07-12 18:35:35 +04:00
|
|
|
nsMimeTypeArray* GetMimeTypes(ErrorResult& aRv);
|
|
|
|
nsPluginArray* GetPlugins(ErrorResult& aRv);
|
|
|
|
// The XPCOM GetDoNotTrack is ok
|
|
|
|
Geolocation* GetGeolocation(ErrorResult& aRv);
|
|
|
|
battery::BatteryManager* GetBattery(ErrorResult& aRv);
|
|
|
|
void Vibrate(uint32_t aDuration, ErrorResult& aRv);
|
|
|
|
void Vibrate(const nsTArray<uint32_t>& aDuration, ErrorResult& aRv);
|
|
|
|
void GetAppCodeName(nsString& aAppCodeName, ErrorResult& aRv)
|
|
|
|
{
|
|
|
|
aRv = GetAppCodeName(aAppCodeName);
|
|
|
|
}
|
|
|
|
void GetOscpu(nsString& aOscpu, ErrorResult& aRv)
|
|
|
|
{
|
|
|
|
aRv = GetOscpu(aOscpu);
|
|
|
|
}
|
|
|
|
// The XPCOM GetVendor is OK
|
|
|
|
// The XPCOM GetVendorSub is OK
|
|
|
|
// The XPCOM GetProductSub is OK
|
|
|
|
bool CookieEnabled();
|
|
|
|
void GetBuildID(nsString& aBuildID, ErrorResult& aRv)
|
|
|
|
{
|
|
|
|
aRv = GetBuildID(aBuildID);
|
|
|
|
}
|
|
|
|
nsIDOMMozPowerManager* GetMozPower(ErrorResult& aRv);
|
|
|
|
bool JavaEnabled(ErrorResult& aRv);
|
|
|
|
bool TaintEnabled()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
void AddIdleObserver(MozIdleObserver& aObserver, ErrorResult& aRv);
|
|
|
|
void RemoveIdleObserver(MozIdleObserver& aObserver, ErrorResult& aRv);
|
|
|
|
already_AddRefed<nsIDOMMozWakeLock> RequestWakeLock(const nsAString &aTopic,
|
|
|
|
ErrorResult& aRv);
|
2013-07-12 18:35:44 +04:00
|
|
|
nsDOMDeviceStorage* GetDeviceStorage(const nsAString& aType,
|
|
|
|
ErrorResult& aRv);
|
|
|
|
void GetDeviceStorages(const nsAString& aType,
|
|
|
|
nsTArray<nsRefPtr<nsDOMDeviceStorage> >& aStores,
|
|
|
|
ErrorResult& aRv);
|
|
|
|
DesktopNotificationCenter* GetMozNotification(ErrorResult& aRv);
|
|
|
|
bool MozIsLocallyAvailable(const nsAString& aURI, bool aWhenOffline,
|
2013-07-18 07:23:52 +04:00
|
|
|
ErrorResult& aRv);
|
2013-07-12 18:35:44 +04:00
|
|
|
nsIDOMMozMobileMessageManager* GetMozMobileMessage();
|
|
|
|
nsIDOMMozConnection* GetMozConnection();
|
|
|
|
nsDOMCameraManager* GetMozCameras(ErrorResult& aRv);
|
|
|
|
void MozSetMessageHandler(const nsAString& aType,
|
|
|
|
systemMessageCallback* aCallback,
|
|
|
|
ErrorResult& aRv);
|
|
|
|
bool MozHasPendingMessage(const nsAString& aType, ErrorResult& aRv);
|
2013-07-12 18:36:13 +04:00
|
|
|
#ifdef MOZ_B2G_RIL
|
2013-07-15 12:27:19 +04:00
|
|
|
telephony::Telephony* GetMozTelephony(ErrorResult& aRv);
|
2013-07-12 18:36:22 +04:00
|
|
|
nsIDOMMozMobileConnection* GetMozMobileConnection(ErrorResult& aRv);
|
|
|
|
nsIDOMMozCellBroadcast* GetMozCellBroadcast(ErrorResult& aRv);
|
|
|
|
nsIDOMMozVoicemail* GetMozVoicemail(ErrorResult& aRv);
|
|
|
|
nsIDOMMozIccManager* GetMozIccManager(ErrorResult& aRv);
|
|
|
|
#endif // MOZ_B2G_RIL
|
2013-07-12 18:36:32 +04:00
|
|
|
#ifdef MOZ_GAMEPAD
|
|
|
|
void GetGamepads(nsTArray<nsRefPtr<Gamepad> >& aGamepads, ErrorResult& aRv);
|
|
|
|
#endif // MOZ_GAMEPAD
|
|
|
|
#ifdef MOZ_B2G_BT
|
2013-08-12 20:08:19 +04:00
|
|
|
nsIDOMBluetoothManager* GetMozBluetooth(ErrorResult& aRv);
|
2013-07-12 18:36:32 +04:00
|
|
|
#endif // MOZ_B2G_BT
|
|
|
|
#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
|
2013-07-12 18:37:21 +04:00
|
|
|
#ifdef MOZ_MEDIA_NAVIGATOR
|
|
|
|
void MozGetUserMedia(nsIMediaStreamOptions* aParams,
|
|
|
|
MozDOMGetUserMediaSuccessCallback* aOnSuccess,
|
|
|
|
MozDOMGetUserMediaErrorCallback* aOnError,
|
|
|
|
ErrorResult& aRv);
|
|
|
|
void MozGetUserMediaDevices(MozGetUserMediaDevicesSuccessCallback* aOnSuccess,
|
|
|
|
MozDOMGetUserMediaErrorCallback* aOnError,
|
|
|
|
ErrorResult& aRv);
|
|
|
|
#endif // MOZ_MEDIA_NAVIGATOR
|
2013-07-12 18:37:23 +04:00
|
|
|
bool DoNewResolve(JSContext* aCx, JS::Handle<JSObject*> aObject,
|
2013-07-16 09:31:03 +04:00
|
|
|
JS::Handle<jsid> aId, JS::MutableHandle<JS::Value> aValue);
|
2013-08-04 07:38:54 +04:00
|
|
|
void GetOwnPropertyNames(JSContext* aCx, nsTArray<nsString>& aNames,
|
|
|
|
ErrorResult& aRv);
|
2013-07-12 18:35:35 +04:00
|
|
|
|
|
|
|
// WebIDL helper methods
|
|
|
|
static bool HasBatterySupport(JSContext* /* unused*/, JSObject* /*unused */);
|
|
|
|
static bool HasPowerSupport(JSContext* /* unused */, JSObject* aGlobal);
|
|
|
|
static bool HasIdleSupport(JSContext* /* unused */, JSObject* aGlobal);
|
|
|
|
static bool HasWakeLockSupport(JSContext* /* unused*/, JSObject* /*unused */);
|
2013-07-12 18:35:44 +04:00
|
|
|
static bool HasDesktopNotificationSupport(JSContext* /* unused*/,
|
|
|
|
JSObject* /*unused */)
|
|
|
|
{
|
|
|
|
return HasDesktopNotificationSupport();
|
|
|
|
}
|
|
|
|
static bool HasMobileMessageSupport(JSContext* /* unused */,
|
|
|
|
JSObject* aGlobal);
|
|
|
|
static bool HasCameraSupport(JSContext* /* unused */,
|
|
|
|
JSObject* aGlobal);
|
2013-07-12 18:36:13 +04:00
|
|
|
#ifdef MOZ_B2G_RIL
|
|
|
|
static bool HasTelephonySupport(JSContext* /* unused */,
|
|
|
|
JSObject* aGlobal);
|
2013-07-12 18:36:22 +04:00
|
|
|
static bool HasMobileConnectionSupport(JSContext* /* unused */,
|
|
|
|
JSObject* aGlobal);
|
|
|
|
static bool HasCellBroadcastSupport(JSContext* /* unused */,
|
|
|
|
JSObject* aGlobal);
|
|
|
|
static bool HasVoicemailSupport(JSContext* /* unused */,
|
|
|
|
JSObject* aGlobal);
|
|
|
|
static bool HasIccManagerSupport(JSContext* /* unused */,
|
|
|
|
JSObject* aGlobal);
|
2013-07-12 18:36:13 +04:00
|
|
|
#endif // MOZ_B2G_RIL
|
2013-07-12 18:36:32 +04:00
|
|
|
#ifdef MOZ_B2G_BT
|
|
|
|
static bool HasBluetoothSupport(JSContext* /* unused */, JSObject* aGlobal);
|
|
|
|
#endif // MOZ_B2G_BT
|
|
|
|
#ifdef MOZ_TIME_MANAGER
|
|
|
|
static bool HasTimeSupport(JSContext* /* unused */, JSObject* aGlobal);
|
|
|
|
#endif // MOZ_TIME_MANAGER
|
2013-07-12 18:37:21 +04:00
|
|
|
#ifdef MOZ_MEDIA_NAVIGATOR
|
|
|
|
static bool HasUserMediaSupport(JSContext* /* unused */,
|
|
|
|
JSObject* /* unused */);
|
|
|
|
#endif // MOZ_MEDIA_NAVIGATOR
|
2013-07-12 18:36:32 +04:00
|
|
|
|
2013-08-07 19:04:10 +04:00
|
|
|
static bool HasPushNotificationsSupport(JSContext* /* unused */,
|
|
|
|
JSObject* aGlobal);
|
|
|
|
|
2013-07-12 18:35:35 +04:00
|
|
|
nsPIDOMWindow* GetParentObject() const
|
|
|
|
{
|
|
|
|
return GetWindow();
|
|
|
|
}
|
|
|
|
|
2013-07-12 18:37:23 +04:00
|
|
|
virtual JSObject* WrapObject(JSContext* cx,
|
|
|
|
JS::Handle<JSObject*> scope) MOZ_OVERRIDE;
|
|
|
|
|
2011-11-02 17:44:16 +04:00
|
|
|
private:
|
2012-10-02 13:08:02 +04:00
|
|
|
bool CheckPermission(const char* type);
|
2013-07-12 18:35:35 +04:00
|
|
|
static bool CheckPermission(nsPIDOMWindow* aWindow, const char* aType);
|
|
|
|
// GetWindowFromGlobal returns the inner window for this global, if
|
|
|
|
// any, else null.
|
|
|
|
static already_AddRefed<nsPIDOMWindow> GetWindowFromGlobal(JSObject* aGlobal);
|
|
|
|
|
2011-11-02 17:44:16 +04:00
|
|
|
nsRefPtr<nsMimeTypeArray> mMimeTypes;
|
|
|
|
nsRefPtr<nsPluginArray> mPlugins;
|
2013-04-12 22:47:47 +04:00
|
|
|
nsRefPtr<Geolocation> mGeolocation;
|
2013-04-10 18:20:43 +04:00
|
|
|
nsRefPtr<DesktopNotificationCenter> mNotification;
|
2011-11-02 19:27:06 +04:00
|
|
|
nsRefPtr<battery::BatteryManager> mBatteryManager;
|
2012-01-20 07:24:00 +04:00
|
|
|
nsRefPtr<power::PowerManager> mPowerManager;
|
2013-03-09 11:21:47 +04:00
|
|
|
nsRefPtr<MobileMessageManager> mMobileMessageManager;
|
2012-01-10 02:28:47 +04:00
|
|
|
#ifdef MOZ_B2G_RIL
|
2013-07-15 12:27:19 +04:00
|
|
|
nsRefPtr<telephony::Telephony> mTelephony;
|
2012-07-19 07:27:19 +04:00
|
|
|
nsCOMPtr<nsIDOMMozVoicemail> mVoicemail;
|
2012-01-10 02:28:47 +04:00
|
|
|
#endif
|
2012-01-16 21:14:56 +04:00
|
|
|
nsRefPtr<network::Connection> mConnection;
|
2012-08-27 21:34:10 +04:00
|
|
|
#ifdef MOZ_B2G_RIL
|
2012-04-20 01:33:25 +04:00
|
|
|
nsRefPtr<network::MobileConnection> mMobileConnection;
|
2012-12-04 06:38:25 +04:00
|
|
|
nsCOMPtr<nsIDOMMozCellBroadcast> mCellBroadcast;
|
2013-04-08 14:34:10 +04:00
|
|
|
nsRefPtr<icc::IccManager> mIccManager;
|
2012-08-27 21:34:10 +04:00
|
|
|
#endif
|
2012-02-20 19:15:19 +04:00
|
|
|
#ifdef MOZ_B2G_BT
|
2013-08-12 20:08:19 +04:00
|
|
|
nsCOMPtr<nsIDOMBluetoothManager> mBluetooth;
|
2012-11-30 02:52:03 +04:00
|
|
|
#endif
|
|
|
|
#ifdef MOZ_AUDIO_CHANNEL_MANAGER
|
|
|
|
nsRefPtr<system::AudioChannelManager> mAudioChannelManager;
|
2012-02-20 19:15:19 +04:00
|
|
|
#endif
|
2012-07-31 01:59:05 +04:00
|
|
|
nsRefPtr<nsDOMCameraManager> mCameraManager;
|
2012-07-03 04:16:55 +04:00
|
|
|
nsCOMPtr<nsIDOMNavigatorSystemMessages> mMessagesManager;
|
2012-08-02 10:29:34 +04:00
|
|
|
nsTArray<nsRefPtr<nsDOMDeviceStorage> > mDeviceStorageStores;
|
2012-09-11 10:05:00 +04:00
|
|
|
nsRefPtr<time::TimeManager> mTimeManager;
|
2013-06-20 22:34:38 +04:00
|
|
|
nsCOMPtr<nsPIDOMWindow> mWindow;
|
2011-11-02 17:44:16 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
nsresult NS_GetNavigatorUserAgent(nsAString& aUserAgent);
|
|
|
|
nsresult NS_GetNavigatorPlatform(nsAString& aPlatform);
|
|
|
|
nsresult NS_GetNavigatorAppVersion(nsAString& aAppVersion);
|
|
|
|
|
|
|
|
#endif // mozilla_dom_Navigator_h
|