Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Mobile support and extended compatibility.
Supports all current Aurora versions. Adds support for Firefox Mobile. Removed use of FUEL library because of this. Moved menu item to the Web Developer submenu.
- Loading branch information
Jorge Villalobos
committed
Oct 1, 2011
1 parent
f7f6ea2
commit e33f34e
Showing
12 changed files
with
168 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,56 @@ | |||
/** | |||
* Copyright 2011 Jorge Villalobos | |||
* | |||
* Licensed under the Apache License, Version 2.0 (the "License"); | |||
* you may not use this file except in compliance with the License. | |||
* You may obtain a copy of the License at | |||
* | |||
* http://www.apache.org/licenses/LICENSE-2.0 | |||
* Unless required by applicable law or agreed to in writing, software | |||
* distributed under the License is distributed on an "AS IS" BASIS, | |||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
* See the License for the specific language governing permissions and | |||
* limitations under the License. | |||
**/ | |||
|
|||
const Cc = Components.classes; | |||
const Ci = Components.interfaces; | |||
|
|||
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); | |||
|
|||
/** | |||
* Registers itself as an about: provider, so that about:remotexul points to a | |||
* chrome path in this extension. | |||
*/ | |||
function AboutRXM() {} | |||
|
|||
AboutRXM.prototype = { | |||
classDescription : "about:remotexul", | |||
contractID : "@mozilla.org/network/protocol/about;1?what=remotexul", | |||
classID : Components.ID("{aa76f1c0-a902-4afe-ab37-e51d8c6d2e68}"), | |||
|
|||
getURIFlags : function(aURI) { | |||
return Ci.nsIAboutModule.ALLOW_SCRIPT; | |||
}, | |||
|
|||
newChannel : function(aURI) { | |||
let ioService = | |||
Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService); | |||
let channel = | |||
ioService.newChannel( | |||
"chrome://remotexulmanager/content/rxmAbout.xul", null, null); | |||
|
|||
channel.originalURI = aURI; | |||
|
|||
return channel; | |||
}, | |||
|
|||
QueryInterface : XPCOMUtils.generateQI([ Ci.nsIAboutModule ]) | |||
}; | |||
|
|||
if (XPCOMUtils.generateNSGetFactory) { | |||
var NSGetFactory = XPCOMUtils.generateNSGetFactory([ AboutRXM ]); | |||
} else { | |||
var NSGetModule = XPCOMUtils.generateNSGetModule([ AboutRXM ]); | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,46 @@ | |||
<?xml version="1.0"?> | |||
|
|||
<!-- | |||
- Copyright 2011 Jorge Villalobos | |||
- | |||
- Licensed under the Apache License, Version 2.0 (the "License"); | |||
- you may not use this file except in compliance with the License. | |||
- You may obtain a copy of the License at | |||
- http://www.apache.org/licenses/LICENSE-2.0 | |||
- Unless required by applicable law or agreed to in writing, software | |||
- distributed under the License is distributed on an "AS IS" BASIS, | |||
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
- See the License for the specific language governing permissions and | |||
- limitations under the License. | |||
--> | |||
|
|||
<?xml-stylesheet type="text/css" href="chrome://global/skin/" ?> | |||
<?xml-stylesheet type="text/css" | |||
href="chrome://remotexulmanager/skin/rxmManager.css" ?> | |||
|
|||
<!DOCTYPE window SYSTEM "chrome://remotexulmanager/locale/rxmManager.dtd"> | |||
|
|||
<window id="remotexulmanager-about-window" | |||
windowtype="remotexulmanager-about-window" | |||
title="&remotexulmanager.manager.title;" | |||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | |||
|
|||
<script type="application/x-javascript" | |||
src="chrome://remotexulmanager/content/rxmManager.js" /> | |||
|
|||
<vbox id="window-content" flex="1"> | |||
<label control="domains" value="&remotexulmanager.allowed.label;" /> | |||
<listbox id="domains" rows="15" seltype="multiple" | |||
onselect="RXULMChrome.Manager.select(event);" /> | |||
<button id="add" label="&remotexulmanager.add.label;" | |||
accesskey="&remotexulmanager.add.accesskey;" | |||
oncommand="RXULMChrome.Manager.add(event);" /> | |||
<button id="remove" disabled="true" | |||
label="&remotexulmanager.remove.label;" | |||
accesskey="&remotexulmanager.remove.accesskey;" | |||
oncommand="RXULMChrome.Manager.remove(event);" /> | |||
</vbox> | |||
|
|||
</window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters