2006-05-17 02:33:34 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* 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/. */
|
2006-05-17 02:22:12 +00:00
|
|
|
|
|
|
|
#ifndef __inLayoutUtils_h__
|
|
|
|
#define __inLayoutUtils_h__
|
|
|
|
|
2013-07-23 23:39:17 +00:00
|
|
|
class nsIDocument;
|
2011-04-08 01:04:40 +00:00
|
|
|
class nsIDOMDocument;
|
|
|
|
class nsIDOMElement;
|
|
|
|
class nsIDOMNode;
|
2011-07-15 10:31:34 +00:00
|
|
|
class nsIDOMWindow;
|
2011-04-08 01:04:40 +00:00
|
|
|
class nsIFrame;
|
2010-04-10 20:09:38 +00:00
|
|
|
class nsIPresShell;
|
2011-04-08 01:04:40 +00:00
|
|
|
class nsISupports;
|
2010-04-10 20:09:38 +00:00
|
|
|
|
2014-04-01 04:09:23 +00:00
|
|
|
namespace mozilla {
|
|
|
|
class EventStateManager;
|
|
|
|
}
|
|
|
|
|
2006-05-17 02:22:12 +00:00
|
|
|
class inLayoutUtils
|
|
|
|
{
|
|
|
|
public:
|
2014-06-11 20:29:15 +00:00
|
|
|
static nsIDOMWindow* GetWindowFor(nsIDOMNode* aNode);
|
|
|
|
static nsIDOMWindow* GetWindowFor(nsIDOMDocument* aDoc);
|
|
|
|
static nsIPresShell* GetPresShellFor(nsISupports* aThing);
|
|
|
|
static nsIFrame* GetFrameFor(nsIDOMElement* aElement);
|
2014-04-01 04:09:23 +00:00
|
|
|
static mozilla::EventStateManager*
|
|
|
|
GetEventStateManagerFor(nsIDOMElement *aElement);
|
2006-05-17 02:22:12 +00:00
|
|
|
static nsIDOMDocument* GetSubDocumentFor(nsIDOMNode* aNode);
|
2013-07-23 23:39:17 +00:00
|
|
|
static nsIDOMNode* GetContainerFor(const nsIDocument& aDoc);
|
2006-05-17 02:22:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __inLayoutUtils_h__
|