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 : #include "nsCOMArray.h"
8 : #include "nsContentList.h"
9 :
10 : namespace mozilla {
11 : class ErrorResult;
12 :
13 : namespace dom {
14 : class GlobalObject;
15 :
16 0 : class ChromeNodeList final : public nsSimpleContentList
17 : {
18 : public:
19 0 : explicit ChromeNodeList(nsINode* aOwner)
20 0 : : nsSimpleContentList(aOwner)
21 : {
22 0 : }
23 :
24 : static already_AddRefed<ChromeNodeList>
25 : Constructor(const GlobalObject& aGlobal, ErrorResult& aRv);
26 :
27 : virtual JSObject* WrapObject(JSContext* aCx,
28 : JS::Handle<JSObject*> aGivenProto) override;
29 :
30 : void Append(nsINode& aNode, ErrorResult& aError);
31 : void Remove(nsINode& aNode, ErrorResult& aError);
32 : };
33 :
34 : } // namespace dom
35 : } // namespace mozilla
|