Bug 1673965 [wpt PR 26319] - Update interfaces/resize-observer.idl, a=testonly
[gecko.git] / storage / Variant_inl.h
blob488c120f9c44b705bc7900dac4948435674ec83a
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 /**
8 * Note: This file is included by Variant.h.
9 */
11 #ifndef mozilla_storage_Variant_h__
12 # error "Do not include this file directly!"
13 #endif
15 namespace mozilla {
16 namespace storage {
18 ////////////////////////////////////////////////////////////////////////////////
19 //// Variant_base
21 inline NS_IMPL_ADDREF(Variant_base) inline NS_IMPL_RELEASE(
22 Variant_base) inline NS_IMPL_QUERY_INTERFACE(Variant_base, nsIVariant)
24 ////////////////////////////////////////////////////////////////////////////////
25 //// nsIVariant
27 inline uint16_t Variant_base::GetDataType() {
28 return nsIDataType::VTYPE_VOID;
31 inline NS_IMETHODIMP Variant_base::GetAsInt32(int32_t*) {
32 return NS_ERROR_CANNOT_CONVERT_DATA;
35 inline NS_IMETHODIMP Variant_base::GetAsInt64(int64_t*) {
36 return NS_ERROR_CANNOT_CONVERT_DATA;
39 inline NS_IMETHODIMP Variant_base::GetAsDouble(double*) {
40 return NS_ERROR_CANNOT_CONVERT_DATA;
43 inline NS_IMETHODIMP Variant_base::GetAsAUTF8String(nsACString&) {
44 return NS_ERROR_CANNOT_CONVERT_DATA;
47 inline NS_IMETHODIMP Variant_base::GetAsAString(nsAString&) {
48 return NS_ERROR_CANNOT_CONVERT_DATA;
51 inline NS_IMETHODIMP Variant_base::GetAsArray(uint16_t*, nsIID*, uint32_t*,
52 void**) {
53 return NS_ERROR_CANNOT_CONVERT_DATA;
56 inline NS_IMETHODIMP Variant_base::GetAsInt8(uint8_t*) {
57 return NS_ERROR_CANNOT_CONVERT_DATA;
60 inline NS_IMETHODIMP Variant_base::GetAsInt16(int16_t*) {
61 return NS_ERROR_CANNOT_CONVERT_DATA;
64 inline NS_IMETHODIMP Variant_base::GetAsUint8(uint8_t*) {
65 return NS_ERROR_CANNOT_CONVERT_DATA;
68 inline NS_IMETHODIMP Variant_base::GetAsUint16(uint16_t*) {
69 return NS_ERROR_CANNOT_CONVERT_DATA;
72 inline NS_IMETHODIMP Variant_base::GetAsUint32(uint32_t*) {
73 return NS_ERROR_CANNOT_CONVERT_DATA;
76 inline NS_IMETHODIMP Variant_base::GetAsUint64(uint64_t*) {
77 return NS_ERROR_CANNOT_CONVERT_DATA;
80 inline NS_IMETHODIMP Variant_base::GetAsFloat(float*) {
81 return NS_ERROR_CANNOT_CONVERT_DATA;
84 inline NS_IMETHODIMP Variant_base::GetAsBool(bool*) {
85 return NS_ERROR_CANNOT_CONVERT_DATA;
88 inline NS_IMETHODIMP Variant_base::GetAsChar(char*) {
89 return NS_ERROR_CANNOT_CONVERT_DATA;
92 inline NS_IMETHODIMP Variant_base::GetAsWChar(char16_t*) {
93 return NS_ERROR_CANNOT_CONVERT_DATA;
96 inline NS_IMETHODIMP Variant_base::GetAsID(nsID*) {
97 return NS_ERROR_CANNOT_CONVERT_DATA;
100 inline NS_IMETHODIMP Variant_base::GetAsString(char**) {
101 return NS_ERROR_CANNOT_CONVERT_DATA;
104 inline NS_IMETHODIMP Variant_base::GetAsWString(char16_t**) {
105 return NS_ERROR_CANNOT_CONVERT_DATA;
108 inline NS_IMETHODIMP Variant_base::GetAsISupports(nsISupports**) {
109 return NS_ERROR_CANNOT_CONVERT_DATA;
112 inline NS_IMETHODIMP Variant_base::GetAsInterface(nsIID**, void**) {
113 return NS_ERROR_CANNOT_CONVERT_DATA;
116 inline NS_IMETHODIMP Variant_base::GetAsACString(nsACString&) {
117 return NS_ERROR_CANNOT_CONVERT_DATA;
120 inline NS_IMETHODIMP Variant_base::GetAsStringWithSize(uint32_t*, char**) {
121 return NS_ERROR_CANNOT_CONVERT_DATA;
124 inline NS_IMETHODIMP Variant_base::GetAsWStringWithSize(uint32_t*, char16_t**) {
125 return NS_ERROR_CANNOT_CONVERT_DATA;
128 inline NS_IMETHODIMP Variant_base::GetAsJSVal(JS::MutableHandle<JS::Value>) {
129 return NS_ERROR_CANNOT_CONVERT_DATA;
132 } // namespace storage
133 } // namespace mozilla