2017-10-27 20:33:53 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04: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 06:22:12 +04:00
|
|
|
|
|
|
|
#ifndef __inLayoutUtils_h__
|
|
|
|
#define __inLayoutUtils_h__
|
|
|
|
|
2018-01-11 07:38:01 +03:00
|
|
|
class nsINode;
|
2010-04-11 00:09:38 +04:00
|
|
|
|
2014-04-01 08:09:23 +04:00
|
|
|
namespace mozilla {
|
|
|
|
class EventStateManager;
|
2018-01-11 07:38:01 +03:00
|
|
|
namespace dom {
|
2019-01-02 16:05:23 +03:00
|
|
|
class Document;
|
2018-01-11 07:38:01 +03:00
|
|
|
class Element;
|
|
|
|
} // namespace dom
|
2015-07-13 18:25:42 +03:00
|
|
|
} // namespace mozilla
|
2014-04-01 08:09:23 +04:00
|
|
|
|
2006-05-17 06:22:12 +04:00
|
|
|
class inLayoutUtils {
|
|
|
|
public:
|
2018-01-11 07:38:01 +03:00
|
|
|
static mozilla::EventStateManager* GetEventStateManagerFor(
|
|
|
|
mozilla::dom::Element& aElement);
|
2019-01-02 16:05:23 +03:00
|
|
|
static mozilla::dom::Document* GetSubDocumentFor(nsINode* aNode);
|
|
|
|
static nsINode* GetContainerFor(const mozilla::dom::Document& aDoc);
|
2006-05-17 06:22:12 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __inLayoutUtils_h__
|