Chromium Code Reviews| 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 f400ceeb49a1c8fef85de4e9d101bf2e4fa4be0f..e58c5a3dcdecae9887772439a619c29048c68b0c 100644 |
| --- a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp |
| +++ b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp |
| @@ -100,4 +100,12 @@ const char* NavigatorVR::supplementName() |
| return "NavigatorVR"; |
| } |
| +void NavigatorVR::fireVRDisplayPresentChange(VRDisplay* display) |
| +{ |
| + if (m_frame) { |
|
haraken
2016/08/24 01:02:34
Add '&& m_frame->localDOMWindow()' just in case.
|
| + m_frame->localDOMWindow()->enqueueWindowEvent( |
| + VRDisplayEvent::create(EventTypeNames::vrdisplaypresentchange, true, false, display, "")); |
| + } |
| +} |
| + |
| } // namespace blink |