зеркало из https://github.com/mozilla/gecko-dev.git
Bug 210043 - Expose 'Copy Image' UI on mac. r=mconnor a=asa
This commit is contained in:
Родитель
fb94e41d41
Коммит
73e9f0ab49
|
@ -63,3 +63,7 @@ libs locale::
|
|||
install::
|
||||
$(INSTALL) $(srcdir)/content/browserconfig.properties $(DESTDIR)$(mozappdir)
|
||||
endif
|
||||
|
||||
ifneq (,$(filter windows mac cocoa, $(MOZ_WIDGET_TOOLKIT)))
|
||||
DEFINES += -DCONTEXT_COPY_IMAGE_CONTENTS=1
|
||||
endif
|
||||
|
|
|
@ -74,13 +74,11 @@
|
|||
accesskey="&viewImageCmd.accesskey;"
|
||||
oncommand="gContextMenu.viewImage(event);"
|
||||
onclick="checkForMiddleClick(this, event);"/>
|
||||
#ifndef XP_UNIX
|
||||
#ifndef XP_OS2
|
||||
#ifdef CONTEXT_COPY_IMAGE_CONTENTS
|
||||
<menuitem id="context-copyimage-contents"
|
||||
label="©ImageContentsCmd.label;"
|
||||
accesskey="©ImageContentsCmd.accesskey;"
|
||||
command="cmd_copyImageContents"/>
|
||||
#endif
|
||||
#endif
|
||||
<menuitem id="context-copyimage"
|
||||
label="©ImageCmd.label;"
|
||||
|
|
|
@ -3934,11 +3934,9 @@ nsContextMenu.prototype = {
|
|||
this.showItem( "context-copylink", this.onLink );
|
||||
this.showItem( "context-sep-copylink", this.onLink && this.onImage);
|
||||
|
||||
#ifndef XP_UNIX
|
||||
#ifndef XP_OS2
|
||||
#ifdef CONTEXT_COPY_IMAGE_CONTENTS
|
||||
// Copy image contents depends on whether we're on an image.
|
||||
this.showItem( "context-copyimage-contents", this.onImage );
|
||||
#endif
|
||||
#endif
|
||||
// Copy image location depends on whether we're on an image.
|
||||
this.showItem( "context-copyimage", this.onImage );
|
||||
|
|
Загрузка…
Ссылка в новой задаче