NavigationAPIIPCUtils.h (1252B)
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_navigation_api_ipc_utils_h__ 8 #define mozilla_dom_navigation_api_ipc_utils_h__ 9 #include "ipc/EnumSerializer.h" 10 #include "mozilla/dom/BindingIPCUtils.h" 11 #include "mozilla/dom/NavigationBinding.h" 12 #include "mozilla/dom/UserNavigationInvolvement.h" 13 14 namespace IPC { 15 template <> 16 struct ParamTraits<mozilla::dom::UserNavigationInvolvement> 17 : public ContiguousEnumSerializerInclusive< 18 mozilla::dom::UserNavigationInvolvement, 19 mozilla::dom::UserNavigationInvolvement::None, 20 mozilla::dom::UserNavigationInvolvement::BrowserUI> {}; 21 22 template <> 23 struct ParamTraits<mozilla::dom::NavigationType> 24 : public mozilla::dom::WebIDLEnumSerializer<mozilla::dom::NavigationType> { 25 }; 26 27 template <> 28 struct ParamTraits<mozilla::dom::NavigationHistoryBehavior> 29 : public mozilla::dom::WebIDLEnumSerializer< 30 mozilla::dom::NavigationHistoryBehavior> {}; 31 } // namespace IPC 32 #endif