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

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

Issue 2630703002: Rename Supplement::host() to Supplement::supplementable() (Closed)
Patch Set: temp Created 3 years, 11 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
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 28416746ac211180a015f98f4323efeedb9783b8..c29f8405d094d66596dc02b21e17045db4c89ae0 100644
--- a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
+++ b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
@@ -71,7 +71,7 @@ ScriptPromise NavigatorVR::getVRDisplays(ScriptState* scriptState) {
}
VRController* NavigatorVR::controller() {
- if (!host()->frame())
+ if (!supplementable()->frame())
return 0;
if (!m_controller) {
@@ -82,7 +82,8 @@ VRController* NavigatorVR::controller() {
}
Document* NavigatorVR::document() {
- return host()->frame() ? host()->frame()->document() : nullptr;
+ return supplementable()->frame() ? supplementable()->frame()->document()
+ : nullptr;
}
DEFINE_TRACE(NavigatorVR) {
@@ -104,17 +105,17 @@ const char* NavigatorVR::supplementName() {
}
void NavigatorVR::enqueueVREvent(VRDisplayEvent* event) {
- if (host()->frame()) {
- host()->frame()->domWindow()->enqueueWindowEvent(event);
+ if (supplementable()->frame()) {
+ supplementable()->frame()->domWindow()->enqueueWindowEvent(event);
}
}
void NavigatorVR::dispatchVRGestureEvent(VRDisplayEvent* event) {
- if (!(host()->frame()))
+ if (!(supplementable()->frame()))
return;
UserGestureIndicator gestureIndicator(
DocumentUserGestureToken::create(document()));
- LocalDOMWindow* window = host()->frame()->domWindow();
+ LocalDOMWindow* window = supplementable()->frame()->domWindow();
DCHECK(window);
event->setTarget(window);
window->dispatchEvent(event);
« no previous file with comments | « third_party/WebKit/Source/modules/storage/DOMWindowStorage.cpp ('k') | third_party/WebKit/Source/platform/Supplementable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698