Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/gerv/addon-sdk into gerv-…
Browse files Browse the repository at this point in the history
…master
  • Loading branch information
mykmelez committed Jan 9, 2012
2 parents a84cde3 + ac28b9c commit e4451be
Show file tree
Hide file tree
Showing 474 changed files with 1,812 additions and 4,130 deletions.
4 changes: 4 additions & 0 deletions bin/activate.bat
@@ -1,3 +1,7 @@
rem This Source Code Form is subject to the terms of the Mozilla Public
rem License, v. 2.0. If a copy of the MPL was not distributed with this
rem file, You can obtain one at http://mozilla.org/MPL/2.0/.

@echo off
set VIRTUAL_ENV=%~dp0
set VIRTUAL_ENV=%VIRTUAL_ENV:~0,-5%
Expand Down
4 changes: 4 additions & 0 deletions bin/cfx
@@ -1,4 +1,8 @@
#! /usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.


import os
import sys
Expand Down
4 changes: 4 additions & 0 deletions bin/cfx.bat
@@ -1,3 +1,7 @@
rem This Source Code Form is subject to the terms of the Mozilla Public
rem License, v. 2.0. If a copy of the MPL was not distributed with this
rem file, You can obtain one at http://mozilla.org/MPL/2.0/.

@echo off

python "%VIRTUAL_ENV%\bin\cfx" %*
4 changes: 4 additions & 0 deletions bin/deactivate.bat
@@ -1,3 +1,7 @@
rem This Source Code Form is subject to the terms of the Mozilla Public
rem License, v. 2.0. If a copy of the MPL was not distributed with this
rem file, You can obtain one at http://mozilla.org/MPL/2.0/.

@echo off

if defined _OLD_VIRTUAL_PROMPT (
Expand Down
4 changes: 4 additions & 0 deletions bin/integration-scripts/buildbot-run-cfx-helper
@@ -1,4 +1,8 @@
#!/bin/bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.


source ./bin/activate
if [ type -P xvfb-run ]
Expand Down
4 changes: 4 additions & 0 deletions bin/integration-scripts/integration-check
@@ -1,4 +1,8 @@
#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

import os
import signal
import threading
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/about.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Developer Guide #

With the exception of features in the Experimental section, the APIs and
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/annotator/annotator.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Annotator: a More Complex Add-on #

In this tutorial we'll build an add-on that uses most of the modules in the
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/annotator/creating.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Creating Annotations #

We'll use two objects to create annotations: a page-mod to find page elements
Expand Down
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Displaying Annotations #

In this chapter we'll use a page-mod to locate elements of web pages that have
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/annotator/overview.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Annotator Design Overview #

The annotator uses content scripts to build user interfaces, get user input,
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/annotator/storing.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Storing Annotations #

Now we are able to create annotations, let's store them using the
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/annotator/widget.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Implementing the Widget #

We want the widget to do two things:
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/api-idioms.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Common Idioms #

## Constructors ##
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/api-intro.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Introducing the APIs #

### [Common Idioms](dev-guide/addon-development/api-idioms.html) ###
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/api-modules.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# API Overview #

This section is a very quick overview of some of the APIs provided in the SDK.
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/cfx-tool.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# cfx #

The `cfx` command-line tool gives you access to the SDK documentation and
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/commonjs.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# CommonJS, Modules, Packages, and the SDK #

CommonJS is the underlying infrastructure for both the SDK modules and add-ons
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/console.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# console #

The `console` object enables your add-on to log messages. If you have started
Expand Down
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Content Script Access #

This page talks about the access content scripts have to:
Expand Down
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->


# Loading Content Scripts #

Expand Down
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Reddit Example #

This example add-on creates a panel containing the mobile version of Reddit.
Expand Down
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->


# Communicating using "port" #

Expand Down
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Communicating using "postMessage()" #

As an alternative to user-defined events content modules support the built-in
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/events.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Working with Events #

The Add-on SDK supports event-driven programming through its
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/getting-started.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Getting Started #

This tutorial provides a practical step by step introduction to developing
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/guides.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Programming Guides #

### [Two Types of Scripts](dev-guide/addon-development/two-types-of-scripts.html) ###
Expand Down
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Implementing Reusable Modules #

So far we've seen how you can use the SDK to build a simple add-on. But you
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/installation.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Installation #

## Prerequisites
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/library-detector.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Porting the Library Detector #

This example walks through the process of porting a XUL-based add-on to the
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/module-search.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Module Search #

## require(what?) ##
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/program-id.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# The Program ID #

The Program ID is a unique identifier for your add-on. When you package your
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/reference.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Reference #

### [addon-kit](packages/addon-kit/addon-kit.html) ##
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/sdk-vs-xul.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->


# SDK and XUL Comparison #

Expand Down
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Third Party Packages #

The SDK APIs are implemented by modules, which are collected into packages
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/troubleshooting.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Troubleshooting #

If you're having trouble getting the Add-on SDK up and running, don't panic!
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/tutorials.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Tutorials #

### [Getting Started](dev-guide/addon-development/getting-started.html) ###
Expand Down
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Two Types of Scripts #

On the web, JavaScript executes in the context of a web page, and has access to
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/web-content.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Content Scripts #

Almost all interesting add-ons will need to interact with web content or the
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/addon-development/xul-migration.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->


# XUL Migration Guide #

Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/appendices/credits.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Credits #

We'd like to thank our many Jetpack project contributors! They include:
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/appendices/glossary.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Glossary #

This glossary contains a list of terms used in the Add-on SDK.
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/module-development/about.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Internals Guide #

The Internals Guide explains how to use the low-level modules provided
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/module-development/best-practices.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Low-Level Module Best Practices #

<span class="aside">
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/module-development/chrome.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Chrome Authority #

## Using Chrome Authority ##
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/module-development/globals.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Internals > Globals #

Globals in this section are subject to change in the future and/or are likely
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/module-development/guides.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Internals > Programming Guides #

### [Low-Level Module Best Practices](dev-guide/module-development/best-practices.html) ###
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/module-development/reference.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Internals > Reference #

### [api-utils](packages/api-utils/api-utils.html) ##
Expand Down
4 changes: 4 additions & 0 deletions doc/dev-guide-source/module-development/tutorials.md
@@ -1,3 +1,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

# Module Development > Tutorials #
<br>
## Programming Guides ##
Expand Down

0 comments on commit e4451be

Please sign in to comment.