summaryrefslogtreecommitdiffstats
path: root/comm/mail/base/content/widgets/browserPopups.inc.xhtml
blob: 468c2eb3ebe4ebfade02b34dea6309ed9264dcfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

#ifndef NO_BROWSERCONTEXT
  <menupopup id="browserContext"
             onpopupshowing="return browserContextOnShowing(event);"
             onpopuphiding="browserContextOnHiding(event);">
    <!-- Browser navigation -->
#ifdef XP_MACOSX
    <menuitem id="browserContext-back"
              data-l10n-id="content-tab-menu-back-mac"
              command="Browser:Back"/>
    <menuitem id="browserContext-forward"
              data-l10n-id="content-tab-menu-forward-mac"
              command="Browser:Forward"/>
    <menuitem id="browserContext-reload"
              tooltip="dynamic-shortcut-tooltip"
              data-l10n-id="content-tab-menu-reload-mac"
              command="cmd_reload"/>
    <menuitem id="browserContext-stop"
              tooltip="dynamic-shortcut-tooltip"
              data-l10n-id="content-tab-menu-stop-mac"
              command="cmd_stop"/>
#else
    <menugroup id="context-navigation">
        <menuitem id="browserContext-back"
                  data-l10n-id="content-tab-menu-back"
                  data-l10n-args='{"shortcut":""}'
                  class="menuitem-iconic"
                  command="Browser:Back"/>
        <menuitem id="browserContext-forward"
                  data-l10n-id="content-tab-menu-forward"
                  data-l10n-args='{"shortcut":""}'
                  class="menuitem-iconic"
                  command="Browser:Forward"/>
        <menuitem id="browserContext-reload"
                  class="menuitem-iconic"
                  tooltip="dynamic-shortcut-tooltip"
                  data-l10n-id="content-tab-menu-reload"
                  command="cmd_reload"/>
        <menuitem id="browserContext-stop"
                  class="menuitem-iconic"
                  tooltip="dynamic-shortcut-tooltip"
                  data-l10n-id="content-tab-menu-stop"
                  command="cmd_stop"/>
    </menugroup>
#endif
    <menuseparator id="browserContext-sep-navigation"/>
    <!-- Spellchecking suggestions -->
    <menuitem id="browserContext-spell-no-suggestions"
              disabled="true"
              data-l10n-id="text-action-spell-no-suggestions"/>
    <menuitem id="browserContext-spell-add-to-dictionary"
              data-l10n-id="text-action-spell-add-to-dictionary"
              oncommand="gSpellChecker.addToDictionary();"/>
    <menuitem id="browserContext-spell-undo-add-to-dictionary"
              data-l10n-id="text-action-spell-undo-add-to-dictionary"
              oncommand="gSpellChecker.undoAddToDictionary();" />
    <menuseparator id="browserContext-spell-suggestions-separator"/>

    <menuitem id="browserContext-openInBrowser"
              label="&openInBrowser.label;"
              accesskey="&openInBrowser.accesskey;"
              oncommand="gContextMenu.openInBrowser();"/>
    <menuitem id="browserContext-openLinkInBrowser"
              label="&openLinkInBrowser.label;"
              accesskey="&openLinkInBrowser.accesskey;"
              oncommand="gContextMenu.openLinkInBrowser();"/>
    <menuseparator id="browserContext-sep-open-browser"/>
    <menuitem id="browserContext-undo"
              label="&undoDefaultCmd.label;"
              accesskey="&undoDefaultCmd.accesskey;"
              command="cmd_undo"/>
    <menuseparator id="browserContext-sep-undo"/>
    <menuitem id="browserContext-cut"
              data-l10n-id="text-action-cut"
              command="cmd_copy"/>
    <menuitem id="browserContext-copy"
              data-l10n-id="text-action-copy"
              command="cmd_copy"/>
    <menuitem id="browserContext-paste"
              data-l10n-id="text-action-paste"
              command="cmd_paste"/>
    <menuitem id="browserContext-selectall"
              data-l10n-id="text-action-select-all"
              command="cmd_selectAll"/>
    <menuseparator id="browserContext-sep-clipboard"/>

    <menuitem id="browserContext-searchTheWeb"
              label="[glodaComplete.webSearch1.label]"
              oncommand="openWebSearch(event.target.value)"/>

    <!-- Spellchecking general menu items (enable, add dictionaries...) -->
    <menuseparator id="browserContext-spell-separator"/>
    <menuitem id="browserContext-spell-check-enabled"
              data-l10n-id="text-action-spell-check-toggle"
              type="checkbox"
              oncommand="gSpellChecker.toggleEnabled();"/>
    <menuitem id="browserContext-spell-add-dictionaries-main"
              label="&spellAddDictionaries.label;"
              accesskey="&spellAddDictionaries.accesskey;"
              oncommand="gContextMenu.addDictionaries();"/>
    <menu id="browserContext-spell-dictionaries"
          data-l10n-id="text-action-spell-dictionaries">
        <menupopup id="browserContext-spell-dictionaries-menu">
            <menuseparator id="browserContext-spell-language-separator"/>
            <menuitem id="browserContext-spell-add-dictionaries"
                      label="&spellAddDictionaries.label;"
                      accesskey="&spellAddDictionaries.accesskey;"
                      oncommand="gContextMenu.addDictionaries();"/>
        </menupopup>
    </menu>

    <menuitem id="browserContext-media-play"
              label="&contextPlay.label;"
              accesskey="&contextPlay.accesskey;"
              oncommand="gContextMenu.mediaCommand('play');"/>
    <menuitem id="browserContext-media-pause"
              label="&contextPause.label;"
              accesskey="&contextPause.accesskey;"
              oncommand="gContextMenu.mediaCommand('pause');"/>
    <menuitem id="browserContext-media-mute"
              label="&contextMute.label;"
              accesskey="&contextMute.accesskey;"
              oncommand="gContextMenu.mediaCommand('mute');"/>
    <menuitem id="browserContext-media-unmute"
              label="&contextUnmute.label;"
              accesskey="&contextUnmute.accesskey;"
              oncommand="gContextMenu.mediaCommand('unmute');"/>
    <menuseparator id="browserContext-sep-edit"/>
    <menuitem id="browserContext-copylink"
              label="&copyLinkCmd.label;"
              accesskey="&copyLinkCmd.accesskey;"
              command="cmd_copyLink"/>
    <menuitem id="browserContext-copyimage"
              label="&copyImageAllCmd.label;"
              accesskey="&copyImageAllCmd.accesskey;"
              command="cmd_copyImage"/>
    <menuitem id="browserContext-addemail"
              label="&AddToAddressBook.label;"
              accesskey="&AddToAddressBook.accesskey;"
              oncommand="addEmail(gContextMenu.linkURL);"/>
    <menuitem id="browserContext-composeemailto"
              label="&SendMessageTo.label;"
              accesskey="&SendMessageTo.accesskey;"
              oncommand="composeEmailTo(gContextMenu.linkURL);"/>
    <menuitem id="browserContext-copyemail"
              label="&copyEmailCmd.label;"
              accesskey="&copyEmailCmd.accesskey;"
              oncommand="gContextMenu.copyEmail();"/>
    <menuseparator id="browserContext-sep-copy"/>
    <menuitem id="browserContext-savelink"
              label="&saveLinkAsCmd.label;"
              accesskey="&saveLinkAsCmd.accesskey;"
              oncommand="gContextMenu.saveLink();"/>
    <menuitem id="browserContext-saveimage"
              label="&saveImageAsCmd.label;"
              accesskey="&saveImageAsCmd.accesskey;"
              oncommand="gContextMenu.saveImage();"/>
  </menupopup>
#endif
  <panel id="DateTimePickerPanel"
         type="arrow"
         orient="vertical"
         noautofocus="true"
         norolluponanchor="true"
         consumeoutsideclicks="never"
         level="top"
         tabspecific="true">
  </panel>

  <!-- For select dropdowns. The menupopup is what shows the list of options,
       and the popuponly menulist makes things like the menuactive attributes
       work correctly on the menupopup. ContentSelectDropdown expects the
       popuponly menulist to be its immediate parent. -->
  <menulist popuponly="true" id="ContentSelectDropdown" hidden="true">
    <menupopup rolluponmousewheel="true"
               activateontab="true" position="after_start"
               level="parent"
#ifdef XP_WIN
               consumeoutsideclicks="false" ignorekeys="shortcuts"
#endif
      />
  </menulist>

  <panel is="autocomplete-richlistbox-popup" id="PopupAutoComplete"
         type="autocomplete"
         role="group"
         noautofocus="true"/>

  <tooltip id="remoteBrowserTooltip"/>