Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(996)

Unified Diff: third_party/WebKit/Source/modules/vr/NavigatorVR.cpp

Issue 2375873003: Make DOMWindowProperty::m_frame private (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/storage/Storage.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 356d998a0629dfd7c7dbbd43f929b96511d3fcce..377d668f432018351b4fceaa3c427a6e37219ccd 100644
--- a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
+++ b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
@@ -49,7 +49,7 @@ ScriptPromise NavigatorVR::getVRDisplays(ScriptState* scriptState)
ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
ScriptPromise promise = resolver->promise();
- Document* document = m_frame ? m_frame->document() : 0;
+ Document* document = frame() ? frame()->document() : 0;
if (!document || !controller()) {
DOMException* exception = DOMException::create(InvalidStateError, "The object is no longer associated to a document.");
@@ -78,7 +78,7 @@ VRController* NavigatorVR::controller()
Document* NavigatorVR::document()
{
- return m_frame ? m_frame->document() : 0;
+ return frame() ? frame()->document() : 0;
}
DEFINE_TRACE(NavigatorVR)
@@ -105,16 +105,16 @@ const char* NavigatorVR::supplementName()
void NavigatorVR::fireVRDisplayPresentChange(VRDisplay* display)
{
- if (m_frame && m_frame->localDOMWindow()) {
- m_frame->localDOMWindow()->enqueueWindowEvent(
+ if (frame() && frame()->localDOMWindow()) {
+ frame()->localDOMWindow()->enqueueWindowEvent(
VRDisplayEvent::create(EventTypeNames::vrdisplaypresentchange, true, false, display, ""));
}
}
void NavigatorVR::fireVREvent(VRDisplayEvent* event)
{
- if (m_frame && m_frame->localDOMWindow()) {
- m_frame->localDOMWindow()->enqueueWindowEvent(event);
+ if (frame() && frame()->localDOMWindow()) {
+ frame()->localDOMWindow()->enqueueWindowEvent(event);
}
}
« no previous file with comments | « third_party/WebKit/Source/modules/storage/Storage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698