diff options
Diffstat (limited to 'files/zh-cn/archive/b2g_os/api/navigator')
4 files changed, 0 insertions, 466 deletions
diff --git a/files/zh-cn/archive/b2g_os/api/navigator/index.html b/files/zh-cn/archive/b2g_os/api/navigator/index.html deleted file mode 100644 index c66a781c5f..0000000000 --- a/files/zh-cn/archive/b2g_os/api/navigator/index.html +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: Navigator (Firefox OS extensions) -slug: Archive/B2G_OS/API/Navigator -translation_of: Archive/B2G_OS/API/Navigator ---- -<p>(zh-CN translation)</p> - -<p>The <code><strong>Navigator</strong></code> interface represents the state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. This page represents the list of properties and methods added to <code>Navigator</code> on Firefox OS devices. For the list of properties and methods available to any Web sites, consult <a href="/zh-CN/docs/Web/API/Navigator" title="Navigator 接口表示用户代理的状态和标识。 它允许脚本查询它和注册自己进行一些活动。"><code>Navigator</code></a>.</p> - -<p>A <code>Navigator</code> object can be retrieved using the read-only <a href="/zh-CN/docs/Web/API/Window/navigator" title="返回一个navigator对象的引用,可以用它来查询一些关于运行当前脚本的应用程序的相关信息."><code>Window.navigator</code></a> property.</p> - -<p></p><dl><dt class="landingPageList"><a href="/zh-CN/docs/Archive/B2G_OS/API/Navigator/mozHasPendingMessage">Navigator.mozHasPendingMessage()</a></dt><dd class="landingPageList">该方法用来用于判定一个给定类型(type)是否存在未决消息(待处理的消息),返回类型为是(true)或非(false)。</dd><dt class="landingPageList"><a href="/zh-CN/docs/Archive/B2G_OS/API/Navigator/mozSetMessageHandler">Navigator.mozSetMessageHandler()</a></dt><dd class="landingPageList">该方法用来允许应用为系统消息注册处理程序,对消息作出反应。</dd><dt class="landingPageList"><a href="/zh-CN/docs/Archive/B2G_OS/API/Navigator/MozTelephony">Navigator.mozTelephony</a></dt><dd class="landingPageList">返回一个你可以用来从浏览器启动和控制电话呼叫的<a href="/zh-CN/docs/Web/API/Telephony" title="此页面仍未被本地化, 期待您的翻译!"><code>Telephony</code></a>对象。</dd></dl><p></p> diff --git a/files/zh-cn/archive/b2g_os/api/navigator/mozhaspendingmessage/index.html b/files/zh-cn/archive/b2g_os/api/navigator/mozhaspendingmessage/index.html deleted file mode 100644 index ea7a00d867..0000000000 --- a/files/zh-cn/archive/b2g_os/api/navigator/mozhaspendingmessage/index.html +++ /dev/null @@ -1,117 +0,0 @@ ---- -title: Navigator.mozHasPendingMessage() -slug: Archive/B2G_OS/API/Navigator/mozHasPendingMessage -translation_of: Archive/B2G_OS/API/Navigator/mozHasPendingMessage ---- -<p></p><section class="Quick_links" id="Quick_Links"><ol><li><strong><a href="/zh-CN/docs/Web/API/Archive"><code>Archive</code></a></strong></li><li class="toggle"><details open><summary>Related pages for Firefox OS</summary><ol><li><a href="/zh-CN/docs/Web/API/MozAlarmsManager"><code>MozAlarmsManager</code></a></li><li><a href="/zh-CN/docs/Web/API/MozMobileNetworkInfo"><code>MozMobileNetworkInfo</code></a></li><li><a href="/zh-CN/docs/Web/API/MozWifiP2pGroupOwner"><code>MozWifiP2pGroupOwner</code></a></li></ol></details></li></ol></section><div class="warning"> - <p style="text-align: center;">此 API 在 <a href="/zh-CN/docs/Mozilla/Firefox_OS">Firefox OS</a> 的<a href="/zh-CN/docs/Mozilla/Firefox_OS/Security/Application_security#App_Types">网页内容或高权限的应用程序</a>上可用。</p> -</div><p></p> - -<h2 id="概要">概要</h2> - -<p>该方法用来用于判定一个给定类型(type)是否存在未决消息(待处理的消息),返回类型为是(true)或非(false)。</p> - -<p>当<a href="/zh-CN/docs/Web/API/Window/navigator/mozSetMessageHandler" title="此页面仍未被本地化, 期待您的翻译!"><code>navigator.mozSetMessageHandler()</code></a> 用于设定一种类型的句柄时,待处理的消息会以异步的方式的传输给应用。 </p> - -<h2 id="语法">语法</h2> - -<pre>navigator.mozHasPendingMessage(type);</pre> - -<h3 id="参数">参数</h3> - -<dl> - <dt><code>type</code></dt> - <dd>类型是字符串,用于表示一个应用注册的处理函数要处理的消息。要获得有效type的完整列表,请参考<a href="/zh-CN/docs/Web/API/Window/navigator/mozSetMessageHandler" title="此页面仍未被本地化, 期待您的翻译!"><code>navigator.mozSetMessageHandler()</code></a>.</dd> -</dl> - -<h2 id="返回值">返回值</h2> - -<p>布尔类型。</p> - -<h2 id="规范">规范</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">规范</th> - <th scope="col">状态</th> - <th scope="col">注解</th> - </tr> - <tr> - <td><a class="external" hreflang="en" lang="en" title="Unknown">Unknown</a></td> - <td><span class="spec-">Unknown</span></td> - <td>定义了系统消息的接口</td> - </tr> - </tbody> -</table> - -<h2 id="浏览器兼容性">浏览器兼容性</h2> - -<p></p><p class="warning"><strong><a href="https://github.com/mdn/browser-compat-data">We're converting our compatibility data into a machine-readable JSON format</a></strong>. - This compatibility table still uses the old format, - because we haven't yet converted the data it contains. - <strong><a href="/zh-CN/docs/MDN/Contribute/Structures/Compatibility_tables">Find out how you can help!</a></strong></p> - -<div class="htab"> - <a id="AutoCompatibilityTable" name="AutoCompatibilityTable"></a> - <ul> - <li class="selected"><a>Desktop</a></li> - <li><a>Mobile</a></li> - </ul> -</div><p></p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Chrome</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari (WebKit)</th> - </tr> - <tr> - <td>Basic support</td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android</th> - <th>Firefox OS</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Basic support</td> - <td><span style="color: #f00;">未实现</span></td> - <td>1.0</td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - </tr> - </tbody> -</table> -</div> - -<h2 id="参见">参见</h2> - -<ul> - <li><a href="/zh-CN/docs/Web/API/Window/navigator/mozSetMessageHandler" title="此页面仍未被本地化, 期待您的翻译!"><code>navigator.mozSetMessageHandler()</code></a></li> - <li><a href="/en-US/docs/WebAPI/Web_Activities" title="/en-US/docs/WebAPI/Web_Activities">Web Activities</a></li> - <li><a class="external" href="https://groups.google.com/forum/?fromgroups=#%21topic/mozilla.dev.webapi/o8bkwx0EtmM" title="https://groups.google.com/forum/?fromgroups=#!topic/mozilla.dev.webapi/o8bkwx0EtmM">Discussion on the Mozilla WebAPI mailing list.</a></li> -</ul> diff --git a/files/zh-cn/archive/b2g_os/api/navigator/mozsetmessagehandler/index.html b/files/zh-cn/archive/b2g_os/api/navigator/mozsetmessagehandler/index.html deleted file mode 100644 index 9418c598cc..0000000000 --- a/files/zh-cn/archive/b2g_os/api/navigator/mozsetmessagehandler/index.html +++ /dev/null @@ -1,252 +0,0 @@ ---- -title: Navigator.mozSetMessageHandler() -slug: Archive/B2G_OS/API/Navigator/mozSetMessageHandler -translation_of: Archive/B2G_OS/API/Navigator/mozSetMessageHandler ---- -<p></p><section class="Quick_links" id="Quick_Links"><ol><li><strong><a href="/zh-CN/docs/Web/API/Archive"><code>Archive</code></a></strong></li><li class="toggle"><details open><summary>Related pages for Firefox OS</summary><ol><li><a href="/zh-CN/docs/Web/API/MozAlarmsManager"><code>MozAlarmsManager</code></a></li><li><a href="/zh-CN/docs/Web/API/MozMobileNetworkInfo"><code>MozMobileNetworkInfo</code></a></li><li><a href="/zh-CN/docs/Web/API/MozWifiP2pGroupOwner"><code>MozWifiP2pGroupOwner</code></a></li></ol></details></li></ol></section><div class="warning"> - <p style="text-align: center;">此 API 在 <a href="/zh-CN/docs/Mozilla/Firefox_OS">Firefox OS</a> 的<a href="/zh-CN/docs/Mozilla/Firefox_OS/Security/Application_security#App_Types">网页内容或高权限的应用程序</a>上可用。</p> -</div><p></p> - -<h2 id="概要">概要</h2> - -<p>该方法用来允许应用为系统消息注册处理程序,对消息作出反应。</p> - -<p>任何应用都允许注册到任何消息,但一些消息仅仅可以被送到有对应接收权限的应用。不同于DOM事件,如果应用没有针对系统消息的处理程序,它们将留在队列里。如果有排队消息,可以传入一个type参数调用<a href="/zh-CN/docs/Web/API/Window/navigator/mozHasPendingMessage" title="此页面仍未被本地化, 期待您的翻译!"><code>navigator.mozHasPendingMessage()</code></a>查看,当一个处理程序被设置,待处理消息将异步的地发送到应用。</p> - -<h2 id="语法">语法</h2> - -<pre>navigator.mozSetMessageHandler(type, handler);</pre> - -<h3 id="参数">参数<span id="cke_bm_102S" style="display: none;"> </span></h3> - -<dl> - <dt> </dt> - <dt><code><span id="cke_bm_83S" style="display: none;"> </span>type</code></dt> - <dd>type是一个字符串,表示要为其注册处理函数的一类消息。</dd> - <dt><code>handler</code></dt> - <dd>当系统发送消息时,该处理函数被调用,其接收参数由消息类型来确定。</dd> -</dl> - -<h2 id="Specification" name="Specification">消息类型</h2> - -<p>目前Firefox OS允许注册以下消息 :</p> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">Message name</th> - <th scope="col">Handler signature</th> - <th scope="col">Permission</th> - </tr> - </thead> - <tbody> - <tr> - <td><code>activity</code></td> - <td><code>f( <a href="/zh-CN/docs/Web/API/MozActivityRequestHandler" title="此页面仍未被本地化, 期待您的翻译!"><code>MozActivityRequestHandler</code></a> request )</code></td> - <td> </td> - </tr> - <tr> - <td><code>alarm</code></td> - <td><code>f( object unknown )</code></td> - <td>alarms</td> - </tr> - <tr> - <td><code>bluetooth-cancel</code></td> - <td><code>f( object unknown )</code></td> - <td>bluetooth</td> - </tr> - <tr> - <td><code>bluetooth-dialer-command</code></td> - <td><code>f( object unknown )</code></td> - <td>bluetooth</td> - </tr> - <tr> - <td><code>bluetooth-hfp-status-changed</code></td> - <td><code>f( object unknown )</code></td> - <td>bluetooth</td> - </tr> - <tr> - <td><code>bluetooth-opp-transfer-start</code></td> - <td><code>f( object unknown )</code></td> - <td>bluetooth</td> - </tr> - <tr> - <td><code>bluetooth-opp-transfer-complete</code></td> - <td><code>f( object unknown )</code></td> - <td>bluetooth</td> - </tr> - <tr> - <td><code>bluetooth-opp-receiving-file-confirmation</code></td> - <td><code>f( object unknown )</code></td> - <td>bluetooth</td> - </tr> - <tr> - <td><code>bluetooth-opp-update-progress</code></td> - <td><code>f( object unknown )</code></td> - <td>bluetooth</td> - </tr> - <tr> - <td><code>bluetooth-pairedstatuschanged</code></td> - <td><code>f( object unknown )</code></td> - <td>bluetooth</td> - </tr> - <tr> - <td><code>bluetooth-requestconfirmation</code></td> - <td><code>f( object unknown )</code></td> - <td>bluetooth</td> - </tr> - <tr> - <td><code>bluetooth-requestpincode</code></td> - <td><code>f( object unknown )</code></td> - <td>bluetooth</td> - </tr> - <tr> - <td><code>bluetooth-requestpasskey</code></td> - <td><code>f( object unknown )</code></td> - <td>bluetooth</td> - </tr> - <tr> - <td><code>headset-button</code></td> - <td><code>f( object unknown )</code></td> - <td> </td> - </tr> - <tr> - <td><code>icc-stkcommand</code></td> - <td><code>f( object command )</code></td> - <td>settings</td> - </tr> - <tr> - <td><code>notification</code></td> - <td><code>f( object unknown )</code></td> - <td> </td> - </tr> - <tr> - <td><code>push</code></td> - <td><code>f( object <a href="/en-US/docs/WebAPI/Simple_Push#Add_the_push_message_handler">registration</a> )</code></td> - <td><code>push</code></td> - </tr> - <tr> - <td><code>push-register</code></td> - <td><code>f ( )</code></td> - <td><code>push</code></td> - </tr> - <tr> - <td><code>sms-received</code></td> - <td><code>f( <a href="/zh-CN/docs/Web/API/SmsMessage" title="此页面仍未被本地化, 期待您的翻译!"><code>SmsMessage</code></a> sms )</code></td> - <td style="white-space: nowrap;">sms</td> - </tr> - <tr> - <td><code>sms-sent</code></td> - <td><code>f( <a href="/zh-CN/docs/Web/API/SmsMessage" title="此页面仍未被本地化, 期待您的翻译!"><code>SmsMessage</code></a> sms )</code></td> - <td>sms</td> - </tr> - <tr> - <td><code>telephony-call-ended</code></td> - <td><code>f( object call )</code></td> - <td>telephony</td> - </tr> - <tr> - <td><code>telephony-new-call</code></td> - <td><code>f( )</code></td> - <td>telephony</td> - </tr> - <tr> - <td><code>ussd-received</code></td> - <td><code>f( object ussd )</code></td> - <td>mobileconnection</td> - </tr> - <tr> - <td><code>wappush-received</code></td> - <td><code>f( object wappush )</code></td> - <td>wappush</td> - </tr> - </tbody> -</table> - -<h2 id="规范说明">规范说明</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">Specification</th> - <th scope="col">Status</th> - <th scope="col">Comment</th> - </tr> - <tr> - <td><a class="external" hreflang="en" lang="en" title="Unknown">Unknown</a></td> - <td><span class="spec-">Unknown</span></td> - <td>Defines the system messaging interfaces.</td> - </tr> - </tbody> -</table> - -<h2 id="浏览器兼容性">浏览器兼容性</h2> - -<p></p><p class="warning"><strong><a href="https://github.com/mdn/browser-compat-data">We're converting our compatibility data into a machine-readable JSON format</a></strong>. - This compatibility table still uses the old format, - because we haven't yet converted the data it contains. - <strong><a href="/zh-CN/docs/MDN/Contribute/Structures/Compatibility_tables">Find out how you can help!</a></strong></p> - -<div class="htab"> - <a id="AutoCompatibilityTable" name="AutoCompatibilityTable"></a> - <ul> - <li class="selected"><a>Desktop</a></li> - <li><a>Mobile</a></li> - </ul> -</div><p></p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Chrome</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari (WebKit)</th> - </tr> - <tr> - <td>Basic support</td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android</th> - <th>Firefox OS</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Basic support</td> - <td><span style="color: #f00;">未实现</span></td> - <td>1.0</td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - </tr> - </tbody> -</table> -</div> - -<h2 id="参见">参见</h2> - -<ul> - <li><a href="/zh-CN/docs/Web/API/Window/navigator/mozHasPendingMessage" title="此页面仍未被本地化, 期待您的翻译!"><code>navigator.mozHasPendingMessage()</code></a></li> - <li><a href="/en-US/docs/WebAPI/Web_Activities" title="/en-US/docs/WebAPI/Web_Activities">Web Activities</a></li> - <li><a href="https://groups.google.com/forum/?fromgroups=#!topic/mozilla.dev.webapi/o8bkwx0EtmM" title="https://groups.google.com/forum/?fromgroups=#!topic/mozilla.dev.webapi/o8bkwx0EtmM">Discussion on the Mozilla WebAPI mailing list.</a></li> -</ul> diff --git a/files/zh-cn/archive/b2g_os/api/navigator/moztelephony/index.html b/files/zh-cn/archive/b2g_os/api/navigator/moztelephony/index.html deleted file mode 100644 index 9161c818ba..0000000000 --- a/files/zh-cn/archive/b2g_os/api/navigator/moztelephony/index.html +++ /dev/null @@ -1,85 +0,0 @@ ---- -title: Navigator.mozTelephony -slug: Archive/B2G_OS/API/Navigator/MozTelephony -translation_of: Archive/B2G_OS/API/Navigator/MozTelephony ---- -<p></p><section class="Quick_links" id="Quick_Links"><ol><li><strong><a href="/zh-CN/docs/Web/API/Archive"><code>Archive</code></a></strong></li><li class="toggle"><details open><summary>Related pages for Firefox OS</summary><ol><li><a href="/zh-CN/docs/Web/API/MozAlarmsManager"><code>MozAlarmsManager</code></a></li><li><a href="/zh-CN/docs/Web/API/MozMobileNetworkInfo"><code>MozMobileNetworkInfo</code></a></li><li><a href="/zh-CN/docs/Web/API/MozWifiP2pGroupOwner"><code>MozWifiP2pGroupOwner</code></a></li></ol></details></li></ol></section><p></p> - -<p></p><div class="overheadIndicator nonStandard nonStandardHeader"> - <p><strong><span title="This API has not been standardized."><i class="icon-warning-sign"> </i></span> 非标准</strong><br> - 该特性是非标准的,请尽量不要在生产环境中使用它!</p> - </div><p></p> - -<p></p><div class="warning"> - <p style="text-align: center;">此 API 仅在 <a href="/zh-CN/docs/Mozilla/Firefox_OS">Firefox OS</a> 的<a href="/zh-CN/docs/Mozilla/Firefox_OS/Security/Application_security#App_Types">内部应用程序</a>中可用。</p> -</div><p></p> - -<h2 id="Summary" name="Summary">概要</h2> - -<p>返回一个你可以用来从浏览器启动和控制电话呼叫的<a href="/zh-CN/docs/Web/API/Telephony" title="此页面仍未被本地化, 期待您的翻译!"><code>Telephony</code></a>对象。</p> - -<h2 id="Syntax" name="Syntax">语法</h2> - -<pre class="eval">var <em>phone</em> = window.navigator.mozTelephony; -</pre> - -<h2 id="Value" name="Value">值</h2> - -<p><code>navigator.mozTelephony</code>是一个可以用来控制浏览器正在运行的设备上电话功能的<a href="/zh-CN/docs/Web/API/Telephony" title="此页面仍未被本地化, 期待您的翻译!"><code>Telephony</code></a>对象</p> - -<h2 id="详述">详述</h2> - -<p>这是一个非标准实现,但正在作为<a href="http://www.w3.org/2012/sysapps/" title="http://www.w3.org/2012/sysapps/">系统应用工作组</a>的一部分被W3C讨论。</p> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">详述</th> - <th scope="col">状态</th> - <th scope="col">内容</th> - </tr> - </thead> - <tbody> - <tr> - <td><a class="external" href="https://wiki.mozilla.org/WebAPI/WebTelephony" hreflang="en" lang="en" title="Web Telephony">Web Telephony</a></td> - <td><span class="spec-Draft">Draft</span></td> - <td>Editor Draft (WIP).</td> - </tr> - </tbody> -</table> - -<h2 id="浏览器适应性">浏览器适应性</h2> - -<p>由于诸多原因, 其主要的支持预期在手机浏览器上。</p> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>功能</th> - <th>Android</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>基本支持</td> - <td><span style="color: #f00;">未实现</span></td> - <td>12.0 (12.0)</td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - <td><span style="color: #f00;">未实现</span></td> - </tr> - </tbody> -</table> -</div> - -<h2 id="参见">参见</h2> - -<ul> - <li><a href="../../../../en/DOM/Using_the_Telephony_API" title="en/DOM/Using the Telephony API">Using the Telephony API</a></li> - <li><a href="/zh-CN/docs/Web/API/Telephony" title="此页面仍未被本地化, 期待您的翻译!"><code>Telephony</code></a></li> - <li><a href="/zh-CN/docs/Web/API/TelephonyCall" title="此页面仍未被本地化, 期待您的翻译!"><code>TelephonyCall</code></a></li> - <li><a href="/zh-CN/docs/Web/API/CallEvent" title="此页面仍未被本地化, 期待您的翻译!"><code>CallEvent</code></a></li> -</ul> |