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 #ifndef mozilla_dom_useractivation_ipc_utils_h__ 8 #define mozilla_dom_useractivation_ipc_utils_h__ 9 10 #include "ipc/EnumSerializer.h" 11 12 // Undo X11/X.h's definition of None 13 #undef None 14 15 #include "mozilla/dom/UserActivation.h" 16 17 namespace IPC { 18 19 template <> 20 struct ParamTraits<mozilla::dom::UserActivation::State> 21 : public ContiguousEnumSerializer< 22 mozilla::dom::UserActivation::State, 23 mozilla::dom::UserActivation::State::None, 24 mozilla::dom::UserActivation::State::EndGuard_> {}; 25 26 } // namespace IPC 27 28 #endif // mozilla_dom_useractivation_ipc_utils_h__ 29