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

Side by Side Diff: third_party/WebKit/Source/modules/vr/NavigatorVR.h

Issue 2754133002: Remove gesture token from vrdisplayactivate (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/NavigatorVR.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NavigatorVR_h 5 #ifndef NavigatorVR_h
6 #define NavigatorVR_h 6 #define NavigatorVR_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "core/frame/LocalDOMWindow.h" 9 #include "core/frame/LocalDOMWindow.h"
10 #include "core/frame/Navigator.h" 10 #include "core/frame/Navigator.h"
(...skipping 28 matching lines...) Expand all
39 static ScriptPromise getVRDisplays(ScriptState*, Navigator&); 39 static ScriptPromise getVRDisplays(ScriptState*, Navigator&);
40 ScriptPromise getVRDisplays(ScriptState*); 40 ScriptPromise getVRDisplays(ScriptState*);
41 41
42 VRController* controller(); 42 VRController* controller();
43 Document* document(); 43 Document* document();
44 bool isFocused() { return m_focused; } 44 bool isFocused() { return m_focused; }
45 45
46 // Queues up event to be fired soon. 46 // Queues up event to be fired soon.
47 void enqueueVREvent(VRDisplayEvent*); 47 void enqueueVREvent(VRDisplayEvent*);
48 48
49 // Dispatches a user gesture event immediately. 49 // Dispatches an event immediately.
50 void dispatchVRGestureEvent(VRDisplayEvent*); 50 void dispatchVREvent(VRDisplayEvent*);
51 51
52 // Inherited from FocusChangedObserver. 52 // Inherited from FocusChangedObserver.
53 void focusedFrameChanged() override; 53 void focusedFrameChanged() override;
54 54
55 // Inherited from LocalDOMWindow::EventListenerObserver. 55 // Inherited from LocalDOMWindow::EventListenerObserver.
56 void didAddEventListener(LocalDOMWindow*, const AtomicString&) override; 56 void didAddEventListener(LocalDOMWindow*, const AtomicString&) override;
57 void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) override; 57 void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) override;
58 void didRemoveAllEventListeners(LocalDOMWindow*) override; 58 void didRemoveAllEventListeners(LocalDOMWindow*) override;
59 59
60 DECLARE_VIRTUAL_TRACE(); 60 DECLARE_VIRTUAL_TRACE();
(...skipping 11 matching lines...) Expand all
72 Member<VRController> m_controller; 72 Member<VRController> m_controller;
73 73
74 // Whether this page is listening for vrdisplayactivate event. 74 // Whether this page is listening for vrdisplayactivate event.
75 bool m_listeningForActivate = false; 75 bool m_listeningForActivate = false;
76 bool m_focused = false; 76 bool m_focused = false;
77 }; 77 };
78 78
79 } // namespace blink 79 } // namespace blink
80 80
81 #endif // NavigatorVR_h 81 #endif // NavigatorVR_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/NavigatorVR.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698