зеркало из https://github.com/mozilla/pjs.git
b=328070 Metrics extension UI r=Jan.Varga --pete
This commit is contained in:
Родитель
609a9ef780
Коммит
3cd7a70971
|
@ -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>
|
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
.prefs
|
||||
{
|
||||
background : white;
|
||||
margin : 10px 10px 0px 10px;
|
||||
border : 1px inset ThreeDFace;
|
||||
}
|
||||
|
||||
.msg
|
||||
{
|
||||
margin-bottom : 10px;
|
||||
}
|
||||
|
||||
.cb
|
||||
{
|
||||
margin-left : 20px;
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче