mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 16:57:36 +00:00
Bug 944836 - Add -moz-window-dragging CSS styles. r=dao
This commit is contained in:
parent
5b1c77960e
commit
b84ffa056f
@ -45,6 +45,10 @@
|
||||
|
||||
/** Begin titlebar **/
|
||||
|
||||
#titlebar {
|
||||
-moz-window-dragging: drag;
|
||||
}
|
||||
|
||||
#titlebar-buttonbox > .titlebar-button {
|
||||
display: none;
|
||||
}
|
||||
|
@ -135,24 +135,6 @@
|
||||
</xul:statusbarpanel>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
<binding id="statusbar-drag"
|
||||
extends="chrome://global/content/bindings/general.xml#statusbar">
|
||||
<implementation>
|
||||
<field name="_dragBindingAlive">true</field>
|
||||
<constructor>
|
||||
if (!this._draggableStarted) {
|
||||
this._draggableStarted = true;
|
||||
try {
|
||||
let tmp = {};
|
||||
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm", tmp);
|
||||
let draghandle = new tmp.WindowDraggingElement(this);
|
||||
draghandle.mouseDownCheck = function () this._dragBindingAlive;
|
||||
} catch (e) {}
|
||||
}
|
||||
</constructor>
|
||||
</implementation>
|
||||
</binding>
|
||||
|
||||
<binding id="statusbarpanel-iconic" display="xul:button" role="xul:button"
|
||||
extends="chrome://global/content/bindings/general.xml#statusbarpanel">
|
||||
|
@ -16,16 +16,22 @@ menulist > menupopup {
|
||||
|
||||
/* ::::: draggable elements ::::: */
|
||||
|
||||
toolbar:not([nowindowdrag="true"]) {
|
||||
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-drag");
|
||||
}
|
||||
|
||||
statusbar:not([nowindowdrag="true"]) {
|
||||
-moz-binding: url("chrome://global/content/bindings/general.xml#statusbar-drag");
|
||||
}
|
||||
|
||||
titlebar,
|
||||
toolbar:not([nowindowdrag="true"]):not([customizing="true"]),
|
||||
statusbar:not([nowindowdrag="true"]),
|
||||
windowdragbox {
|
||||
-moz-binding: url("chrome://global/content/bindings/general.xml#windowdragbox");
|
||||
-moz-window-dragging: drag;
|
||||
}
|
||||
|
||||
/* The list below is non-comprehensive and will probably need some tweaking. */
|
||||
toolbarbutton,
|
||||
button,
|
||||
textbox,
|
||||
searchbar,
|
||||
tab,
|
||||
radio,
|
||||
splitter {
|
||||
-moz-window-dragging: no-drag;
|
||||
}
|
||||
|
||||
/* ::::: root elements ::::: */
|
||||
|
Loading…
x
Reference in New Issue
Block a user