| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 VRDisplay_h | 5 #ifndef VRDisplay_h |
| 6 #define VRDisplay_h | 6 #define VRDisplay_h |
| 7 | 7 |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/dom/FrameRequestCallback.h" | 9 #include "core/dom/FrameRequestCallback.h" |
| 10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 void submitFrame(); | 82 void submitFrame(); |
| 83 | 83 |
| 84 Document* document(); | 84 Document* document(); |
| 85 | 85 |
| 86 // EventTarget overrides: | 86 // EventTarget overrides: |
| 87 ExecutionContext* getExecutionContext() const override; | 87 ExecutionContext* getExecutionContext() const override; |
| 88 const AtomicString& interfaceName() const override; | 88 const AtomicString& interfaceName() const override; |
| 89 | 89 |
| 90 // ContextLifecycleObserver implementation. | 90 // ContextLifecycleObserver implementation. |
| 91 void contextDestroyed() override; | 91 void contextDestroyed(ExecutionContext*) override; |
| 92 | 92 |
| 93 // ScriptWrappable implementation. | 93 // ScriptWrappable implementation. |
| 94 bool hasPendingActivity() const final; | 94 bool hasPendingActivity() const final; |
| 95 | 95 |
| 96 DECLARE_VIRTUAL_TRACE(); | 96 DECLARE_VIRTUAL_TRACE(); |
| 97 | 97 |
| 98 protected: | 98 protected: |
| 99 friend class VRController; | 99 friend class VRController; |
| 100 | 100 |
| 101 VRDisplay(NavigatorVR*, | 101 VRDisplay(NavigatorVR*, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 ServiceInactive = 11, | 187 ServiceInactive = 11, |
| 188 RequestDenied = 12, | 188 RequestDenied = 12, |
| 189 PresentationResultMax, // Must be last member of enum. | 189 PresentationResultMax, // Must be last member of enum. |
| 190 }; | 190 }; |
| 191 | 191 |
| 192 void ReportPresentationResult(PresentationResult); | 192 void ReportPresentationResult(PresentationResult); |
| 193 | 193 |
| 194 } // namespace blink | 194 } // namespace blink |
| 195 | 195 |
| 196 #endif // VRDisplay_h | 196 #endif // VRDisplay_h |
| OLD | NEW |