no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / dom / ipc / PrefsTypes.ipdlh
blob403c7aaf429610d2a9cafb61e98dafe15a796b50
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 using struct mozilla::null_t from "mozilla/ipc/IPCCore.h";
8 namespace mozilla {
9 namespace dom {
11 union PrefValue {
12   nsCString;
13   int32_t;
14   bool;
17 // This serialization form mirrors that used in mozilla::Pref in
18 // Preferences.cpp. The two should be kept in sync, e.g. if something is added
19 // to one it should also be added to the other.
21 // Note: there is no need to pass the isSticky attribute because that's an
22 // immutable attribute obtained from file at startup.
23 struct Pref {
24   nsCString name;
25   bool isLocked;
26   bool isSanitized;
27   PrefValue? defaultValue;
28   PrefValue? userValue;
31 } // namespace dom
32 } // namespace mozilla