mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Bug 1211613 - Re-organized the inspector context menu; r=pbro
MozReview-Commit-ID: HkSv091hpfC
This commit is contained in:
parent
a62a8252e6
commit
45963cc05d
@ -44,46 +44,74 @@
|
||||
label="&inspectorHTMLEdit.label;"
|
||||
accesskey="&inspectorHTMLEdit.accesskey;"
|
||||
oncommand="inspector.editHTML()"/>
|
||||
<menuitem id="node-menu-copyinner"
|
||||
label="&inspectorHTMLCopyInner.label;"
|
||||
accesskey="&inspectorHTMLCopyInner.accesskey;"
|
||||
oncommand="inspector.copyInnerHTML()"/>
|
||||
<menuitem id="node-menu-copyouter"
|
||||
label="&inspectorHTMLCopyOuter.label;"
|
||||
accesskey="&inspectorHTMLCopyOuter.accesskey;"
|
||||
oncommand="inspector.copyOuterHTML()"/>
|
||||
<menuitem id="node-menu-copyuniqueselector"
|
||||
label="&inspectorCopyUniqueSelector.label;"
|
||||
accesskey="&inspectorCopyUniqueSelector.accesskey;"
|
||||
oncommand="inspector.copyUniqueSelector()"/>
|
||||
<menuitem id="node-menu-copyimagedatauri"
|
||||
label="&inspectorCopyImageDataUri.label;"
|
||||
oncommand="inspector.copyImageDataUri()"/>
|
||||
<menuitem id="node-menu-showdomproperties"
|
||||
label="&inspectorShowDOMProperties.label;"
|
||||
oncommand="inspector.showDOMProperties()"/>
|
||||
<menuitem id="node-menu-useinconsole"
|
||||
label="&inspectorUseInConsole.label;"
|
||||
oncommand="inspector.useInConsole()"/>
|
||||
<menuitem id="node-menu-expand"
|
||||
label="&inspectorExpandNode.label;"
|
||||
oncommand="inspector.expandNode()"/>
|
||||
<menuitem id="node-menu-collapse"
|
||||
label="&inspectorCollapseNode.label;"
|
||||
oncommand="inspector.collapseNode()"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="node-menu-pasteinnerhtml"
|
||||
label="&inspectorHTMLPasteInner.label;"
|
||||
accesskey="&inspectorHTMLPasteInner.accesskey;"
|
||||
oncommand="inspector.pasteInnerHTML()"/>
|
||||
<menuitem id="node-menu-pasteouterhtml"
|
||||
label="&inspectorHTMLPasteOuter.label;"
|
||||
accesskey="&inspectorHTMLPasteOuter.accesskey;"
|
||||
oncommand="inspector.pasteOuterHTML()"/>
|
||||
<menu id="node-menu-paste-extra-submenu"
|
||||
label="&inspectorHTMLPasteExtraSubmenu.label;"
|
||||
accesskey="&inspectorHTMLPasteExtraSubmenu.accesskey;">
|
||||
<menuitem id="node-menu-add"
|
||||
label="&inspectorAddNode.label;"
|
||||
accesskey="&inspectorAddNode.accesskey;"
|
||||
oncommand="inspector.addNode()"/>
|
||||
<menuitem id="node-menu-duplicatenode"
|
||||
label="&inspectorDuplicateNode.label;"
|
||||
oncommand="inspector.duplicateNode()"/>
|
||||
<menuitem id="node-menu-delete"
|
||||
label="&inspectorHTMLDelete.label;"
|
||||
accesskey="&inspectorHTMLDelete.accesskey;"
|
||||
oncommand="inspector.deleteNode()"/>
|
||||
<menu label="&inspectorAttributesSubmenu.label;"
|
||||
accesskey="&inspectorAttributesSubmenu.accesskey;">
|
||||
<menupopup>
|
||||
<menuitem id="node-menu-add-attribute"
|
||||
label="&inspectorAddAttribute.label;"
|
||||
accesskey="&inspectorAddAttribute.accesskey;"
|
||||
oncommand="inspector.onAddAttribute()"/>
|
||||
<menuitem id="node-menu-edit-attribute"
|
||||
label="&inspectorEditAttribute.label;"
|
||||
accesskey="&inspectorEditAttribute.accesskey;"
|
||||
oncommand="inspector.onEditAttribute()"/>
|
||||
<menuitem id="node-menu-remove-attribute"
|
||||
label="&inspectorRemoveAttribute.label;"
|
||||
accesskey="&inspectorRemoveAttribute.accesskey;"
|
||||
oncommand="inspector.onRemoveAttribute()"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<menuseparator/>
|
||||
<menuitem id="node-menu-pseudo-hover"
|
||||
label=":hover" type="checkbox"
|
||||
oncommand="inspector.togglePseudoClass(':hover')"/>
|
||||
<menuitem id="node-menu-pseudo-active"
|
||||
label=":active" type="checkbox"
|
||||
oncommand="inspector.togglePseudoClass(':active')"/>
|
||||
<menuitem id="node-menu-pseudo-focus"
|
||||
label=":focus" type="checkbox"
|
||||
oncommand="inspector.togglePseudoClass(':focus')"/>
|
||||
<menuseparator/>
|
||||
<menu label="&inspectorCopyHTMLSubmenu.label;">
|
||||
<menupopup>
|
||||
<menuitem id="node-menu-copyinner"
|
||||
label="&inspectorCopyInnerHTML.label;"
|
||||
accesskey="&inspectorCopyInnerHTML.accesskey;"
|
||||
oncommand="inspector.copyInnerHTML()"/>
|
||||
<menuitem id="node-menu-copyouter"
|
||||
label="&inspectorCopyOuterHTML.label;"
|
||||
accesskey="&inspectorCopyOuterHTML.accesskey;"
|
||||
oncommand="inspector.copyOuterHTML()"/>
|
||||
<menuitem id="node-menu-copyuniqueselector"
|
||||
label="&inspectorCopyCSSSelector.label;"
|
||||
accesskey="&inspectorCopyCSSSelector.accesskey;"
|
||||
oncommand="inspector.copyUniqueSelector()"/>
|
||||
<menuitem id="node-menu-copyimagedatauri"
|
||||
label="&inspectorImageDataUri.label;"
|
||||
oncommand="inspector.copyImageDataUri()"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<menu label="&inspectorPasteHTMLSubmenu.label;">
|
||||
<menupopup>
|
||||
<menuitem id="node-menu-pasteinnerhtml"
|
||||
label="&inspectorPasteInnerHTML.label;"
|
||||
accesskey="&inspectorPasteInnerHTML.accesskey;"
|
||||
oncommand="inspector.pasteInnerHTML()"/>
|
||||
<menuitem id="node-menu-pasteouterhtml"
|
||||
label="&inspectorPasteOuterHTML.label;"
|
||||
accesskey="&inspectorPasteOuterHTML.accesskey;"
|
||||
oncommand="inspector.pasteOuterHTML()"/>
|
||||
<menuitem id="node-menu-pastebefore"
|
||||
label="&inspectorHTMLPasteBefore.label;"
|
||||
accesskey="&inspectorHTMLPasteBefore.accesskey;"
|
||||
@ -103,6 +131,13 @@
|
||||
</menupopup>
|
||||
</menu>
|
||||
<menuseparator/>
|
||||
<menuitem id="node-menu-expand"
|
||||
label="&inspectorExpandNode.label;"
|
||||
oncommand="inspector.expandNode()"/>
|
||||
<menuitem id="node-menu-collapse"
|
||||
label="&inspectorCollapseNode.label;"
|
||||
oncommand="inspector.collapseNode()"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="node-menu-scrollnodeintoview"
|
||||
label="&inspectorScrollNodeIntoView.label;"
|
||||
accesskey="&inspectorScrollNodeIntoView.accesskey;"
|
||||
@ -110,49 +145,17 @@
|
||||
<menuitem id="node-menu-screenshotnode"
|
||||
label="&inspectorScreenshotNode.label;"
|
||||
oncommand="inspector.screenshotNode()" />
|
||||
<menuitem id="node-menu-add"
|
||||
label="&inspectorAddNode.label;"
|
||||
accesskey="&inspectorAddNode.accesskey;"
|
||||
oncommand="inspector.addNode()"/>
|
||||
<menuitem id="node-menu-duplicatenode"
|
||||
label="&inspectorDuplicateNode.label;"
|
||||
oncommand="inspector.duplicateNode()"/>
|
||||
<menuitem id="node-menu-delete"
|
||||
label="&inspectorHTMLDelete.label;"
|
||||
accesskey="&inspectorHTMLDelete.accesskey;"
|
||||
oncommand="inspector.deleteNode()"/>
|
||||
<menu label="&inspectorAttributeSubmenu.label;"
|
||||
accesskey="&inspectorAttributeSubmenu.accesskey;">
|
||||
<menupopup>
|
||||
<menuitem id="node-menu-add-attribute"
|
||||
label="&inspectorAddAttribute.label;"
|
||||
accesskey="&inspectorAddAttribute.accesskey;"
|
||||
oncommand="inspector.onAddAttribute()"/>
|
||||
<menuitem id="node-menu-edit-attribute"
|
||||
label="&inspectorEditAttribute.label;"
|
||||
accesskey="&inspectorEditAttribute.accesskey;"
|
||||
oncommand="inspector.onEditAttribute()"/>
|
||||
<menuitem id="node-menu-remove-attribute"
|
||||
label="&inspectorRemoveAttribute.label;"
|
||||
accesskey="&inspectorRemoveAttribute.accesskey;"
|
||||
oncommand="inspector.onRemoveAttribute()"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<menuitem id="node-menu-useinconsole"
|
||||
label="&inspectorUseInConsole.label;"
|
||||
oncommand="inspector.useInConsole()"/>
|
||||
<menuitem id="node-menu-showdomproperties"
|
||||
label="&inspectorShowDOMProperties.label;"
|
||||
oncommand="inspector.showDOMProperties()"/>
|
||||
<menuseparator id="node-menu-link-separator"/>
|
||||
<menuitem id="node-menu-link-follow"
|
||||
oncommand="inspector.onFollowLink()"/>
|
||||
<menuitem id="node-menu-link-copy"
|
||||
oncommand="inspector.onCopyLink()"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="node-menu-pseudo-hover"
|
||||
label=":hover" type="checkbox"
|
||||
oncommand="inspector.togglePseudoClass(':hover')"/>
|
||||
<menuitem id="node-menu-pseudo-active"
|
||||
label=":active" type="checkbox"
|
||||
oncommand="inspector.togglePseudoClass(':active')"/>
|
||||
<menuitem id="node-menu-pseudo-focus"
|
||||
label=":focus" type="checkbox"
|
||||
oncommand="inspector.togglePseudoClass(':focus')"/>
|
||||
</menupopup>
|
||||
</popupset>
|
||||
|
||||
|
@ -4,35 +4,35 @@
|
||||
<!ENTITY inspectorHTMLEdit.label "Edit As HTML">
|
||||
<!ENTITY inspectorHTMLEdit.accesskey "E">
|
||||
|
||||
<!-- LOCALIZATION NOTE (inspectorHTMLCopyInner.label): This is the label shown
|
||||
<!-- LOCALIZATION NOTE (inspectorCopyInnerHTML.label): This is the label shown
|
||||
in the inspector contextual-menu for the item that lets users copy the
|
||||
inner HTML of the current node -->
|
||||
<!ENTITY inspectorHTMLCopyInner.label "Copy Inner HTML">
|
||||
<!ENTITY inspectorHTMLCopyInner.accesskey "I">
|
||||
<!ENTITY inspectorCopyInnerHTML.label "Inner HTML">
|
||||
<!ENTITY inspectorCopyInnerHTML.accesskey "I">
|
||||
|
||||
<!-- LOCALIZATION NOTE (inspectorHTMLCopyOuter.label): This is the label shown
|
||||
<!-- LOCALIZATION NOTE (inspectorCopyOuterHTML.label): This is the label shown
|
||||
in the inspector contextual-menu for the item that lets users copy the
|
||||
outer HTML of the current node -->
|
||||
<!ENTITY inspectorHTMLCopyOuter.label "Copy Outer HTML">
|
||||
<!ENTITY inspectorHTMLCopyOuter.accesskey "O">
|
||||
<!ENTITY inspectorCopyOuterHTML.label "Outer HTML">
|
||||
<!ENTITY inspectorCopyOuterHTML.accesskey "O">
|
||||
|
||||
<!-- LOCALIZATION NOTE (inspectorCopyUniqueSelector.label): This is the label
|
||||
<!-- LOCALIZATION NOTE (inspectorCopyCSSSelector.label): This is the label
|
||||
shown in the inspector contextual-menu for the item that lets users copy
|
||||
the CSS Selector of the current node -->
|
||||
<!ENTITY inspectorCopyUniqueSelector.label "Copy Unique Selector">
|
||||
<!ENTITY inspectorCopyUniqueSelector.accesskey "U">
|
||||
<!ENTITY inspectorCopyCSSSelector.label "CSS Selector">
|
||||
<!ENTITY inspectorCopyCSSSelector.accesskey "S">
|
||||
|
||||
<!-- LOCALIZATION NOTE (inspectorHTMLPasteOuter.label): This is the label shown
|
||||
<!-- LOCALIZATION NOTE (inspectorPasteOuterHTML.label): This is the label shown
|
||||
in the inspector contextual-menu for the item that lets users paste outer
|
||||
HTML in the current node -->
|
||||
<!ENTITY inspectorHTMLPasteOuter.label "Paste Outer HTML">
|
||||
<!ENTITY inspectorHTMLPasteOuter.accesskey "P">
|
||||
<!ENTITY inspectorPasteOuterHTML.label "Outer HTML">
|
||||
<!ENTITY inspectorPasteOuterHTML.accesskey "O">
|
||||
|
||||
<!-- LOCALIZATION NOTE (inspectorHTMLPasteInner.label): This is the label shown
|
||||
<!-- LOCALIZATION NOTE (inspectorPasteInnerHTML.label): This is the label shown
|
||||
in the inspector contextual-menu for the item that lets users paste inner
|
||||
HTML in the current node -->
|
||||
<!ENTITY inspectorHTMLPasteInner.label "Paste Inner HTML">
|
||||
<!ENTITY inspectorHTMLPasteInner.accesskey "N">
|
||||
<!ENTITY inspectorPasteInnerHTML.label "Inner HTML">
|
||||
<!ENTITY inspectorPasteInnerHTML.accesskey "I">
|
||||
|
||||
<!-- LOCALIZATION NOTE (inspectorHTMLPasteExtraSubmenu.label): This is the label
|
||||
shown in the inspector contextual-menu for the sub-menu of the other Paste
|
||||
@ -79,14 +79,15 @@
|
||||
current node -->
|
||||
<!ENTITY inspectorHTMLDelete.label "Delete Node">
|
||||
<!ENTITY inspectorHTMLDelete.accesskey "D">
|
||||
<!-- LOCALIZATION NOTE (inspectorAttributeSubmenu.label): This is the label
|
||||
|
||||
<!-- LOCALIZATION NOTE (inspectorAttributesSubmenu.label): This is the label
|
||||
shown in the inspector contextual-menu for the sub-menu of the other
|
||||
attribute items, which allow to:
|
||||
- add new attribute
|
||||
- edit attribute
|
||||
- remove attribute -->
|
||||
<!ENTITY inspectorAttributeSubmenu.label "Attribute">
|
||||
<!ENTITY inspectorAttributeSubmenu.accesskey "A">
|
||||
<!ENTITY inspectorAttributesSubmenu.label "Attributes">
|
||||
<!ENTITY inspectorAttributesSubmenu.accesskey "A">
|
||||
|
||||
<!-- LOCALIZATION NOTE (inspectorAddAttribute.label): This is the label shown in
|
||||
the inspector contextual-menu for the item that lets users add attribute
|
||||
@ -117,12 +118,12 @@
|
||||
shown as the placeholder for the markup view search in the inspector. -->
|
||||
<!ENTITY inspectorSearchHTML.label3 "Search HTML">
|
||||
|
||||
<!-- LOCALIZATION NOTE (inspectorCopyImageDataUri.label): This is the label
|
||||
<!-- LOCALIZATION NOTE (inspectorImageDataUri.label): This is the label
|
||||
shown in the inspector contextual-menu for the item that lets users copy
|
||||
the URL embedding the image data encoded in Base 64 (what we name
|
||||
here Image Data URL). For more information:
|
||||
https://developer.mozilla.org/en-US/docs/Web/HTTP/data_URIs -->
|
||||
<!ENTITY inspectorCopyImageDataUri.label "Copy Image Data-URL">
|
||||
<!ENTITY inspectorImageDataUri.label "Image Data-URL">
|
||||
|
||||
<!-- LOCALIZATION NOTE (inspectorShowDOMProperties.label): This is the label
|
||||
shown in the inspector contextual-menu for the item that lets users see
|
||||
@ -161,3 +162,23 @@
|
||||
DOM (as children of the currently selected element). -->
|
||||
<!ENTITY inspectorAddNode.label "Create New Node">
|
||||
<!ENTITY inspectorAddNode.accesskey "C">
|
||||
|
||||
<!-- LOCALIZATION NOTE (inspectorCopyHTMLSubmenu.label): This is the label
|
||||
shown in the inspector contextual-menu for the sub-menu of the other
|
||||
copy items, which allow to:
|
||||
- Copy Inner HTML
|
||||
- Copy Outer HTML
|
||||
- Copy Unique selector
|
||||
- Copy Image data URI -->
|
||||
<!ENTITY inspectorCopyHTMLSubmenu.label "Copy">
|
||||
|
||||
<!-- LOCALIZATION NOTE (inspectorPasteHTMLSubmenu.label): This is the label
|
||||
shown in the inspector contextual-menu for the sub-menu of the other
|
||||
paste items, which allow to:
|
||||
- Paste Inner HTML
|
||||
- Paste Outer HTML
|
||||
- Before
|
||||
- After
|
||||
- As First Child
|
||||
- As Last Child -->
|
||||
<!ENTITY inspectorPasteHTMLSubmenu.label "Paste">
|
||||
|
Loading…
x
Reference in New Issue
Block a user