LCOV - code coverage report
Current view: top level - docshell/base - nsContextMenuInfo.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 3 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 3 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 nsContextMenuInfo_h__
       8             : #define nsContextMenuInfo_h__
       9             : 
      10             : #include "nsCOMPtr.h"
      11             : #include "nsIContextMenuListener2.h"
      12             : #include "nsIDOMNode.h"
      13             : #include "nsIDOMEvent.h"
      14             : #include "imgIContainer.h"
      15             : #include "imgIRequest.h"
      16             : 
      17             : class ChromeContextMenuListener;
      18             : class imgRequestProxy;
      19             : 
      20             : // Helper class for implementors of nsIContextMenuListener2
      21             : class nsContextMenuInfo : public nsIContextMenuInfo
      22             : {
      23             :   friend class ChromeContextMenuListener;
      24             : 
      25             : public:
      26             :   nsContextMenuInfo();
      27             : 
      28             :   NS_DECL_ISUPPORTS
      29             :   NS_DECL_NSICONTEXTMENUINFO
      30             : 
      31             : private:
      32             :   virtual ~nsContextMenuInfo();
      33             : 
      34           0 :   void SetMouseEvent(nsIDOMEvent* aEvent) { mMouseEvent = aEvent; }
      35           0 :   void SetDOMNode(nsIDOMNode* aNode) { mDOMNode = aNode; }
      36           0 :   void SetAssociatedLink(nsIDOMNode* aLink) { mAssociatedLink = aLink; }
      37             : 
      38             :   nsresult GetImageRequest(nsIDOMNode* aDOMNode, imgIRequest** aRequest);
      39             : 
      40             :   bool HasBackgroundImage(nsIDOMNode* aDOMNode);
      41             : 
      42             :   nsresult GetBackgroundImageRequest(nsIDOMNode* aDOMNode,
      43             :                                      imgRequestProxy** aRequest);
      44             : 
      45             :   nsresult GetBackgroundImageRequestInternal(nsIDOMNode* aDOMNode,
      46             :                                              imgRequestProxy** aRequest);
      47             : 
      48             : private:
      49             :   nsCOMPtr<nsIDOMEvent> mMouseEvent;
      50             :   nsCOMPtr<nsIDOMNode> mDOMNode;
      51             :   nsCOMPtr<nsIDOMNode> mAssociatedLink;
      52             : };
      53             : 
      54             : #endif // nsContextMenuInfo_h__

Generated by: LCOV version 1.13