mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
59
xpfe/components/windowds/nsWindowDataSource.h
Normal file
59
xpfe/components/windowds/nsWindowDataSource.h
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/* 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 "nsIRDFDataSource.h"
|
||||
#include "nsIWindowMediatorListener.h"
|
||||
#include "nsIWindowDataSource.h"
|
||||
#include "nsIObserver.h"
|
||||
|
||||
#include "nsHashKeys.h"
|
||||
#include "nsIRDFService.h"
|
||||
#include "nsIRDFContainer.h"
|
||||
#include "nsInterfaceHashtable.h"
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
|
||||
// {C744CA3D-840B-460a-8D70-7CE63C51C958}
|
||||
#define NS_WINDOWDATASOURCE_CID \
|
||||
{ 0xc744ca3d, 0x840b, 0x460a, \
|
||||
{ 0x8d, 0x70, 0x7c, 0xe6, 0x3c, 0x51, 0xc9, 0x58 } }
|
||||
|
||||
|
||||
class nsWindowDataSource final : public nsIRDFDataSource,
|
||||
public nsIObserver,
|
||||
public nsIWindowMediatorListener,
|
||||
public nsIWindowDataSource
|
||||
{
|
||||
public:
|
||||
nsWindowDataSource() { }
|
||||
|
||||
nsresult Init();
|
||||
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
NS_DECL_CYCLE_COLLECTION_CLASS_AMBIGUOUS(nsWindowDataSource,
|
||||
nsIRDFDataSource)
|
||||
NS_DECL_NSIOBSERVER
|
||||
NS_DECL_NSIWINDOWMEDIATORLISTENER
|
||||
NS_DECL_NSIWINDOWDATASOURCE
|
||||
NS_DECL_NSIRDFDATASOURCE
|
||||
|
||||
protected:
|
||||
virtual ~nsWindowDataSource();
|
||||
|
||||
private:
|
||||
|
||||
// mapping of window -> RDF resource
|
||||
nsInterfaceHashtable<nsPtrHashKey<nsIXULWindow>, nsIRDFResource> mWindowResources;
|
||||
|
||||
static uint32_t windowCount;
|
||||
static uint32_t gRefCnt;
|
||||
|
||||
nsCOMPtr<nsIRDFDataSource> mInner;
|
||||
nsCOMPtr<nsIRDFContainer> mContainer;
|
||||
|
||||
static nsIRDFResource* kNC_Name;
|
||||
static nsIRDFResource* kNC_KeyIndex;
|
||||
static nsIRDFResource* kNC_WindowRoot;
|
||||
static nsIRDFService* gRDFService;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue