summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--o3d/DEPS2
-rwxr-xr-xo3d/documentation/build_docs.py4
-rw-r--r--o3d/documentation/jsdoc-toolkit-templates/class.tmpl2
-rw-r--r--o3d/documentation/jsdoc-toolkit-templates/members.tmpl2
-rw-r--r--o3d/documentation/jsdoc-toolkit-templates/publish.js34
-rw-r--r--o3d/plugin/idl/buffer.idl1
6 files changed, 34 insertions, 11 deletions
diff --git a/o3d/DEPS b/o3d/DEPS
index f2b1e67..3b5e9c7 100644
--- a/o3d/DEPS
+++ b/o3d/DEPS
@@ -1,6 +1,6 @@
vars = {
"chromium_trunk": "http://src.chromium.org/svn/trunk",
- "nixysa_rev": "61",
+ "nixysa_rev": "62",
"chromium_rev": "28829",
"o3d_code_rev": "166",
"skia_rev": "376",
diff --git a/o3d/documentation/build_docs.py b/o3d/documentation/build_docs.py
index ce4d2a1..bf98170 100755
--- a/o3d/documentation/build_docs.py
+++ b/o3d/documentation/build_docs.py
@@ -161,8 +161,10 @@ def DeleteOldDocs(docs_js_outpath):
except:
pass
+
def BuildJavaScriptForDocsFromIDLs(idl_files, output_dir):
- RunNixysa(idl_files, 'jsheader', output_dir, ['--properties-equal-undefined'])
+ RunNixysa(idl_files, 'jsheader', output_dir,
+ ['--properties-equal-undefined', '--overloaded-function-docs'])
def BuildJavaScriptForExternsFromIDLs(idl_files, output_dir):
diff --git a/o3d/documentation/jsdoc-toolkit-templates/class.tmpl b/o3d/documentation/jsdoc-toolkit-templates/class.tmpl
index e1865f6..950462b 100644
--- a/o3d/documentation/jsdoc-toolkit-templates/class.tmpl
+++ b/o3d/documentation/jsdoc-toolkit-templates/class.tmpl
@@ -95,7 +95,7 @@ thisClass = data;
<td class="type">
<if test="method.type.length">{+linkifyTypeSpec(makeName('[Method Summary]', thisClass.alias, method.name), method.type)+}&nbsp;</if>
</td>
- <td><a class="el" href="#{+method.name+}">{+method.name+}</a>{+makeSignature(method.params)+}
+ <td><a class="el" href="#{+method.name+}">{+getNonOverloadedName(method.name)+}</a>{+makeSignature(method.params)+}
<if test="isDeprecated(method)">
<span class="deprecated">[[]**DEPRECATED**]</span>
</if>
diff --git a/o3d/documentation/jsdoc-toolkit-templates/members.tmpl b/o3d/documentation/jsdoc-toolkit-templates/members.tmpl
index 0d5946b..e5f4ed6 100644
--- a/o3d/documentation/jsdoc-toolkit-templates/members.tmpl
+++ b/o3d/documentation/jsdoc-toolkit-templates/members.tmpl
@@ -30,7 +30,7 @@ This is the complete list of members for
<if test="ownMethods.length">
<for each="method" in="ownMethods">
<if test="!method.isPrivate">
- <tr class="memlist"><td><a class="el" href="{+getLinkToClassByAlias(thisClass.alias)+}#{+method.name+}">{+method.name+}</a>{+ makeSignature(method.params) +}</td><td><a class="el" href="{+getLinkToClassByAlias(method.memberOf)+}">{+method.memberOf+}</a></td><td></td></tr>
+ <tr class="memlist"><td><a class="el" href="{+getLinkToClassByAlias(thisClass.alias)+}#{+method.name+}">{+getNonOverloadedName(method.name)+}</a>{+ makeSignature(method.params) +}</td><td><a class="el" href="{+getLinkToClassByAlias(method.memberOf)+}">{+method.memberOf+}</a></td><td></td></tr>
</if>
</for>
</if>
diff --git a/o3d/documentation/jsdoc-toolkit-templates/publish.js b/o3d/documentation/jsdoc-toolkit-templates/publish.js
index fa990d1..02cc8bb 100644
--- a/o3d/documentation/jsdoc-toolkit-templates/publish.js
+++ b/o3d/documentation/jsdoc-toolkit-templates/publish.js
@@ -66,6 +66,9 @@ var g_templates = [];
var g_o3dPropertyRE = /^(\w+)\s+(\w+)\s+/;
var g_startContainerRE = /^(?:function\(|!function\(|[\(<{[])/;
var g_containerRE = /function\(|!function\(|[\(<{[]/;
+var g_overloadRE = /xxxOVERLOADED\d+xxx/;
+var g_overloadStr = 'xxxOVERLOADED';
+var g_firstOverloadStr = 'xxxOVERLOADED0xxx';
var g_openCloseMap = {
'function(': ')',
'!function(': ')',
@@ -78,6 +81,7 @@ var g_closeMap = {
'>': true,
']': true,
'}': true};
+var g_symbolsWithoutOverload = {};
/**
* Called automatically by JsDoc Toolkit.
@@ -818,11 +822,14 @@ function linkifySingleType(place, type) {
var subType = type.substring(0, period);
var member = type.substring(period + 1);
symbol = getSymbol(subType);
- if (symbol && symbol.hasMember(member)) {
- var field = type.substring(period + 1);
- link = '<a class="el" href="' + getLinkToSymbol(symbol) + '#' +
- field + '">' + type + '</a>';
- found = true;
+ if (symbol) {
+ if (symbol.hasMember(member) ||
+ symbol.hasMember(member + g_firstOverloadStr)) {
+ var field = type.substring(period + 1);
+ link = '<a class="el" href="' + getLinkToSymbol(symbol) + '#' +
+ field + '">' + type + '</a>';
+ found = true;
+ }
}
}
@@ -1069,6 +1076,19 @@ function getQualifiedName(method) {
}
/**
+ * Removes the "xxxOVERLOADEDxxx" part of a name
+ * @param {string} name Name that may have a overloaded suffux.
+ * @return {string} The name without the overloaded suffix.
+ */
+function getNonOverloadedName(name) {
+ var index = name.indexOf(g_overloadStr);
+ if (index >= 0) {
+ return name.substring(0, index);
+ }
+ return name;
+}
+
+/**
* Gets a Documentation name. For members of a namespace returns the fully
* qualified name. For members of a class returns ClassName.name
* @param {!Symbol} parent Symbol that we are making docs for.
@@ -1077,9 +1097,9 @@ function getQualifiedName(method) {
*/
function getDocName(parent, child) {
if (parent.isNamespace) {
- return child.memberOf + "." + child.name;
+ return child.memberOf + "." + getNonOverloadedName(child.name);
}
- return parent.name + "." + child.name;
+ return parent.name + "." + getNonOverloadedName(child.name);
}
/**
diff --git a/o3d/plugin/idl/buffer.idl b/o3d/plugin/idl/buffer.idl
index 83a4c6a..37d25a2 100644
--- a/o3d/plugin/idl/buffer.idl
+++ b/o3d/plugin/idl/buffer.idl
@@ -77,6 +77,7 @@ class Buffer : NamedObject {
Sets the values in the buffer given a RawData object.
\param raw_data contains data to assign to the Buffer data itself.
+ \return True if operation was successful.
%]
bool Set(RawData raw_data);