/* 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/. */

browser[remote="false"] {
  -moz-binding: url("chrome://browser/content/bindings/browser.xml#local-browser");
}

browser[remote="true"] {
  -moz-binding: url("chrome://browser/content/bindings/browser.xml#remote-browser");
}

#content-navigator {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#content-navigator");
}

#tabs {
  -moz-binding: url("chrome://browser/content/bindings/tabs.xml#tablist");
}

documenttab {
  -moz-binding: url("chrome://browser/content/bindings/tabs.xml#documenttab");
}

appbar {
  -moz-binding: url('chrome://browser/content/bindings/appbar.xml#appbarBinding');
}

flyoutpanel {
  -moz-binding: url('chrome://browser/content/bindings/flyoutpanel.xml#flyoutpanelBinding');
}

settings {
  -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#settings");
}

setting {
  display: none;
}

setting[type="bool"] {
  display: -moz-box;
  -moz-binding: url("chrome://browser/content/bindings/toggleswitch.xml#setting-fulltoggle-bool");
}

setting[type="bool"][localized="true"] {
  display: -moz-box;
  -moz-binding: url("chrome://browser/content/bindings/toggleswitch.xml#setting-fulltoggle-localized-bool");
}

setting[type="boolint"] {
  display: -moz-box;
  -moz-binding: url("chrome://browser/content/bindings/toggleswitch.xml#setting-fulltoggle-boolint");
}

setting[type="integer"] {
  display: -moz-box;
  -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-integer");
}

setting[type="control"] {
  display: -moz-box;
  -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-control");
}

setting[type="string"] {
  display: -moz-box;
  -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-string");
}

setting[type="color"] {
  display: -moz-box;
  -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-color");
}

setting[type="file"],
setting[type="directory"] {
  display: -moz-box;
  -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-path");
}

setting[type="radio"],
setting[type="menulist"] {
  display: -moz-box;
  -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-multi");
}

#selection-overlay {
  -moz-binding: url("chrome://browser/content/bindings/selectionoverlay.xml#selection-binding");
}

#urlbar-edit {
  -moz-binding: url("chrome://browser/content/bindings/autocomplete.xml#autocomplete");
}

#start-autocomplete {
  -moz-binding: url("chrome://browser/content/bindings/autocomplete.xml#autocomplete-popup");
}

richgrid {
  -moz-binding: url("chrome://browser/content/bindings/grid.xml#richgrid");
}

richgriditem {
  -moz-binding: url("chrome://browser/content/bindings/grid.xml#richgrid-item");
}

placeitem {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#place-item");
  background-color: transparent;
}

placeitem[type="folder"] {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#place-folder");
}

placelabel {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#place-label");
}

radio {
  -moz-binding: url("chrome://global/content/bindings/radio.xml#radio");
}

checkbox.toggleswitch {
  -moz-binding: url("chrome://browser/content/bindings/toggleswitch.xml#checkbox-toggleswitch");
}

menulist {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#menulist");
}

.chrome-select-option {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#chrome-select-option");
}

/* richlist defaults ------------------------------------------------------- */
richlistbox[batch] {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#richlistbox-batch");
}

richlistbox[bindingType="contextmenu"] {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#richlistbox-contextmenu");
}

richlistitem {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#richlistitem");
}

richgriditem[typeName="download"][state="-1"] {
  -moz-binding: url("chrome://browser/content/bindings/downloads.xml#download-not-started");
}

richgriditem[typeName="download"] {
  -moz-binding: url("chrome://browser/content/bindings/downloads.xml#download-downloading");
}

richgriditem[typeName="download"][state="1"] {
  -moz-binding: url("chrome://browser/content/bindings/downloads.xml#download-done");
}

richgriditem[typeName="download"][state="2"],
richgriditem[typeName="download"][state="3"] {
  -moz-binding: url("chrome://browser/content/bindings/downloads.xml#download-retry");
}

richgriditem[typeName="download"][state="4"] {
  -moz-binding: url("chrome://browser/content/bindings/downloads.xml#download-paused");
}

richlistitem[type="error"],
richlistitem[type="warning"] {
  -moz-binding: url("chrome://browser/content/bindings/console.xml#error");
}

richlistitem[type="message"]{
  -moz-binding: url("chrome://browser/content/bindings/console.xml#message");
}

dialog {
  -moz-binding: url("chrome://browser/content/bindings/dialog.xml#dialog");
}

/* Do not allow these to inherit from the toolkit binding */
dialog.content-dialog {
  -moz-binding: none;
}

pageaction {
  -moz-binding: url("chrome://browser/content/bindings/pageaction.xml#pageaction");
}

arrowbox {
  -moz-binding: url("chrome://browser/content/bindings/arrowbox.xml#arrowbox");
}

/* Disable context menus in textboxes */
.textbox-input-box,
.textbox-input-box[spellcheck="true"] {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#input-box");
}

textbox {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#textbox");
}

textbox[multiline="true"] {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#textarea");
}

textbox[type="timed"] {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#timed-textbox");
}

textbox[type="search"] {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#search-textbox");
}

textbox[type="number"] {
  -moz-binding: url("chrome://browser/content/bindings/bindings.xml#numberbox");
}
