[wiki.onering-desktop] push by - Edited wiki page PluginBasedArchitecture through web user interface. on 2011-05-19 05:43 GMT

0 views
Skip to first unread message

onering...@googlecode.com

unread,
May 19, 2011, 1:46:49 AM5/19/11
to oneri...@googlegroups.com
Revision: 02842be318c7
Author: hongqn
Date: Wed May 18 22:43:13 2011
Log: Edited wiki page PluginBasedArchitecture through web user
interface.
http://code.google.com/p/onering-desktop/source/detail?repo=wiki&r=02842be318c7

Modified:
/PluginBasedArchitecture.wiki

=======================================
--- /PluginBasedArchitecture.wiki Wed May 18 22:42:10 2011
+++ /PluginBasedArchitecture.wiki Wed May 18 22:43:13 2011
@@ -62,7 +62,7 @@
* `int register_onering_plugin(const char* appname)`
用appname为名注册该plugin。

-每个 OneRingPlugin 应提供一个 onering://{appname}/{appname}.js 文件,在其中
可以定义一个到多个native类的代理js类,该类应定义在 ONERING.{appname} 名字空
间下。一般而言,在构造函数中调用this._create创建native对象,在自定义方法中调
用this._call调用native对象的方法。一个典型的例子如下
+每个 OneRingPlugin 应提供一个 onering://{appname}/{appname}.js 文件,在其中
可以定义一个到多个native类的代理js类,该类应定义在 ONERING.{appname} 名字空
间下。一般而言,在构造函数中调用`this._create`创建native对象,在自定义方法中
调用`this._call`调用native对象的方法。一个典型的例子如下
{{{
ONERING.hotkey = new Object();
ONERING.hotkey.HotKey = function(shortcut, callback) {
Reply all
Reply to author
Forward
0 new messages