Adding a device specific component -- something of a dumping ground for various functions i have no other place to put.

This commit is contained in:
dougt%meer.net 2005-09-02 23:37:10 +00:00
Родитель 50be3e8481
Коммит 3d2ceeeef8
5 изменённых файлов: 23 добавлений и 1 удалений

Просмотреть файл

@ -31,3 +31,4 @@ pippki
phone
snav
ssr
devicesupport

Просмотреть файл

@ -31,3 +31,4 @@ PKI
nsPhoneSupportModule
SpatialNavigationModule
SSRModule
DeviceSupportModule

Просмотреть файл

@ -523,3 +523,18 @@ function BrowserToogleSiteSSR()
BrowserReload(); // hack until this is done by ssr itself
}
var gRotationDirection = true;
function BrowserScreenRotate()
{
try {
var deviceSupport = Components.classes["@mozilla.org/device/support;1"].getService(Components.interfaces.nsIDeviceSupport);
deviceSupport.rotateScreen(gRotationDirection);
gRotationDirection != gRotationDirection;
}
catch (ex)
{
alert(ex);
}
}

Просмотреть файл

@ -69,6 +69,7 @@
<toolbox>
<command id="cmd_BrowserOpenTab" oncommand="BrowserOpenTab()"/>
<command id="cmd_BrowserScreenRotate" oncommand="BrowserScreenRotate()"/>
<command id="cmd_BrowserSSR" oncommand="BrowserToogleSSR()"/>
<command id="cmd_BrowserSiteSSR" oncommand="BrowserToogleSiteSSR()"/>
<command id="cmd_BrowserOpenInfo" oncommand="BrowserOpenInfo()"/>
@ -87,6 +88,10 @@
<menu id="menu-button" >
<menupopup>
<menuitem id="command_BrowserOpenTab" command="cmd_BrowserOpenTab" label="New Tab" />
<!-- not working just yet.
<menuitem id="command_BrowserScreenRotate" command="cmd_BrowserScreenRotate" label="Rotate Screen" />
-->
<menuitem id="command_DoPanelPreferences" command="cmd_DoPanelPreferences" label="&prefs.label;" />
<!-- separator for now in CSS - need to redesign -->
<menuitem id="command_ViewOptions" style='border-top:1px solid black' type="checkbox" command="cmd_ViewOptions" label="View Options" />

Просмотреть файл

@ -41,6 +41,6 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = phone softkb ssr
DIRS = phone softkb ssr device
include $(topsrcdir)/config/rules.mk