Skip to content

Commit

Permalink
Bump GV to v73.0.20191212095326 (#2467)
Browse files Browse the repository at this point in the history
* By passing WebXR permission prompt.

* Bump GV to v73.0.20191212095326
  • Loading branch information
daoshengmu authored and bluemarvin committed Dec 12, 2019
1 parent bfee54e commit 52a5057
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
Expand Up @@ -115,6 +115,11 @@ public void onAndroidPermissionsRequest(GeckoSession aSession, String[] permissi
@Override
public void onContentPermissionRequest(GeckoSession aSession, String aUri, int aType, Callback callback) {
Log.d(LOGTAG, "onContentPermissionRequest: " + aUri + " " + aType);
if (aType == PERMISSION_XR) {
callback.grant();
return;
}

PermissionWidget.PermissionType type;
if (aType == PERMISSION_DESKTOP_NOTIFICATION) {
type = PermissionWidget.PermissionType.Notification;
Expand Down
48 changes: 24 additions & 24 deletions app/src/main/cpp/moz_external_vr.h
Expand Up @@ -47,8 +47,8 @@ namespace gfx {
// and mapped files if we have both release and nightlies
// running at the same time? Or...what if we have multiple
// release builds running on same machine? (Bug 1563232)
#define SHMEM_VERSION "0.0.5"
static const int32_t kVRExternalVersion = 12;
#define SHMEM_VERSION "0.0.6"
static const int32_t kVRExternalVersion = 13;

// We assign VR presentations to groups with a bitmask.
// Currently, we will only display either content or chrome.
Expand Down Expand Up @@ -103,30 +103,30 @@ enum class ControllerCapabilityFlags : uint16_t {
/**
* Cap_Position is set if the Gamepad is capable of tracking its position.
*/
Cap_Position = 1 << 1,
Cap_Position = 1 << 1,
/**
* Cap_Orientation is set if the Gamepad is capable of tracking its
* orientation.
*/
Cap_Orientation = 1 << 2,
Cap_Orientation = 1 << 2,
/**
* Cap_AngularAcceleration is set if the Gamepad is capable of tracking its
* angular acceleration.
*/
Cap_AngularAcceleration = 1 << 3,
Cap_AngularAcceleration = 1 << 3,
/**
* Cap_LinearAcceleration is set if the Gamepad is capable of tracking its
* linear acceleration.
*/
Cap_LinearAcceleration = 1 << 4,
Cap_LinearAcceleration = 1 << 4,
/**
* Cap_GripSpacePosition is set if the Gamepad has a grip space position.
*/
Cap_GripSpacePosition = 1 << 5,
Cap_GripSpacePosition = 1 << 5,
/**
* Cap_All used for validity checking during IPC serialization
*/
Cap_All = (1 << 6) - 1
Cap_All = (1 << 6) - 1
};

#endif // ifndef MOZILLA_INTERNAL_API
Expand All @@ -142,75 +142,75 @@ enum class VRDisplayCapabilityFlags : uint16_t {
/**
* Cap_Position is set if the VRDisplay is capable of tracking its position.
*/
Cap_Position = 1 << 1,
Cap_Position = 1 << 1,
/**
* Cap_Orientation is set if the VRDisplay is capable of tracking its
* orientation.
*/
Cap_Orientation = 1 << 2,
Cap_Orientation = 1 << 2,
/**
* Cap_Present is set if the VRDisplay is capable of presenting content to an
* HMD or similar device. Can be used to indicate "magic window" devices that
* are capable of 6DoF tracking but for which requestPresent is not
* meaningful. If false then calls to requestPresent should always fail, and
* getEyeParameters should return null.
*/
Cap_Present = 1 << 3,
Cap_Present = 1 << 3,
/**
* Cap_External is set if the VRDisplay is separate from the device's
* primary display. If presenting VR content will obscure
* other content on the device, this should be un-set. When
* un-set, the application should not attempt to mirror VR content
* or update non-VR UI because that content will not be visible.
*/
Cap_External = 1 << 4,
Cap_External = 1 << 4,
/**
* Cap_AngularAcceleration is set if the VRDisplay is capable of tracking its
* angular acceleration.
*/
Cap_AngularAcceleration = 1 << 5,
Cap_AngularAcceleration = 1 << 5,
/**
* Cap_LinearAcceleration is set if the VRDisplay is capable of tracking its
* linear acceleration.
*/
Cap_LinearAcceleration = 1 << 6,
Cap_LinearAcceleration = 1 << 6,
/**
* Cap_StageParameters is set if the VRDisplay is capable of room scale VR
* and can report the StageParameters to describe the space.
*/
Cap_StageParameters = 1 << 7,
Cap_StageParameters = 1 << 7,
/**
* Cap_MountDetection is set if the VRDisplay is capable of sensing when the
* user is wearing the device.
*/
Cap_MountDetection = 1 << 8,
Cap_MountDetection = 1 << 8,
/**
* Cap_PositionEmulated is set if the VRDisplay is capable of setting a
* emulated position (e.g. neck model) even if still doesn't support 6DOF
* tracking.
*/
Cap_PositionEmulated = 1 << 9,
Cap_PositionEmulated = 1 << 9,
/**
* Cap_Inline is set if the device can be used for WebXR inline sessions
* where the content is displayed within an element on the page.
*/
Cap_Inline = 1 << 10,
Cap_Inline = 1 << 10,
/**
* Cap_ImmersiveVR is set if the device can give exclusive access to the
* XR device display and that content is not intended to be integrated
* with the user's environment
*/
Cap_ImmersiveVR = 1 << 11,
Cap_ImmersiveVR = 1 << 11,
/**
* Cap_ImmersiveAR is set if the device can give exclusive access to the
* XR device display and that content is intended to be integrated with
* the user's environment.
*/
Cap_ImmersiveAR = 1 << 12,
Cap_ImmersiveAR = 1 << 12,
/**
* Cap_All used for validity checking during IPC serialization
*/
Cap_All = (1 << 13) - 1
Cap_All = (1 << 13) - 1
};

#ifdef MOZILLA_INTERNAL_API
Expand Down Expand Up @@ -365,12 +365,12 @@ struct VRControllerState {
// start frame Id of the most recent primary squeeze
// action, or 0 if the squeeze action has never occurred.
uint64_t squeezeActionStartFrameId;
// End frame Id of the most recent primary squeez
// End frame Id of the most recent primary squeeze
// action, or 0 if action never occurred.
// If squeezeActionStopFrameId is less than
// squeezetActionStartFrameId, then the squeeze
// squeezeActionStartFrameId, then the squeeze
// action has not ended yet.
uint64_t squeezeActionEndFrameId;
uint64_t squeezeActionStopFrameId;

uint32_t numButtons;
uint32_t numAxes;
Expand Down
2 changes: 1 addition & 1 deletion versions.gradle
Expand Up @@ -24,7 +24,7 @@ ext.deps = [:]
def versions = [:]
// GeckoView versions can be found here:
// https://maven.mozilla.org/?prefix=maven2/org/mozilla/geckoview/
versions.gecko_view = "73.0.20191211094640"
versions.gecko_view = "73.0.20191212095326"
versions.android_components = "21.0.0"
// Note that android-components also depends on application-services,
// and in fact is our main source of appservices-related functionality.
Expand Down

0 comments on commit 52a5057

Please sign in to comment.