b=328070 Metrics extension UI r=Jan.Varga --pete

This commit is contained in:
pete@mozdevgroup.com 2007-12-05 14:00:02 -08:00
parent 16b5121b20
commit 048590ea12
4 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,32 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://metrics/skin/prefs.css" type="text/css"?>
<!DOCTYPE prefwindow SYSTEM "chrome://metrics/locale/prefs.dtd">
<prefwindow
id="metrics-options-window"
type="prefwindow"
windowtype="Metrics:Preferences"
title="&prefs.title;"
width="400" height="160"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<prefpane id="metricsPrefsPanel" class="prefs" flex="1">
<preferences id="metrics-prefs" label="Test Label">
<preference id="metrics-pref-upload-enable" name="extensions.mozilla.metrics.upload.enable" type="bool" instantApply="tue" />
</preferences>
<vbox flex="1">
<description class="msg">&prefs.label.msg;</description>
<checkbox id="metrics-enable-checkbox" checked="true" label="&prefs.checkbox.enable;" preference="metrics-pref-upload-enable"
persist="checked" class="cb" />
</vbox>
</prefpane>
<hbox flex="1" pack="end">
<button label="&prefs.button.close;" oncommand="close();" />
</hbox>
</prefwindow>

View File

@ -21,5 +21,14 @@
<em:name>Metrics Collector</em:name>
<em:description>Collects anonymous usage statistics from the browser</em:description>
<em:creator>mozilla.org</em:creator>
<em:optionsURL>chrome://metrics/content/prefs.xul</em:optionsURL>
<em:file>
<Description about="urn:mozilla:extension:file:metrics.jar">
<em:package>content/</em:package>
<em:skin>skin/</em:skin>
<em:locale>locale/en-US/</em:locale>
</Description>
</em:file>
</Description>
</RDF>

View File

@ -0,0 +1,7 @@
<!ENTITY prefs.title "Metrics Preferences">
<!ENTITY prefs.label.msg "Help us make Firefox better by sending anonymous usage statistics.">
<!ENTITY prefs.checkbox.enable "Enable Metrics">
<!ENTITY prefs.button.close "Close">

View File

@ -0,0 +1,17 @@
.prefs
{
background : white;
margin : 10px 10px 0px 10px;
border : 1px inset ThreeDFace;
}
.msg
{
margin-bottom : 10px;
}
.cb
{
margin-left : 20px;
}