Author: zhen
Date: Thu Jan 10 20:49:52 2008
New Revision: 611045
URL: http://svn.apache.org/viewvc?rev=611045&view=rev
Log:
Added skeletons for the "dynamic-height" and "settitle" features.
Added:
incubator/shindig/trunk/features/dynamic-height/
incubator/shindig/trunk/features/dynamic-height/dynamic-height.js
incubator/shindig/trunk/features/dynamic-height/feature.xml
incubator/shindig/trunk/features/settitle/
incubator/shindig/trunk/features/settitle/feature.xml
incubator/shindig/trunk/features/settitle/settitle.js
Modified:
incubator/shindig/trunk/features/features.txt
Added: incubator/shindig/trunk/features/dynamic-height/dynamic-height.js
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/dynamic-height/dynamic-height.js?rev=611045&view=auto
==============================================================================
--- incubator/shindig/trunk/features/dynamic-height/dynamic-height.js (added)
+++ incubator/shindig/trunk/features/dynamic-height/dynamic-height.js Thu Jan
10 20:49:52 2008
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * @fileoverview This library augments gadgets.Window with functionality
+ * to change the height of a gadget dynamically.
+ */
+
+gadgets.Window = gadgets.Window || {};
+
+/**
+ * Adjusts the gadget height
+ * @param {Number} opt_height Preferred height in pixels.
+ */
+gadgets.Window.adjustHeight = function(opt_height) {
+ // TODO
+};
+
Added: incubator/shindig/trunk/features/dynamic-height/feature.xml
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/dynamic-height/feature.xml?rev=611045&view=auto
==============================================================================
--- incubator/shindig/trunk/features/dynamic-height/feature.xml (added)
+++ incubator/shindig/trunk/features/dynamic-height/feature.xml Thu Jan 10
20:49:52 2008
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations under the License.
+-->
+<feature>
+ <name>dynamic-height</name>
+ <dependency>ifpc</dependency>
+ <gadget>
+ <script src="dynamic-height.js"/>
+ </gadget>
+</feature>
Modified: incubator/shindig/trunk/features/features.txt
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/features.txt?rev=611045&r1=611044&r2=611045&view=diff
==============================================================================
--- incubator/shindig/trunk/features/features.txt (original)
+++ incubator/shindig/trunk/features/features.txt Thu Jan 10 20:49:52 2008
@@ -6,3 +6,5 @@
features/opensocial-reference/feature.xml
features/opensocial-samplecontainer/feature.xml
features/setprefs/feature.xml
+features/dynamic-height/feature.xml
+features/settitle/feature.xml
Added: incubator/shindig/trunk/features/settitle/feature.xml
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/settitle/feature.xml?rev=611045&view=auto
==============================================================================
--- incubator/shindig/trunk/features/settitle/feature.xml (added)
+++ incubator/shindig/trunk/features/settitle/feature.xml Thu Jan 10 20:49:52
2008
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations under the License.
+-->
+<feature>
+ <name>settitle</name>
+ <dependency>ifpc</dependency>
+ <gadget>
+ <script src="settitle.js"/>
+ </gadget>
+</feature>
Added: incubator/shindig/trunk/features/settitle/settitle.js
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/settitle/settitle.js?rev=611045&view=auto
==============================================================================
--- incubator/shindig/trunk/features/settitle/settitle.js (added)
+++ incubator/shindig/trunk/features/settitle/settitle.js Thu Jan 10 20:49:52
2008
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * @fileoverview This library augments gadgets.Window with functionality
+ * to set the title of a gadget dynamically.
+ */
+
+gadgets.Window = gadgets.Window || {};
+
+/**
+ * Sets the gadget title.
+ * @param {String} title Preferred title.
+ */
+gadgets.Window.setTitle = function(title) {
+ // TODO
+};
+