aboutsummaryrefslogtreecommitdiff
path: root/files/ja/extensions/bootstrap.js/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/extensions/bootstrap.js/index.html')
-rw-r--r--files/ja/extensions/bootstrap.js/index.html71
1 files changed, 0 insertions, 71 deletions
diff --git a/files/ja/extensions/bootstrap.js/index.html b/files/ja/extensions/bootstrap.js/index.html
deleted file mode 100644
index d41402dbe0..0000000000
--- a/files/ja/extensions/bootstrap.js/index.html
+++ /dev/null
@@ -1,71 +0,0 @@
----
-title: bootstrap.js
-slug: Extensions/bootstrap.js
-tags:
- - Add-ons
- - Bootstrap
- - Extensions
-translation_of: Extensions/bootstrap.js
----
-<p><code>bootstrap.js</code> スクリプトにはいくつかの特定の関数を含める必要があります。それらは拡張機能を管理するブラウザによって呼び出されます。このスクリプトは特権付きサンドボックス内で実行され、拡張機能の終了時までキャッシュされます。詳しくは <a href="/ja/docs/Extensions/Bootstrapped_extensions">ブートストラップ型拡張機能</a> を参照してください。</p>
-<p>以下の例には必要な関数が vsdoc 形式で含まれています。</p>
-<pre style="font-family: Consolas; font-size: 13; color: black; background: white;"><span style="color: blue;">function</span> startup(data, reason) {
-    <span style="color: darkgreen;">/// &lt;summary&gt;</span>
-    <span style="color: darkgreen;">/// ブートストラップデータ構造 @see https://developer.mozilla.org/ja/docs/Extensions/Bootstrapped_extensions#Bootstrap_data</span>
-    <span style="color: darkgreen;">/// &amp;#10;  string id</span>
-    <span style="color: darkgreen;">/// &amp;#10;  string version</span>
-    <span style="color: darkgreen;">/// &amp;#10;  nsIFile installPath</span>
-    <span style="color: darkgreen;">/// &amp;#10;  nsIURI resourceURI</span>
-    <span style="color: darkgreen;">/// &amp;#10;</span>
-    <span style="color: darkgreen;">/// 理由の種類:</span>
-    <span style="color: darkgreen;">/// &amp;#10;  APP_STARTUP</span>
-    <span style="color: darkgreen;">/// &amp;#10;  ADDON_ENABLE</span>
-    <span style="color: darkgreen;">/// &amp;#10;  ADDON_INSTALL</span>
-    <span style="color: darkgreen;">/// &amp;#10;  ADDON_UPGRADE</span>
-    <span style="color: darkgreen;">/// &amp;#10;  ADDON_DOWNGRADE</span>
-    <span style="color: darkgreen;">/// &lt;/summary&gt;</span>
-}
-<span style="color: blue;">function</span> shutdown(data, reason) {
-    <span style="color: darkgreen;">/// &lt;summary&gt;</span>
-    <span style="color: darkgreen;">/// ブートストラップデータ構造 @see https://developer.mozilla.org/ja/docs/Extensions/Bootstrapped_extensions#Bootstrap_data</span>
-    <span style="color: darkgreen;">/// &amp;#10;  string id</span>
-    <span style="color: darkgreen;">/// &amp;#10;  string version</span>
-    <span style="color: darkgreen;">/// &amp;#10;  nsIFile installPath</span>
-    <span style="color: darkgreen;">/// &amp;#10;  nsIURI resourceURI</span>
-    <span style="color: darkgreen;">/// &amp;#10;</span>
-    <span style="color: darkgreen;">/// 理由の種類:</span>
-    <span style="color: darkgreen;">/// &amp;#10;  APP_SHUTDOWN</span>
-    <span style="color: darkgreen;">/// &amp;#10;  ADDON_DISABLE</span>
-    <span style="color: darkgreen;">/// &amp;#10;  ADDON_UNINSTALL</span>
-    <span style="color: darkgreen;">/// &amp;#10;  ADDON_UPGRADE</span>
-    <span style="color: darkgreen;">/// &amp;#10;  ADDON_DOWNGRADE</span>
-    <span style="color: darkgreen;">/// &lt;/summary&gt;</span>
-}
-<span style="color: blue;">function</span> install(data, reason) {
-    <span style="color: darkgreen;">/// &lt;summary&gt;</span>
-    <span style="color: darkgreen;">/// ブートストラップデータ構造 @see https://developer.mozilla.org/ja/docs/Extensions/Bootstrapped_extensions#Bootstrap_data</span>
-    <span style="color: darkgreen;">/// &amp;#10;  string id</span>
-    <span style="color: darkgreen;">/// &amp;#10;  string version</span>
-    <span style="color: darkgreen;">/// &amp;#10;  nsIFile installPath</span>
-    <span style="color: darkgreen;">/// &amp;#10;  nsIURI resourceURI</span>
-    <span style="color: darkgreen;">/// &amp;#10;</span>
-    <span style="color: darkgreen;">/// 理由の種類:</span>
-    <span style="color: darkgreen;">/// &amp;#10;  ADDON_INSTALL</span>
-    <span style="color: darkgreen;">/// &amp;#10;  ADDON_UPGRADE</span>
-    <span style="color: darkgreen;">/// &amp;#10;  ADDON_DOWNGRADE</span>
-    <span style="color: darkgreen;">/// &lt;/summary&gt;</span>
-}
-<span style="color: blue;">function</span> uninstall(data, reason) {
-    <span style="color: darkgreen;">/// &lt;summary&gt;</span>
-    <span style="color: darkgreen;">/// ブートストラップデータ構造 @see https://developer.mozilla.org/ja/docs/Extensions/Bootstrapped_extensions#Bootstrap_data</span>
-    <span style="color: darkgreen;">/// &amp;#10;  string id</span>
-    <span style="color: darkgreen;">/// &amp;#10;  string version</span>
-    <span style="color: darkgreen;">/// &amp;#10;  nsIFile installPath</span>
-    <span style="color: darkgreen;">/// &amp;#10;  nsIURI resourceURI</span>
-    <span style="color: darkgreen;">/// &amp;#10;</span>
-    <span style="color: darkgreen;">/// 理由の種類:</span>
-    <span style="color: darkgreen;">/// &amp;#10;  ADDON_UNINSTALL</span>
-    <span style="color: darkgreen;">/// &amp;#10;  ADDON_UPGRADE</span>
-    <span style="color: darkgreen;">/// &amp;#10;  ADDON_DOWNGRADE</span>
-    <span style="color: darkgreen;">/// &lt;/summary&gt;</span>
-}</pre>