| Index: third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
|
| diff --git a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
|
| index 9ef4489c674985325f37a19d9de3a3ccbf984b27..b6d8ccbbbb27cfe128ab0e730dba519dddc20993 100644
|
| --- a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
|
| +++ b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
|
| @@ -104,6 +104,16 @@ void NavigatorVR::fireVRDisplayPresentChange(VRDisplay* display) {
|
| }
|
| }
|
|
|
| +void NavigatorVR::fireVrDisplayOnBlur(VRDisplay* display) {
|
| + fireVREvent(VRDisplayEvent::create(EventTypeNames::vrdisplayblur, true, false,
|
| + display, ""));
|
| +}
|
| +
|
| +void NavigatorVR::fireVrDisplayOnFocus(VRDisplay* display) {
|
| + fireVREvent(VRDisplayEvent::create(EventTypeNames::vrdisplayfocus, true,
|
| + false, display, ""));
|
| +}
|
| +
|
| void NavigatorVR::fireVREvent(VRDisplayEvent* event) {
|
| if (frame() && frame()->localDOMWindow()) {
|
| frame()->localDOMWindow()->enqueueWindowEvent(event);
|
|
|