Commit e6887237 authored by Gyuyoung Kim's avatar Gyuyoung Kim Committed by Commit Bot

Convert mojo::Binding to mojo::Receiver in XRSession

This CL applies mojo::Receiver to |client_receiver_|
member variable.

Bug: 955171, 978694
Change-Id: I6c473edc4cb46d2e92c6dd0e6a3b8a9343b2f978
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1808658Reviewed-by: default avatarAlexander Cooper <alcooper@chromium.org>
Reviewed-by: default avatarOksana Zhuravlova <oksamyt@chromium.org>
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Cr-Commit-Position: refs/heads/master@{#697425}
parent 83864b2d
...@@ -151,7 +151,8 @@ class XRSession::XRSessionResizeObserverDelegate final ...@@ -151,7 +151,8 @@ class XRSession::XRSessionResizeObserverDelegate final
XRSession::XRSession( XRSession::XRSession(
XR* xr, XR* xr,
device::mojom::blink::XRSessionClientRequest client_request, mojo::PendingReceiver<device::mojom::blink::XRSessionClient>
client_receiver,
XRSession::SessionMode mode, XRSession::SessionMode mode,
EnvironmentBlendMode environment_blend_mode, EnvironmentBlendMode environment_blend_mode,
bool uses_input_eventing, bool uses_input_eventing,
...@@ -164,7 +165,7 @@ XRSession::XRSession( ...@@ -164,7 +165,7 @@ XRSession::XRSession(
world_information_(MakeGarbageCollected<XRWorldInformation>(this)), world_information_(MakeGarbageCollected<XRWorldInformation>(this)),
enabled_features_(std::move(enabled_features)), enabled_features_(std::move(enabled_features)),
input_sources_(MakeGarbageCollected<XRInputSourceArray>()), input_sources_(MakeGarbageCollected<XRInputSourceArray>()),
client_binding_(this, std::move(client_request)), client_receiver_(this, std::move(client_receiver)),
input_binding_(this), input_binding_(this),
callback_collection_( callback_collection_(
MakeGarbageCollected<XRFrameRequestCallbackCollection>( MakeGarbageCollected<XRFrameRequestCallbackCollection>(
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "base/containers/span.h" #include "base/containers/span.h"
#include "device/vr/public/mojom/vr_service.mojom-blink.h" #include "device/vr/public/mojom/vr_service.mojom-blink.h"
#include "mojo/public/cpp/bindings/associated_binding.h" #include "mojo/public/cpp/bindings/associated_binding.h"
#include "mojo/public/cpp/bindings/binding.h" #include "mojo/public/cpp/bindings/receiver.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h" #include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/core/dom/events/event_target.h" #include "third_party/blink/renderer/core/dom/events/event_target.h"
#include "third_party/blink/renderer/core/typed_arrays/array_buffer_view_helpers.h" #include "third_party/blink/renderer/core/typed_arrays/array_buffer_view_helpers.h"
...@@ -69,7 +69,8 @@ class XRSession final ...@@ -69,7 +69,8 @@ class XRSession final
}; };
XRSession(XR* xr, XRSession(XR* xr,
device::mojom::blink::XRSessionClientRequest client_request, mojo::PendingReceiver<device::mojom::blink::XRSessionClient>
client_receiver,
SessionMode mode, SessionMode mode,
EnvironmentBlendMode environment_blend_mode, EnvironmentBlendMode environment_blend_mode,
bool uses_input_eventing, bool uses_input_eventing,
...@@ -305,7 +306,7 @@ class XRSession final ...@@ -305,7 +306,7 @@ class XRSession final
unsigned int stage_parameters_id_ = 0; unsigned int stage_parameters_id_ = 0;
device::mojom::blink::VRDisplayInfoPtr display_info_; device::mojom::blink::VRDisplayInfoPtr display_info_;
mojo::Binding<device::mojom::blink::XRSessionClient> client_binding_; mojo::Receiver<device::mojom::blink::XRSessionClient> client_receiver_;
mojo::AssociatedBinding<device::mojom::blink::XRInputSourceButtonListener> mojo::AssociatedBinding<device::mojom::blink::XRInputSourceButtonListener>
input_binding_; input_binding_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment