Bug 1171980 - Replace draggesture with dragstart, dragdrop with drop events. r=Neil a=RattyAway in a CLOSED TREE.

This commit is contained in:
Edmund Wong 2015-06-15 11:52:05 +08:00
Родитель 1d2193f04d
Коммит a218d166a5
14 изменённых файлов: 25 добавлений и 23 удалений

Просмотреть файл

@ -274,7 +274,7 @@
onclick="if (event.button == 1) BrowserHome(event);" onclick="if (event.button == 1) BrowserHome(event);"
tooltip="home-button-tooltip" tooltip="home-button-tooltip"
ondragstart="homeButtonObserver.onDragStart(event);" ondragstart="homeButtonObserver.onDragStart(event);"
ondragdrop="homeButtonObserver.onDrop(event);" ondrop="homeButtonObserver.onDrop(event);"
ondragenter="event.stopPropagation();" ondragenter="event.stopPropagation();"
ondragexit="homeButtonObserver.onDragExit(event);" ondragexit="homeButtonObserver.onDragExit(event);"
ondragover="homeButtonObserver.onDragOver(event);"/> ondragover="homeButtonObserver.onDragOver(event);"/>
@ -349,7 +349,7 @@
oncommand="handleURLBarCommand('none', event);" oncommand="handleURLBarCommand('none', event);"
onclick="checkForMiddleClick(this, event);" onclick="checkForMiddleClick(this, event);"
ondragover="goButtonObserver.onDragOver(event);" ondragover="goButtonObserver.onDragOver(event);"
ondragdrop="goButtonObserver.onDrop(event);"/> ondrop="goButtonObserver.onDrop(event);"/>
</toolbaritem> </toolbaritem>
<toolbaritem id="search-button-container" <toolbaritem id="search-button-container"
@ -361,7 +361,7 @@
tooltiptext="&searchButton.tooltip;" tooltiptext="&searchButton.tooltip;"
oncommand="BrowserSearch.loadSearch(QualifySearchTerm());" oncommand="BrowserSearch.loadSearch(QualifySearchTerm());"
ondragover="searchButtonObserver.onDragOver(event);" ondragover="searchButtonObserver.onDragOver(event);"
ondragdrop="searchButtonObserver.onDrop(event);"/> ondrop="searchButtonObserver.onDrop(event);"/>
</toolbaritem> </toolbaritem>
<toolbaritem id="search-container" title="&searchItem.title;" <toolbaritem id="search-container" title="&searchItem.title;"

Просмотреть файл

@ -209,7 +209,7 @@
<!-- Media information --> <!-- Media information -->
<vbox id="mediaPanel"> <vbox id="mediaPanel">
<tree id="imagetree" onselect="onImageSelect();" contextmenu="picontext" <tree id="imagetree" onselect="onImageSelect();" contextmenu="picontext"
ondraggesture="onBeginLinkDrag(event,'image-address','image-alt')"> ondragstart="onBeginLinkDrag(event,'image-address','image-alt')">
<treecols> <treecols>
<treecol sortSeparators="true" primary="true" persist="width" flex="10" <treecol sortSeparators="true" primary="true" persist="width" flex="10"
width="10" id="image-address" label="&mediaAddress;"/> width="10" id="image-address" label="&mediaAddress;"/>
@ -466,7 +466,7 @@
<vbox> <vbox>
<tree id="linktree" <tree id="linktree"
flex="1" flex="1"
ondraggesture="onBeginLinkDrag(event,'link-address','link-name')" ondragstart="onBeginLinkDrag(event,'link-address','link-name')"
contextmenu="piLinksContext"> contextmenu="piLinksContext">
<treecols> <treecols>
<treecol sortSeparators="true" primary="true" persist="width" flex="5" <treecol sortSeparators="true" primary="true" persist="width" flex="5"

Просмотреть файл

@ -29,7 +29,7 @@
persist="sortDirection sortResource sortResource2" persist="sortDirection sortResource sortResource2"
onclick="OnClick(event);" onclick="OnClick(event);"
onkeypress="OnClick(event);" onkeypress="OnClick(event);"
ondraggesture="return BeginDragTree(event);"> ondragstart="return BeginDragTree(event);">
<treecols onclick="doSort(event.target)"> <treecols onclick="doSort(event.target)">
<treecol id="FilenameColumn" flex="3" persist="ordinal hidden" <treecol id="FilenameColumn" flex="3" persist="ordinal hidden"
label="&directoryWindow.filename.label;" label="&directoryWindow.filename.label;"

Просмотреть файл

@ -16,7 +16,7 @@
onload="OnLoadEditList()" onload="OnLoadEditList()"
ondialogaccept="return EditListOKButton();" ondialogaccept="return EditListOKButton();"
ondragover="DragOverAddressListTree(event);" ondragover="DragOverAddressListTree(event);"
ondragdrop="DropOnAddressListTree(event);"> ondrop="DropOnAddressListTree(event);">
<stringbundleset id="stringbundleset"/> <stringbundleset id="stringbundleset"/>
<vbox id="editlist" flex="1"/> <vbox id="editlist" flex="1"/>

Просмотреть файл

@ -15,7 +15,7 @@
ondialogaccept="return MailListOKButton();" ondialogaccept="return MailListOKButton();"
onload="OnLoadNewMailList()" onload="OnLoadNewMailList()"
ondragover="DragOverAddressListTree(event);" ondragover="DragOverAddressListTree(event);"
ondragdrop="DropOnAddressListTree(event);"> ondrop="DropOnAddressListTree(event);">
<stringbundleset id="stringbundleset"/> <stringbundleset id="stringbundleset"/>

Просмотреть файл

@ -71,7 +71,7 @@
<label value="&addressMessageTo.label;" control="addressBucket"/> <label value="&addressMessageTo.label;" control="addressBucket"/>
<tree id="addressBucket" flex="1" hidecolumnpicker="true" <tree id="addressBucket" flex="1" hidecolumnpicker="true"
ondragover="DragAddressOverTargetControl(event);" ondragover="DragAddressOverTargetControl(event);"
ondragdrop="DropAddressOverTargetControl(event);" ondrop="DropAddressOverTargetControl(event);"
onselect="DialogBucketPaneSelectionChanged();"> onselect="DialogBucketPaneSelectionChanged();">
<treecols> <treecols>
<treecol id="addressCol" flex="1" hideheader="true"/> <treecol id="addressCol" flex="1" hideheader="true"/>

Просмотреть файл

@ -86,7 +86,7 @@
hiddenbydefault="true" hiddenbydefault="true"
flex="1" label="&PrimaryEmail.label;"/> flex="1" label="&PrimaryEmail.label;"/>
</treecols> </treecols>
<treechildren ondraggesture="nsDragAndDrop.startDrag(event, abResultsPaneObserver);"/> <treechildren ondragstart="nsDragAndDrop.startDrag(event, abResultsPaneObserver);"/>
</tree> </tree>
</vbox> </vbox>

Просмотреть файл

@ -17,7 +17,7 @@
onkeydown="awKeyDown(event, this)" onkeydown="awKeyDown(event, this)"
onclick="awClickEmptySpace(event.originalTarget, true)" onclick="awClickEmptySpace(event.originalTarget, true)"
ondragover="DragAddressOverTargetControl(event);" ondragover="DragAddressOverTargetControl(event);"
ondragdrop="DropAddressOverTargetControl(event);"> ondrop="DropAddressOverTargetControl(event);">
<listcols> <listcols>
<listcol id="typecol-addressingWidget"/> <listcol id="typecol-addressingWidget"/>

Просмотреть файл

@ -581,7 +581,7 @@
onkeypress="if (event.keyCode == 8 || event.keyCode == 46) RemoveSelectedAttachment();" onkeypress="if (event.keyCode == 8 || event.keyCode == 46) RemoveSelectedAttachment();"
onclick="AttachmentBucketClicked(event);" onclick="AttachmentBucketClicked(event);"
ondragover="nsDragAndDrop.dragOver(event, attachmentBucketObserver);" ondragover="nsDragAndDrop.dragOver(event, attachmentBucketObserver);"
ondragdrop="nsDragAndDrop.drop(event, attachmentBucketObserver);" ondrop="nsDragAndDrop.drop(event, attachmentBucketObserver);"
ondragexit="nsDragAndDrop.dragExit(event, attachmentBucketObserver);"/> ondragexit="nsDragAndDrop.dragExit(event, attachmentBucketObserver);"/>
</vbox> </vbox>
</hbox> </hbox>

Просмотреть файл

@ -22,7 +22,7 @@
datasources="rdf:null" datasources="rdf:null"
statedatasource="rdf:mailnewsfolders" statedatasource="rdf:mailnewsfolders"
flags="dont-build-content" flags="dont-build-content"
ondraggesture="BeginDragFolderTree(event);" ondragstart="BeginDragFolderTree(event);"
onselect="FolderPaneSelectionChange();"> onselect="FolderPaneSelectionChange();">
<template> <template>
<rule> <rule>

Просмотреть файл

@ -116,7 +116,7 @@
flex="3" flex="3"
persist="collapsed" persist="collapsed"
ondragover="nsDragAndDrop.dragOver(event, messagepaneObserver);" ondragover="nsDragAndDrop.dragOver(event, messagepaneObserver);"
ondragdrop="nsDragAndDrop.drop(event, messagepaneObserver);" ondrop="nsDragAndDrop.drop(event, messagepaneObserver);"
ondragexit="nsDragAndDrop.dragExit(event, messagepaneObserver);"> ondragexit="nsDragAndDrop.dragExit(event, messagepaneObserver);">
<hbox id="msgHeaderView"/> <hbox id="msgHeaderView"/>

Просмотреть файл

@ -226,7 +226,9 @@
crop="right" crop="right"
control="attachmentList"/> control="attachmentList"/>
<listbox id="attachmentList" rows="3" seltype="multiple" <listbox id="attachmentList" rows="3" seltype="multiple"
onclick="attachmentListClick(event);" ondraggesture="nsDragAndDrop.startDrag(event,attachmentAreaDNDObserver);" ondragover="nsDragAndDrop.dragOver(event, attachmentAreaDNDObserver);" context="attachmentListContext"/> onclick="attachmentListClick(event);"
ondragstart="nsDragAndDrop.startDrag(event,attachmentAreaDNDObserver);"
context="attachmentListContext"/>
</vbox> </vbox>
</hbox> </hbox>
</hbox> </hbox>

Просмотреть файл

@ -174,9 +174,9 @@
tooltip="_child" tooltip="_child"
context="_child" context="_child"
anonid="strip" anonid="strip"
ondraggesture="nsDragAndDrop.startDrag(event, this.parentNode.parentNode); event.stopPropagation();" ondragstart="nsDragAndDrop.startDrag(event, this.parentNode.parentNode); event.stopPropagation();"
ondragover="nsDragAndDrop.dragOver(event, this.parentNode.parentNode); event.stopPropagation();" ondragover="nsDragAndDrop.dragOver(event, this.parentNode.parentNode); event.stopPropagation();"
ondragdrop="nsDragAndDrop.drop(event, this.parentNode.parentNode); event.stopPropagation();" ondrop="nsDragAndDrop.drop(event, this.parentNode.parentNode); event.stopPropagation();"
ondragexit="nsDragAndDrop.dragExit(event, this.parentNode.parentNode); event.stopPropagation();"> ondragexit="nsDragAndDrop.dragExit(event, this.parentNode.parentNode); event.stopPropagation();">
<xul:tooltip onpopupshowing="var tabmail = this.parentNode.parentNode.parentNode; <xul:tooltip onpopupshowing="var tabmail = this.parentNode.parentNode.parentNode;
return tabmail.FillTabmailTooltip(document, event);"/> return tabmail.FillTabmailTooltip(document, event);"/>

Просмотреть файл

@ -84,7 +84,7 @@
<treecol id="idCol" persist="hidden ordinal width" flex="1" hidden="true" <treecol id="idCol" persist="hidden ordinal width" flex="1" hidden="true"
label="&idColumn.label;" tooltiptext="&idColumn2.tooltip;"/> label="&idColumn.label;" tooltiptext="&idColumn2.tooltip;"/>
</treecols> </treecols>
<treechildren ondraggesture="BeginDragThreadPane(event);" <treechildren ondragstart="BeginDragThreadPane(event);"
ondragover="DragOverThreadPane(event);" ondragover="DragOverThreadPane(event);"
ondrop="DropOnThreadPane(event);"/> ondrop="DropOnThreadPane(event);"/>
</tree> </tree>