Bug 1509459 - Get the flexbox highlighter state if the highlighter is ready in the...
[gecko.git] / storage / mozStorageStatementRow.h
blob5c783b4ad82b2265a9f2a7d7fad4a8c57d606a25
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ :
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/. */
7 #ifndef MOZSTORAGESTATEMENTROW_H
8 #define MOZSTORAGESTATEMENTROW_H
10 #include "mozilla/Attributes.h"
11 #include "mozilla/ErrorResult.h"
12 #include "nsPIDOMWindow.h"
13 #include "nsWrapperCache.h"
15 namespace mozilla {
16 namespace storage {
18 class Statement;
20 class StatementRow final : public nsISupports, public nsWrapperCache {
21 public:
22 NS_DECL_CYCLE_COLLECTING_ISUPPORTS
23 NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(StatementRow)
25 explicit StatementRow(nsPIDOMWindowInner* aWindow, Statement* aStatement);
27 void NamedGetter(JSContext* aCx, const nsAString& aName, bool& aFound,
28 JS::MutableHandle<JS::Value> aResult,
29 mozilla::ErrorResult& aRv);
30 void GetSupportedNames(nsTArray<nsString>& aNames);
32 JSObject* WrapObject(JSContext* aCx,
33 JS::Handle<JSObject*> aGivenProto) override;
35 nsPIDOMWindowInner* GetParentObject() const { return mWindow; }
37 private:
38 ~StatementRow() {}
40 nsCOMPtr<nsPIDOMWindowInner> mWindow;
41 Statement* mStatement;
43 friend class StatementRowHolder;
46 } // namespace storage
47 } // namespace mozilla
49 #endif /* MOZSTORAGESTATEMENTROW_H */