http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97572

Revision: 97572
Author:   tparscal
Date:     2011-09-19 23:11:54 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
* Added es.ContentController
* Added inheritance to block and document controllers

Modified Paths:
--------------
    trunk/parsers/wikidom/lib/synth/controllers/es.BlockController.js
    trunk/parsers/wikidom/lib/synth/controllers/es.DocumentController.js

Added Paths:
-----------
    trunk/parsers/wikidom/lib/synth/controllers/es.ContentController.js

Modified: trunk/parsers/wikidom/lib/synth/controllers/es.BlockController.js
===================================================================
--- trunk/parsers/wikidom/lib/synth/controllers/es.BlockController.js   
2011-09-19 23:07:57 UTC (rev 97571)
+++ trunk/parsers/wikidom/lib/synth/controllers/es.BlockController.js   
2011-09-19 23:11:54 UTC (rev 97572)
@@ -1,5 +1,5 @@
-es.BlockController = function() {
-       // manage interactions
+es.BlockController = function( blockView ) {
+       es.ControllerItem.call( this, blockView );
 };
 
 es.BlockController.prototype.commit = function( transaction ) {
@@ -21,3 +21,7 @@
 es.BlockController.prototype.prepareAnnotateContent = function( range, 
annotation ) {
        // generate transaction
 };
+
+/* Inheritance */
+
+es.extend( es.BlockController, es.ControllerItem );

Added: trunk/parsers/wikidom/lib/synth/controllers/es.ContentController.js
===================================================================
--- trunk/parsers/wikidom/lib/synth/controllers/es.ContentController.js         
                (rev 0)
+++ trunk/parsers/wikidom/lib/synth/controllers/es.ContentController.js 
2011-09-19 23:11:54 UTC (rev 97572)
@@ -0,0 +1,27 @@
+es.ContentController = function( contentView ) {
+       this.contentView = contentView;
+};
+
+es.ContentController.prototype.commit = function( transaction ) {
+       // commit transaction
+};
+
+es.ContentController.prototype.rollback = function( transaction ) {
+       // rollback transaction
+};
+
+es.ContentController.prototype.prepareInsertContent = function( offset, 
content ) {
+       // generate transaction
+};
+
+es.ContentController.prototype.prepareRemoveContent = function( range ) {
+       // generate transaction
+};
+
+es.ContentController.prototype.prepareAnnotateContent = function( range, 
annotation ) {
+       // generate transaction
+};
+
+/* Inheritance */
+
+es.extend( es.ContentController );

Modified: trunk/parsers/wikidom/lib/synth/controllers/es.DocumentController.js
===================================================================
--- trunk/parsers/wikidom/lib/synth/controllers/es.DocumentController.js        
2011-09-19 23:07:57 UTC (rev 97571)
+++ trunk/parsers/wikidom/lib/synth/controllers/es.DocumentController.js        
2011-09-19 23:11:54 UTC (rev 97572)
@@ -1,5 +1,5 @@
-es.DocumentController = function() {
-       // manage interactions
+es.DocumentController = function( documentView ) {
+       es.ControllerList.call( this, documentView );
 };
 
 es.DocumentController.prototype.commit = function( transaction ) {
@@ -21,3 +21,7 @@
 es.DocumentController.prototype.prepareAnnotateContent = function( range, 
annotation ) {
        // generate transaction
 };
+
+/* Inheritance */
+
+es.extend( es.DocumentController, es.ControllerList );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to