<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.huihoo.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-cn">
		<id>http://wiki.huihoo.com/wiki/?action=history&amp;feed=atom&amp;title=OneRing</id>
		<title>OneRing - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.huihoo.com/wiki/?action=history&amp;feed=atom&amp;title=OneRing"/>
		<link rel="alternate" type="text/html" href="http://wiki.huihoo.com/wiki/?title=OneRing&amp;action=history"/>
		<updated>2026-06-27T04:17:51Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.19.2</generator>

	<entry>
		<id>http://wiki.huihoo.com/wiki/?title=OneRing&amp;diff=123484&amp;oldid=prev</id>
		<title>Allen：/* 链接 */</title>
		<link rel="alternate" type="text/html" href="http://wiki.huihoo.com/wiki/?title=OneRing&amp;diff=123484&amp;oldid=prev"/>
				<updated>2013-01-04T03:06:04Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;链接&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←上一版本&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;2013年1月4日 (五) 03:06的版本&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第33行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第33行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:WebKit]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:WebKit]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:JavaScript]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:JavaScript]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[category:event]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Allen</name></author>	</entry>

	<entry>
		<id>http://wiki.huihoo.com/wiki/?title=OneRing&amp;diff=44252&amp;oldid=prev</id>
		<title>Allen：以内容'OneRing是一个跨平台的桌面应用框架。和Adobe AIR类似，它支持用html/js/css制作用户界面，与之不同的是，它的应用为本地程序，可以...'创建新页面</title>
		<link rel="alternate" type="text/html" href="http://wiki.huihoo.com/wiki/?title=OneRing&amp;diff=44252&amp;oldid=prev"/>
				<updated>2010-12-22T09:58:29Z</updated>
		
		<summary type="html">&lt;p&gt;以内容&amp;#039;OneRing是一个跨平台的桌面应用框架。和Adobe AIR类似，它支持用html/js/css制作用户界面，与之不同的是，它的应用为本地程序，可以...&amp;#039;创建新页面&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;OneRing是一个跨平台的桌面应用框架。和Adobe AIR类似，它支持用html/js/css制作用户界面，与之不同的是，它的应用为本地程序，可以直接访问操作系统的数据。&lt;br /&gt;
&lt;br /&gt;
==架构==&lt;br /&gt;
一个OneRing应用程序分为两个部分：框架部分和应用部分。&lt;br /&gt;
*框架部分&lt;br /&gt;
框架部分为通用框架，各应用都一样。其提供各操作系统上的界面展现，为本地窗口内嵌一个WebKit浏览器，并提供一致的js接口让应用和操作系统功能进行交互。&lt;br /&gt;
&lt;br /&gt;
框架以运行时库的形式提供。&lt;br /&gt;
&lt;br /&gt;
框架以系统原生语言编写，提供其他语言的绑定。&lt;br /&gt;
&lt;br /&gt;
*应用部分&lt;br /&gt;
应用部分为一个web server，负责应用逻辑，用html/css描述界面，用js提供用户交互。&lt;br /&gt;
&lt;br /&gt;
==运行流程==&lt;br /&gt;
*应用启动时，会加载框架的运行时库，注册应用url的访问方法（如WSGI），并调用框架的loop函数。&lt;br /&gt;
*loop函数会访问应用的 /init URL，得到一个json数据，描述初始应用窗口的相关参数，如位置、大小、窗口属性、初始页面url等。&lt;br /&gt;
*框架根据该数据创建窗口，并让该窗口内的浏览器访问初始页面url，渲染用户界面，然后等待UI事件。&lt;br /&gt;
*用户在界面上操作时，可以通过超链接改变整个窗口内容，也可以使用AJAX技术更新窗口内部分内容。&lt;br /&gt;
*应用可以让浏览器调用ONERING名字空间下的js函数，和操作系统进行交互，该名字空间由url onering://onering/onering.js 加载。&lt;br /&gt;
*应用通过 bind(event, function) 函数监听窗口更改大小、移动等操作系统UI事件。&lt;br /&gt;
*可以使用pub/sub机制主动推送消息给浏览器。&lt;br /&gt;
*调用 ONERING.exit() 可以退出应用；所有窗口都关闭后也会退出应用。&lt;br /&gt;
&lt;br /&gt;
==链接==&lt;br /&gt;
*[http://code.google.com/p/onering-desktop/ OneRing项目主页]&lt;br /&gt;
&lt;br /&gt;
{{comment}}&lt;br /&gt;
&lt;br /&gt;
[[Category:HTML5]]&lt;br /&gt;
[[Category:CSS3]]&lt;br /&gt;
[[Category:Qt]]&lt;br /&gt;
[[Category:WebKit]]&lt;br /&gt;
[[Category:JavaScript]]&lt;/div&gt;</summary>
		<author><name>Allen</name></author>	</entry>

	</feed>