/**@class android.content.UndoOperation implements android.os.Parcelable @extends java.lang.Object A single undoable operation. You must subclass this to implement the state and behavior for your operation. Instances of this class are placed and managed in an {@link android.content.UndoManager}. @hide */ var UndoOperation = { /**Owning object as given to {@link #UndoOperation}(UndoOwner). */ getOwner : function( ) {}, /**Synonym for {@link #getOwner}().{@link android.content.UndoOwner#getData()}. */ getOwnerData : function( ) {}, /**Return true if this undo operation is a member of the given owner. The default implementation is <code>owner == getOwner()</code>. You can override this to provide more sophisticated dependencies between owners. */ matchOwner : function( ) {}, /**Return true if this operation actually contains modification data. The default implementation always returns true. If you return false, the operation will be dropped when the final undo state is being built. */ hasData : function( ) {}, /**Return true if this operation can be merged with a later operation. The default implementation always returns true. */ allowMerge : function( ) {}, /**Called when this undo state is being committed to the undo stack. The implementation should perform the initial edits and save any state that may be needed to undo them. */ commit : function( ) {}, /**Called when this undo state is being popped off the undo stack (in to the temporary redo stack). The implementation should remove the original edits and thus restore the target object to its prior value. */ undo : function( ) {}, /**Called when this undo state is being pushed back from the transient redo stack to the main undo stack. The implementation should re-apply the edits that were previously removed by {@link #undo}. */ redo : function( ) {}, /** */ describeContents : function( ) {}, };