idlehomescreen/xmluirendering/uiengine/src/xnviewdata.cpp
branchRCL_3
changeset 102 ba63c83f4716
parent 93 b01126ce0bec
--- a/idlehomescreen/xmluirendering/uiengine/src/xnviewdata.cpp	Wed Sep 15 12:00:00 2010 +0300
+++ b/idlehomescreen/xmluirendering/uiengine/src/xnviewdata.cpp	Wed Oct 13 14:18:30 2010 +0300
@@ -33,11 +33,14 @@
 #include "ainativeuiplugins.h"
 #include "xnpanic.h"
 
+
 #include "debug.h"
 
 // Constants
 _LIT8( KNs, "namespace" );
         
+// ============================ LOCAL FUNCTIONS ================================
+
 // ============================ MEMBER FUNCTIONS ===============================
 // -----------------------------------------------------------------------------
 // CXnViewData::NewL()
@@ -208,11 +211,6 @@
     
     iLoadError = err;
                 
-    if( !iLoadError )
-        {
-        TRAP_IGNORE( iManager.NotifyViewLoadedL( *this ) );
-        }
-
     return iLoadError;
     }
 
@@ -321,11 +319,7 @@
 //
 CXnNode* CXnViewData::ViewNode() const
     {
-    if( iNode )
-        {
-        return iNode->LayoutNode();
-        }
-    return NULL;
+    return iNode->LayoutNode();
     }
 
 // -----------------------------------------------------------------------------
@@ -624,60 +618,4 @@
     __PRINTS( "*** CXnViewData::DestroyPublishers - done" );
     }
 
-// -----------------------------------------------------------------------------
-// -----------------------------------------------------------------------------
-//
-TXnDirtyRegion* CXnViewData::DirtyRegionL( CXnNode& aNode )
-    {
-    // First make sure that the given node is "window owning"
-    CCoeControl* control( aNode.Control() );  
-    if( !control || !control->OwnsWindow() )
-        {
-        return NULL;
-        }
-
-    if( iDirtyRegion && iDirtyRegion->iControl == control )
-        {
-        return iDirtyRegion;
-        }
-
-    // in case of widget extension / popup, a widget may own window
-    for( TInt i = 0; i < iPluginsData.Count(); i++ )
-        {
-        TXnDirtyRegion* region( iPluginsData[i]->DirtyRegion() );
-        if( region && region->iControl == control )
-            {
-            return region;
-            }
-        }
-
-    // Region not found, create  a new one
-    CXnPluginData* pluginData( Plugin( &aNode ) );
-    if( pluginData )
-        {
-        return pluginData->CreateDirtyRegionL( aNode, *control );
-        }    
-
-    return NULL;
-    }
-
-// -----------------------------------------------------------------------------
-// -----------------------------------------------------------------------------
-//
-void CXnViewData::GetDirtyRegions( RPointerArray<TXnDirtyRegion>& aList )
-    {
-    if( iDirtyRegion )
-        {
-        aList.Append( iDirtyRegion );
-        }
-    for( TInt i = 0; i < iPluginsData.Count(); i++ )
-        {
-        TXnDirtyRegion* region( iPluginsData[i]->DirtyRegion() );
-        if( region )
-            {
-            aList.Append( region );
-            }
-        }
-    }
-
 // End of file