Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d4e9102d6bb9aeac9df1844b949306945884d9ec
      
https://github.com/WebKit/WebKit/commit/d4e9102d6bb9aeac9df1844b949306945884d9ec
  Author: Simon Pena <sp...@igalia.com>
  Date:   2025-08-12 (Tue, 12 Aug 2025)

  Changed paths:
    M Source/WebKit/UIProcess/API/APIUIClient.h
    M Source/WebKit/UIProcess/API/glib/WebKitUIClient.cpp
    M Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp
    M Source/WebKit/UIProcess/API/glib/WebKitWebView.h.in
    M Source/WebKit/UIProcess/API/glib/WebKitWebViewPrivate.h
    M Source/WebKit/UIProcess/XR/openxr/PlatformXROpenXR.cpp
    M Tools/MiniBrowser/wpe/main.cpp

  Log Message:
  -----------
  [GTK][WPE][OpenXR] Expose a way to query the immersive session status
https://bugs.webkit.org/show_bug.cgi?id=297048

Reviewed by Carlos Garcia Campos and Adrian Perez de Castro.

A new property "is-immersive-mode-enabled" is added to WebKitWebView,
allowing clients to query its value and to subscribe to its notify
signal.

The property is synchronised with the OpenXR coordinator's entering and
exiting the session, where the WebPageProxy's UI client is used to
report back to the WebView.

This renames webkit_web_view_end_immersive_session into
webkit_web_view_leave_immersive_mode for better consistency.

* Source/WebKit/UIProcess/API/APIUIClient.h: two new methods to report
  entering and exiting the XR session.
(API::UIClient::didStartXRSession):
(API::UIClient::didEndXRSession):
* Source/WebKit/UIProcess/API/glib/WebKitUIClient.cpp: implementing the
  UI client methods in terms of updating the immersive mode enabled
property.
* Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp: add the new
  property, rename method leaving the mode.
(webkitWebViewGetProperty):
(webkit_web_view_class_init):
* Source/WebKit/UIProcess/API/glib/WebKitWebView.h.in: rename method
  leaving the mode.
* Source/WebKit/UIProcess/API/glib/WebKitWebViewPrivate.h: adding method
  setting the immersive mode enabled property.
* Source/WebKit/UIProcess/XR/openxr/PlatformXROpenXR.cpp: report when we
  enter and leave the XR session.
(WebKit::OpenXRCoordinator::startSession):
(WebKit::OpenXRCoordinator::endSessionIfExists):
* Tools/MiniBrowser/wpe/main.cpp: query whether we're in immersive mode
  before attempting to leave.

Canonical link: https://commits.webkit.org/298568@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to