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

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

Issue 2862863002: Remove fullscreen requirement from listening for vrdisplayactivate inside a frame. (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | 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 13273bb0af5345638596c5b753e24fb4dbbf301f..6de2c23a948de4aa39d628bd6cd0ebefea6babd5 100644
--- a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
+++ b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
@@ -154,13 +154,7 @@ void NavigatorVR::FocusedFrameChanged() {
void NavigatorVR::DidAddEventListener(LocalDOMWindow* window,
const AtomicString& event_type) {
- // TODO(mthiesse): Remove fullscreen requirement for presentation. See
- // crbug.com/687369
- if (event_type == EventTypeNames::vrdisplayactivate &&
- GetSupplementable()->GetFrame() &&
- GetSupplementable()->GetFrame()->GetDocument() &&
- Fullscreen::FullscreenEnabled(
- *GetSupplementable()->GetFrame()->GetDocument())) {
+ if (event_type == EventTypeNames::vrdisplayactivate) {
listening_for_activate_ = true;
Controller()->SetListeningForActivate(focused_);
} else if (event_type == EventTypeNames::vrdisplayconnect) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698