LCOV - code coverage report
Current view: top level - dom/events - ClipboardEvent.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 4 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 32 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
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef mozilla_dom_ClipboardEvent_h_
       8             : #define mozilla_dom_ClipboardEvent_h_
       9             : 
      10             : #include "mozilla/EventForwards.h"
      11             : #include "mozilla/dom/ClipboardEventBinding.h"
      12             : #include "mozilla/dom/Event.h"
      13             : #include "nsIDOMClipboardEvent.h"
      14             : 
      15             : namespace mozilla {
      16             : namespace dom {
      17             : class DataTransfer;
      18             : 
      19             : class ClipboardEvent : public Event,
      20             :                        public nsIDOMClipboardEvent
      21             : {
      22             : public:
      23             :   ClipboardEvent(EventTarget* aOwner,
      24             :                  nsPresContext* aPresContext,
      25             :                  InternalClipboardEvent* aEvent);
      26             : 
      27             :   NS_DECL_ISUPPORTS_INHERITED
      28             : 
      29             :   NS_DECL_NSIDOMCLIPBOARDEVENT
      30             : 
      31             :   // Forward to base class
      32           0 :   NS_FORWARD_TO_EVENT
      33             : 
      34           0 :   virtual JSObject* WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override
      35             :   {
      36           0 :     return ClipboardEventBinding::Wrap(aCx, this, aGivenProto);
      37             :   }
      38             : 
      39             :   static already_AddRefed<ClipboardEvent>
      40             :   Constructor(const GlobalObject& aGlobal,
      41             :               const nsAString& aType,
      42             :               const ClipboardEventInit& aParam,
      43             :               ErrorResult& aRv);
      44             : 
      45             :   DataTransfer* GetClipboardData();
      46             : 
      47             :   void InitClipboardEvent(const nsAString& aType, bool aCanBubble,
      48             :                           bool aCancelable,
      49             :                           DataTransfer* aClipboardData);
      50             : 
      51             : protected:
      52           0 :   ~ClipboardEvent() {}
      53             : };
      54             : 
      55             : } // namespace dom
      56             : } // namespace mozilla
      57             : 
      58             : already_AddRefed<mozilla::dom::ClipboardEvent>
      59             : NS_NewDOMClipboardEvent(mozilla::dom::EventTarget* aOwner,
      60             :                         nsPresContext* aPresContext,
      61             :                         mozilla::InternalClipboardEvent* aEvent);
      62             : 
      63             : #endif // mozilla_dom_ClipboardEvent_h_

Generated by: LCOV version 1.13