KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21585/root/usr/lib/xulrunner-devel-17.0.10/include/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/lib/xulrunner-devel-17.0.10/include/nsOpenWindowEventDetail.h
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsIOpenWindowEventDetail.h"
#include "nsIDOMNode.h"
#include "nsCycleCollectionParticipant.h"
#include "nsCOMPtr.h"
#include "nsString.h"

/**
 * When we send a mozbrowseropenwindow event (an instance of CustomEvent), we
 * use an instance of this class as the event's detail.
 */
class nsOpenWindowEventDetail : public nsIOpenWindowEventDetail
{
public:
  nsOpenWindowEventDetail(const nsAString& aURL,
                          const nsAString& aName,
                          const nsAString& aFeatures,
                          nsIDOMNode* aFrameElement)
    : mURL(aURL)
    , mName(aName)
    , mFeatures(aFeatures)
    , mFrameElement(aFrameElement)
  {}

  virtual ~nsOpenWindowEventDetail() {}

  NS_DECL_CYCLE_COLLECTING_ISUPPORTS
  NS_DECL_CYCLE_COLLECTION_CLASS(nsOpenWindowEventDetail)
  NS_DECL_NSIOPENWINDOWEVENTDETAIL

private:
  const nsString mURL;
  const nsString mName;
  const nsString mFeatures;
  nsCOMPtr<nsIDOMNode> mFrameElement;
};

Anon7 - 2021