зеркало из https://github.com/mozilla/gecko-dev.git
Bug 291110 - restore the old behavior of cmd_copyImageContents. r=bzbarsky, sr=neil, a=asa
This commit is contained in:
Родитель
6d15ce055d
Коммит
ed395f2d51
|
@ -66,6 +66,7 @@ const char * const sSelectAllString = "cmd_selectAll";
|
|||
const char * const sSelectNoneString = "cmd_selectNone";
|
||||
const char * const sCopyImageLocationString = "cmd_copyImageLocation";
|
||||
const char * const sCopyImageContentsString = "cmd_copyImageContents";
|
||||
const char * const sCopyImageString = "cmd_copyImage";
|
||||
|
||||
const char * const sScrollTopString = "cmd_scrollTop";
|
||||
const char * const sScrollBottomString = "cmd_scrollBottom";
|
||||
|
@ -604,6 +605,8 @@ nsClipboardImageCommands::DoClipboardCommand(const char *aCommandName, nsIConten
|
|||
{
|
||||
if (!nsCRT::strcmp(sCopyImageLocationString, aCommandName))
|
||||
return aEdit->CopyImage(nsIContentViewerEdit::COPY_IMAGE_TEXT);
|
||||
if (!nsCRT::strcmp(sCopyImageContentsString, aCommandName))
|
||||
return aEdit->CopyImage(nsIContentViewerEdit::COPY_IMAGE_DATA);
|
||||
|
||||
PRInt32 copyFlags = nsIContentViewerEdit::COPY_IMAGE_ALL;
|
||||
if (aParams)
|
||||
|
@ -965,7 +968,8 @@ nsWindowCommandRegistration::RegisterWindowCommands(
|
|||
NS_REGISTER_ONE_COMMAND(nsClipboardPasteCommand, "cmd_paste");
|
||||
NS_REGISTER_ONE_COMMAND(nsClipboardCopyLinkCommand, "cmd_copyLink");
|
||||
NS_REGISTER_FIRST_COMMAND(nsClipboardImageCommands, sCopyImageLocationString);
|
||||
NS_REGISTER_LAST_COMMAND(nsClipboardImageCommands, sCopyImageContentsString);
|
||||
NS_REGISTER_NEXT_COMMAND(nsClipboardImageCommands, sCopyImageContentsString);
|
||||
NS_REGISTER_LAST_COMMAND(nsClipboardImageCommands, sCopyImageString);
|
||||
NS_REGISTER_FIRST_COMMAND(nsClipboardSelectAllNoneCommands, sSelectAllString);
|
||||
NS_REGISTER_LAST_COMMAND(nsClipboardSelectAllNoneCommands, sSelectNoneString);
|
||||
|
||||
|
|
|
@ -47,8 +47,6 @@
|
|||
<command id="Browser:Back" oncommand="goBack();" observes="canGoBack"/>
|
||||
<command id="Browser:Forward" oncommand="goForward();" observes="canGoForward"/>
|
||||
<command id="cmd_copyLink"/>
|
||||
<command id="cmd_copyImageLocation"/>
|
||||
<command id="cmd_copyImageContents"/>
|
||||
</commandset>
|
||||
<commandset id="clipboardEditMenuItems"/>
|
||||
<commandset id="viewZoomCommands"/>
|
||||
|
|
|
@ -200,8 +200,7 @@
|
|||
|
||||
<commandset id="mailEditContextMenuItems">
|
||||
<command id="cmd_copyLink"/>
|
||||
<command id="cmd_copyImageLocation"/>
|
||||
<command id="cmd_copyImageContents"/>
|
||||
<command id="cmd_copyImage"/>
|
||||
</commandset>
|
||||
|
||||
<commandset id="mailGoMenuItems"
|
||||
|
@ -1007,7 +1006,7 @@
|
|||
<menuitem id="context-copyimage"
|
||||
label="©ImageCmd.label;"
|
||||
accesskey="©ImageCmd.accesskey;"
|
||||
command="cmd_copyImageContents"/>
|
||||
command="cmd_copyImage"/>
|
||||
<menuitem id="context-copyemail"
|
||||
label="©EmailCmd.label;"
|
||||
accesskey="©EmailCmd.accesskey;"
|
||||
|
|
|
@ -158,8 +158,7 @@
|
|||
|
||||
<!-- Content area context menu -->
|
||||
<command id="cmd_copyLink"/>
|
||||
<command id="cmd_copyImageLocation"/>
|
||||
<command id="cmd_copyImageContents"/>
|
||||
<command id="cmd_copyImage"/>
|
||||
|
||||
<!-- View Menu -->
|
||||
<command id="View:PageSource" oncommand="BrowserViewSourceOfDocument(content.document);" observes="isImage"/>
|
||||
|
|
|
@ -113,7 +113,7 @@
|
|||
<menuitem id="context-copyimage"
|
||||
label="©ImageCmd.label;"
|
||||
accesskey="©ImageCmd.accesskey;"
|
||||
command="cmd_copyImageContents"/>
|
||||
command="cmd_copyImage"/>
|
||||
<menuseparator id="context-sep-copyimage"/>
|
||||
<menuitem id="context-saveimage"
|
||||
valueSaveAs="&saveImageAsCmd.label;"
|
||||
|
|
|
@ -225,11 +225,8 @@
|
|||
<command id="cmd_copyLink"
|
||||
oncommand="goDoCommand('cmd_copyLink')"
|
||||
disabled="false"/>
|
||||
<command id="cmd_copyImageLocation"
|
||||
oncommand="goDoCommand('cmd_copyImageLocation')"
|
||||
disabled="false"/>
|
||||
<command id="cmd_copyImageContents"
|
||||
oncommand="goDoCommand('cmd_copyImageContents')"
|
||||
<command id="cmd_copyImage"
|
||||
oncommand="goDoCommand('cmd_copyImage')"
|
||||
disabled="false"/>
|
||||
<command id="cmd_undo"
|
||||
oncommand="goDoCommand('cmd_undo')"
|
||||
|
|
Загрузка…
Ссылка в новой задаче