Bumping manifests a=b2g-bump
[gecko.git] / dom / base / StyleSheetList.h
blobbe0006cb54f0d321ddde6dcb6552022211a7fb0a
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_dom_StyleSheetList_h
7 #define mozilla_dom_StyleSheetList_h
9 #include "nsIDOMStyleSheetList.h"
10 #include "nsWrapperCache.h"
12 class nsINode;
14 namespace mozilla {
15 class CSSStyleSheet;
17 namespace dom {
19 class StyleSheetList : public nsIDOMStyleSheetList
20 , public nsWrapperCache
22 public:
23 NS_DECL_CYCLE_COLLECTING_ISUPPORTS
24 NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(StyleSheetList)
25 NS_DECL_NSIDOMSTYLESHEETLIST
27 virtual JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE MOZ_FINAL;
29 virtual nsINode* GetParentObject() const = 0;
31 virtual uint32_t Length() = 0;
32 virtual CSSStyleSheet* IndexedGetter(uint32_t aIndex, bool& aFound) = 0;
33 CSSStyleSheet* Item(uint32_t aIndex)
35 bool dummy = false;
36 return IndexedGetter(aIndex, dummy);
39 protected:
40 virtual ~StyleSheetList() {}
43 } // namespace dom
44 } // namespace mozilla
46 #endif // mozilla_dom_StyleSheetList_h