Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mullvad Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Mullvad Browser
Commits
f5a1dc45
Commit
f5a1dc45
authored
26 years ago
by
rods%netscape.com
Browse files
Options
Downloads
Patches
Plain Diff
Added extra experimental menu and items and added in an extra toolbar
parent
2496dcca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
xpfe/browser/src/appshell.html
+4
-4
4 additions, 4 deletions
xpfe/browser/src/appshell.html
xpfe/browser/src/toolbar.xml
+56
-5
56 additions, 5 deletions
xpfe/browser/src/toolbar.xml
xpfe/browser/src/xul.css
+2
-2
2 additions, 2 deletions
xpfe/browser/src/xul.css
with
62 additions
and
11 deletions
xpfe/browser/src/appshell.html
+
4
−
4
View file @
f5a1dc45
...
...
@@ -21,7 +21,7 @@ BODY {
#header
{
position
:
fixed
;
width
:
100%
;
height
:
8
0px
;
height
:
11
0px
;
top
:
0
;
right
:
0
;
bottom
:
auto
;
...
...
@@ -32,7 +32,7 @@ BODY {
position
:
fixed
;
width
:
10em
;
height
:
auto
;
top
:
8
0px
;
top
:
11
0px
;
right
:
auto
;
bottom
:
34px
;
left
:
0
;
...
...
@@ -43,7 +43,7 @@ BODY {
position
:
fixed
;
width
:
auto
;
height
:
auto
;
top
:
8
0px
;
top
:
11
0px
;
right
:
0
;
bottom
:
34px
;
left
:
10em
;
...
...
@@ -67,7 +67,7 @@ BODY {
</style>
<DIV
id=
"header"
>
<iframe
src=
"toolbar.xml"
name=
"browser.toolbar"
width=
"100%"
height=
"
8
0"
></iframe>
<iframe
src=
"toolbar.xml"
name=
"browser.toolbar"
width=
"100%"
height=
"
11
0"
></iframe>
</DIV>
<DIV
id=
"main"
>
...
...
This diff is collapsed.
Click to expand it.
xpfe/browser/src/toolbar.xml
+
56
−
5
View file @
f5a1dc45
...
...
@@ -21,6 +21,8 @@
appCore.setWebShellWindow(window.parent);
appCore.setDisableCallback("DoDisableButtons();");
appCore.setEnableCallback("DoEnableButtons();");
dump("Adding BrowserAppCore to AppCoreManager...\n");
XPAppCoresManager.Add(appCore);
}
} else {
dump("BrowserAppCore has already been created! Why?\n");
...
...
@@ -46,7 +48,7 @@
dump("Going Back\n");
appCore.back();
} else {
dump("BrowserAppCore has not ben created!\n");
dump("BrowserAppCore has not be
e
n created!\n");
}
}
...
...
@@ -57,10 +59,43 @@
dump("Going Forward\n");
appCore.forward();
} else {
dump("BrowserAppCore has not ben created!\n");
dump("BrowserAppCore has not be
e
n created!\n");
}
}
function BrowserNewWindow()
{
appCore = XPAppCoresManager.Find("BrowserAppCore");
if (appCore != null) {
dump("Opening New Window\n");
appCore.newWindow();
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function BrowserPrintPreview()
{
dump("BrowserPrintPreview\n");
}
function BrowserClose()
{
dump("BrowserClose\n");
}
function BrowserExit()
{
appCore = XPAppCoresManager.Find("BrowserAppCore");
if (appCore != null) {
dump("Exiting\n");
appCore.exit();
} else {
dump("BrowserAppCore has not been created!\n");
}
}
</html:script>
...
...
@@ -72,12 +107,21 @@
<xul:command
name=
"nsCmd:BrowserStop"
onCommand=
"window.stop();"
/>
<xul:command
name=
"nsCmd:BrowserHome"
onCommand=
"window.home();"
/>
<xul:command
name=
"nsCmd:BrowserPrint"
onCommand=
"window.print();"
/>
<xul:command
name=
"nsCmd:BrowserNewWindow"
onCommand=
"BrowserNewWindow();"
/>
<xul:command
name=
"nsCmd:BrowserExit"
onCommand=
"BrowserExit();"
/>
<!-- other parameters of command are assumed to have
some useful initial value -->
</xul:commands>
<xul:menubar>
<xul:menu
name=
"File"
>
<xul:menuitem
name=
"New Window"
cmd=
"nsCmd:BrowserNewWindow"
/>
<xul:separator
/>
<xul:menuitem
name=
"Print Setup"
cmd=
"nsCmd:BrowserPrintSetup"
/>
<xul:menuitem
name=
"Print Preview"
cmd=
"nsCmd:BrowserPrintPreview"
/>
<xul:menuitem
name=
"Print"
cmd=
"nsCmd:BrowserPrint"
/>
<xul:separator
/>
<xul:menuitem
name=
"Close"
cmd=
"nsCmd:BrowserClose"
/>
<xul:menuitem
name=
"Exit"
cmd=
"nsCmd:BrowserExit"
/>
</xul:menu>
<xul:menu
name=
"View"
>
<xul:menuitem
name=
"Reload"
cmd=
"nsCmd:BrowserReload"
/>
...
...
@@ -111,12 +155,19 @@
<html:button
cmd=
"nsCmd:BrowserPrint"
style=
"background-color:rgb(192,192,192);"
>
<html:img
src=
"resource:/res/toolbar/TB_Print.gif"
/><html:br/>
Print
</html:button>
<html:input
style=
"width:325px;"
/>
<html:button
cmd=
"nsCmd:BrowserHome"
>
<html:button
cmd=
"nsCmd:BrowserHome"
>
<html:img
src=
"resource:/res/throbber/anims00.gif"
/>
</html:button>
</xul:toolbar>
<xul:toolbar
style=
"background-color:rgb(192,192,192);"
>
<html:button
cmd=
"nsCmd:BrowserBookmarks"
style=
"background-color:rgb(192,192,192);"
>
<html:img
src=
"resource:/res/toolbar/TB_Bookmarks.gif"
/>
Bookmarks
</html:button>
<html:input
style=
"width:325px;"
/>
<html:button
cmd=
"nsCmd:BrowserWhatsRelated"
style=
"background-color:rgb(192,192,192);"
>
<html:img
src=
"resource:/res/toolbar/TB_WhatsRelated.gif"
/>
What's Related
</html:button>
</xul:toolbar>
<xul:toolbar>
<html:button
cmd=
"nsCmd:BrowserHome"
>
...
...
This diff is collapsed.
Click to expand it.
xpfe/browser/src/xul.css
+
2
−
2
View file @
f5a1dc45
toolbar
{
background-color
:
lightgray
;
background-color
:
rgb
(
192
,
192
,
192
)
;
border-bottom
:
solid
darkGray
1px
;
border-top
:
solid
white
1px
;
border-left
:
solid
white
1px
;
...
...
@@ -18,7 +18,7 @@ toolbox {
}
:toolbox-normal
{
background-color
:
lightgray
;
background-color
:
rgb
(
192
,
192
,
192
)
;
color
:
lightgray
;
border-bottom
:
solid
darkGray
1px
;
border-top
:
solid
white
0px
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment