mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
preparing for split of open menu into open file and open web page
This commit is contained in:
parent
7b6579c1f2
commit
46d6cb89ae
@ -547,6 +547,7 @@ function OpenSearch(tabName, searchStr)
|
||||
|
||||
function BrowserOpenWindow()
|
||||
{
|
||||
//opens a window where users can select a web location to open
|
||||
core = XPAppCoresManager.Find("toolkitCore");
|
||||
if ( !core ) {
|
||||
core = new ToolkitCore();
|
||||
@ -565,6 +566,12 @@ function OpenSearch(tabName, searchStr)
|
||||
dump("Error; can't create toolkitCore\n");
|
||||
}
|
||||
}
|
||||
|
||||
function BrowserOpenFileWindow()
|
||||
{
|
||||
//opens an OS based file selector window
|
||||
appCore.openWindow();
|
||||
}
|
||||
|
||||
function OpenFile(url) {
|
||||
// This is invoked from the browser app core.
|
||||
|
@ -11,7 +11,8 @@
|
||||
<!ENTITY newBlankPageCmd.label "Blank Window">
|
||||
<!ENTITY newPageFromTemplateCmd.label "Page Using Template">
|
||||
<!ENTITY newPageFromDraftCmd.label "Page using Draft">
|
||||
<!ENTITY openCmd.label "Open File or Location...">
|
||||
<!ENTITY openCmd.label "Open Web Location...">
|
||||
<!ENTITY openFileCmd.label "Open File...">
|
||||
<!ENTITY sendPageCmd.label "Send Page">
|
||||
<!ENTITY editPageCmd.label "Edit Page">
|
||||
<!ENTITY offlineMenu.label "Offline">
|
||||
|
@ -547,6 +547,7 @@ function OpenSearch(tabName, searchStr)
|
||||
|
||||
function BrowserOpenWindow()
|
||||
{
|
||||
//opens a window where users can select a web location to open
|
||||
core = XPAppCoresManager.Find("toolkitCore");
|
||||
if ( !core ) {
|
||||
core = new ToolkitCore();
|
||||
@ -565,6 +566,12 @@ function OpenSearch(tabName, searchStr)
|
||||
dump("Error; can't create toolkitCore\n");
|
||||
}
|
||||
}
|
||||
|
||||
function BrowserOpenFileWindow()
|
||||
{
|
||||
//opens an OS based file selector window
|
||||
appCore.openWindow();
|
||||
}
|
||||
|
||||
function OpenFile(url) {
|
||||
// This is invoked from the browser app core.
|
||||
|
@ -11,7 +11,8 @@
|
||||
<!ENTITY newBlankPageCmd.label "Blank Window">
|
||||
<!ENTITY newPageFromTemplateCmd.label "Page Using Template">
|
||||
<!ENTITY newPageFromDraftCmd.label "Page using Draft">
|
||||
<!ENTITY openCmd.label "Open File or Location...">
|
||||
<!ENTITY openCmd.label "Open Web Location...">
|
||||
<!ENTITY openFileCmd.label "Open File...">
|
||||
<!ENTITY sendPageCmd.label "Send Page">
|
||||
<!ENTITY editPageCmd.label "Edit Page">
|
||||
<!ENTITY offlineMenu.label "Offline">
|
||||
|
@ -1,8 +1,8 @@
|
||||
<!-- extracted from content/openLocation.xul -->
|
||||
|
||||
<!ENTITY enter.label "Enter the World Wide Web location (URL) you would like to open or">
|
||||
<!ENTITY choose.label "use the Choose File... button to select a local file:">
|
||||
<!ENTITY enter.label "Enter the Web location (URL) you would like to open">
|
||||
<!ENTITY chooseFile.label "Choose File...">
|
||||
<!ENTITY openWin.label "Open in new window">
|
||||
<!ENTITY ok.label "OK">
|
||||
<!ENTITY cancel.label "Cancel">
|
||||
<!ENTITY caption.label "Open Web Location">
|
||||
|
Loading…
Reference in New Issue
Block a user