no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / dom / clients / manager / ClientIPCUtils.h
blob7f8cf35c1bb2202a7ad6ab7f04dcf37ceb141335
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 #ifndef _mozilla_dom_ClientIPCUtils_h
7 #define _mozilla_dom_ClientIPCUtils_h
9 #include "ipc/EnumSerializer.h"
11 #include "X11UndefineNone.h"
12 #include "mozilla/dom/ClientBinding.h"
13 #include "mozilla/dom/ClientsBinding.h"
14 #include "mozilla/dom/DocumentBinding.h"
15 #include "mozilla/StorageAccess.h"
17 namespace IPC {
18 template <>
19 struct ParamTraits<mozilla::dom::ClientType>
20 : public ContiguousEnumSerializer<mozilla::dom::ClientType,
21 mozilla::dom::ClientType::Window,
22 mozilla::dom::ClientType::EndGuard_> {};
24 template <>
25 struct ParamTraits<mozilla::dom::FrameType>
26 : public ContiguousEnumSerializer<mozilla::dom::FrameType,
27 mozilla::dom::FrameType::Auxiliary,
28 mozilla::dom::FrameType::EndGuard_> {};
30 template <>
31 struct ParamTraits<mozilla::dom::VisibilityState>
32 : public ContiguousEnumSerializer<
33 mozilla::dom::VisibilityState, mozilla::dom::VisibilityState::Hidden,
34 mozilla::dom::VisibilityState::EndGuard_> {};
36 template <>
37 struct ParamTraits<mozilla::StorageAccess>
38 : public ContiguousEnumSerializer<
39 mozilla::StorageAccess,
40 mozilla::StorageAccess::ePartitionForeignOrDeny,
41 mozilla::StorageAccess::eNumValues> {};
42 } // namespace IPC
44 #endif // _mozilla_dom_ClientIPCUtils_h