/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

"use strict";

Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "Services", "resource://gre/modules/Services.jsm");

this.EXPORTED_SYMBOLS = ["AppConstants"];

// Immutable for export.
this.AppConstants = Object.freeze({
  // These defines are no longer used but kept for compatibility
  NIGHTLY_BUILD: false,
  RELEASE_OR_BETA: true,

  ACCESSIBILITY:
//@line 24 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  false,
//@line 26 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  // Official corresponds to whether this build is considered an
  // official, branded release for the public. You should
  // disable developer-only functionality when this flag is set.
  // MOZILLA_OFFICIAL is deprecated but kept for extension compatibility.
  MOZILLA_OFFICIAL:
//@line 33 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  true,
//@line 37 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  MC_OFFICIAL:
//@line 39 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  true,
//@line 43 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  MOZ_OFFICIAL_BRANDING:
//@line 46 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  true,
//@line 50 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  MOZ_SERVICES_HEALTHREPORT: false,
  MOZ_DATA_REPORTING: false,
  MOZ_TELEMETRY_REPORTING: false,
  MOZ_TELEMETRY_ON_BY_DEFAULT: false,

  MOZ_UPDATER:
//@line 60 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  false,
//@line 62 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  MOZ_SWITCHBOARD:
//@line 67 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  false,
//@line 69 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  MOZ_WEBRTC:
//@line 74 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  false,
//@line 76 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  MOZ_WIDGET_GTK:
//@line 81 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  false,
//@line 83 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  XP_UNIX:
//@line 88 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  false,
//@line 90 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  platform:
//@line 95 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  "win",
//@line 103 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  isPlatformAndVersionAtLeast(platform, version) {
    let platformVersion = Services.sysinfo.getProperty("version");
    return platform == this.platform &&
           Services.vc.compare(platformVersion, version) >= 0;
  },

  isPlatformAndVersionAtMost(platform, version) {
    let platformVersion = Services.sysinfo.getProperty("version");
    return platform == this.platform &&
           Services.vc.compare(platformVersion, version) <= 0;
  },

  MOZ_VERIFY_MAR_SIGNATURE:
//@line 120 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  false,
//@line 122 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  DEBUG:
//@line 127 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  false,
//@line 129 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  ASAN:
//@line 134 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  false,
//@line 136 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  MOZ_PLACES:
//@line 139 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  true,
//@line 143 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  MENUBAR_CAN_AUTOHIDE:
//@line 146 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  true,
//@line 150 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  CAN_DRAW_IN_TITLEBAR:
//@line 155 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  false,
//@line 157 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  MOZ_TOOLKIT_SEARCH:
//@line 160 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  true,
//@line 164 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  DLL_PREFIX: "",
  DLL_SUFFIX: ".dll",

  MOZ_APP_NAME: "praxis",
  MOZ_APP_VERSION: "33.5.0a1",
  MOZ_APP_VERSION_DISPLAY: "33.5.0a1",

  MOZ_BUILD_APP:
//@line 174 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  "browser",
//@line 178 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  MOZ_MACBUNDLE_NAME: "Praxis.app",
  MOZ_UPDATE_CHANNEL: "default",
  INSTALL_LOCALE: "en-US",
  MOZ_WIDGET_TOOLKIT: "windows",

  DEBUG_JS_MODULES: "",

  // URL to the hg revision this was built from (e.g.
  // "https://hg.mozilla.org/mozilla-central/rev/6256ec9113c1")
  // On unofficial builds, this is an empty string.
//@line 192 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
  SOURCE_REVISION_URL: "",

  HAVE_USR_LIB64_DIR:
//@line 198 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
    false,
//@line 200 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"

  HAVE_SHELL_SERVICE:
//@line 203 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
    true,
//@line 207 "c:\binoczilla\src\binoc-central\ux\platform\toolkit\modules\AppConstants.jsm"
});
