LCOV - code coverage report
Current view: top level - dom/vr - VREventObserver.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             : * License, v. 2.0. If a copy of the MPL was not distributed with this file,
       5             : * You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef mozilla_dom_VREventObserver_h
       8             : #define mozilla_dom_VREventObserver_h
       9             : 
      10             : #include "mozilla/dom/VRDisplayEventBinding.h"
      11             : #include "nsISupportsImpl.h" // for NS_INLINE_DECL_REFCOUNTING
      12             : 
      13             : class nsGlobalWindow;
      14             : 
      15             : namespace mozilla {
      16             : namespace dom {
      17             : 
      18             : class VREventObserver final
      19             : {
      20             : public:
      21           0 :   NS_INLINE_DECL_REFCOUNTING(VREventObserver)
      22             :   explicit VREventObserver(nsGlobalWindow* aGlobalWindow);
      23             : 
      24             :   void NotifyVRDisplayMounted(uint32_t aDisplayID);
      25             :   void NotifyVRDisplayUnmounted(uint32_t aDisplayID);
      26             :   void NotifyVRDisplayNavigation(uint32_t aDisplayID);
      27             :   void NotifyVRDisplayRequested(uint32_t aDisplayID);
      28             :   void NotifyVRDisplayConnect(uint32_t aDisplayID);
      29             :   void NotifyVRDisplayDisconnect(uint32_t aDisplayID);
      30             :   void NotifyVRDisplayPresentChange(uint32_t aDisplayID);
      31             : 
      32             :   void DisconnectFromOwner();
      33             : 
      34             : private:
      35             :   ~VREventObserver();
      36             : 
      37             :   // Weak pointer, instance is owned by mWindow.
      38             :   nsGlobalWindow* MOZ_NON_OWNING_REF mWindow;
      39             : };
      40             : 
      41             : } // namespace dom
      42             : } // namespace mozilla
      43             : 
      44             : #endif // mozilla_dom_VREventObserver_h

Generated by: LCOV version 1.13