wmdrm/camese/wmdrmdlaapp/src/wmdrmdlabrowsercontainer.cpp
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:21:16 +0100
branchRCL_3
changeset 27 1481bf457703
parent 26 1221b68b8a5f
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     1
/*
27
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
     2
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     3
* All rights reserved.
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     8
*
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     9
* Initial Contributors:
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    11
*
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    12
* Contributors:
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    13
*
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    14
* Description:  Implementation class for WMDRM DLA Browser Container
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    15
*
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    16
*/
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    17
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    18
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    19
// INCLUDE FILES
12
8a03a285ab14 Revision: 201009
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 0
diff changeset
    20
#include <AknDef.h>
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    21
#include <aknview.h>
27
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    22
#include <brctlinterface.h>
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    23
#include "wmdrmdlabrowserview.h"
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    24
#include "wmdrmdlabrowsercontainer.h"
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    25
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    26
// ======== MEMBER FUNCTIONS ========
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    27
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    28
// ---------------------------------------------------------------------------
27
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    29
// CWmDrmDlaBrowserContainer::ConstructL
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    30
// ---------------------------------------------------------------------------
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    31
//
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    32
void CWmDrmDlaBrowserContainer::ConstructL(
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    33
    MBrCtlSpecialLoadObserver* aObserver )
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    34
    {
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    35
    CreateWindowL();
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    36
    SetRect( iView->ClientRect() );
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    37
    
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    38
    iBrCtlInterface = CreateBrowserControlL(
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    39
            this,                                      // parent control
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    40
            iView->ClientRect(),                       // client rect
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    41
            TBrCtlDefs::ECapabilityLoadHttpFw |
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    42
            TBrCtlDefs::ECapabilityDisplayScrollBar |
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    43
            TBrCtlDefs::ECapabilityUseDlMgr |
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    44
            TBrCtlDefs::ECapabilityCursorNavigation,   // Capabilities
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    45
            TBrCtlDefs::ECommandIdBase,                // command base
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    46
            NULL,                                      // Softkeys observer
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    47
            NULL,                                      // LinkResolver
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    48
            aObserver,                                 // Special load observer
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    49
            NULL,                                      // Layout Observer
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    50
            NULL,                                      // Dialog provider
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    51
            NULL,                                      // window observer
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    52
            NULL                                       // Download observer
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    53
            );
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    54
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    55
    iBrCtlInterface->SetBrowserSettingL( TBrCtlDefs::ESettingsAutoLoadImages,
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    56
                                         ETrue );
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    57
    iBrCtlInterface->SetBrowserSettingL( TBrCtlDefs::ESettingsCookiesEnabled,
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    58
                                         ETrue );
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    59
    iBrCtlInterface->SetBrowserSettingL( TBrCtlDefs::ESettingsEmbedded,
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    60
                                         ETrue );
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    61
    ActivateL();
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    62
    }
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    63
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    64
// ---------------------------------------------------------------------------
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    65
// CWmDrmDlaBrowserContainer::CWmDrmDlaBrowserContainer
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    66
// ---------------------------------------------------------------------------
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    67
//
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    68
CWmDrmDlaBrowserContainer::CWmDrmDlaBrowserContainer(
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    69
    CAknView* aView ) : iView( aView )
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    70
    {
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    71
    }
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    72
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    73
// ---------------------------------------------------------------------------
27
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    74
// CWmDrmDlaBrowserContainer::NewL
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    75
// ---------------------------------------------------------------------------
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    76
//
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    77
CWmDrmDlaBrowserContainer* CWmDrmDlaBrowserContainer::NewL(
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    78
    CAknView* aView,
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    79
    MBrCtlSpecialLoadObserver* aObserver )
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    80
    {
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    81
    CWmDrmDlaBrowserContainer* self
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    82
        = CWmDrmDlaBrowserContainer::NewLC( aView, aObserver );
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    83
    CleanupStack::Pop( self );
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    84
    return self;
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    85
    }
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    86
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    87
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    88
// ---------------------------------------------------------------------------
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    89
// CWmDrmDlaBrowserContainer::NewLC
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    90
// ---------------------------------------------------------------------------
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    91
//
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    92
CWmDrmDlaBrowserContainer* CWmDrmDlaBrowserContainer::NewLC(
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    93
    CAknView* aView,
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    94
    MBrCtlSpecialLoadObserver* aObserver )
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    95
    {
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    96
    CWmDrmDlaBrowserContainer* self
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    97
        = new( ELeave ) CWmDrmDlaBrowserContainer( aView );
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    98
    CleanupStack::PushL( self );
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
    99
    self->ConstructL( aObserver );
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   100
    return self;
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   101
    }
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   102
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   103
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   104
// ---------------------------------------------------------------------------
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   105
// CWmDrmDlaBrowserContainer::~CWmDrmDlaBrowserContainer
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   106
// ---------------------------------------------------------------------------
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   107
//
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   108
CWmDrmDlaBrowserContainer::~CWmDrmDlaBrowserContainer()
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   109
    {
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   110
    if(iBrCtlInterface != NULL)
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   111
    {
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   112
    TRAP_IGNORE( iBrCtlInterface->HandleCommandL( (TInt)TBrCtlDefs::ECommandCancelFetch + (TInt)TBrCtlDefs::ECommandIdBase ));	
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   113
    }	
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   114
    delete iBrCtlInterface;
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   115
    }
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   116
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   117
// ---------------------------------------------------------------------------
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   118
// CWmDrmDlaBrowserContainer::BrCtlInterface
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   119
// ---------------------------------------------------------------------------
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   120
//
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   121
CBrCtlInterface* CWmDrmDlaBrowserContainer::BrCtlInterface()
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   122
    {
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   123
    return iBrCtlInterface;
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   124
    }
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   125
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   126
// ---------------------------------------------------------------------------
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   127
// CWmDrmDlaBrowserContainer::CountComponentControls
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   128
// ---------------------------------------------------------------------------
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   129
//
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   130
TInt CWmDrmDlaBrowserContainer::CountComponentControls() const
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   131
    {
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   132
    if ( iBrCtlInterface )
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   133
        {
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   134
        return 1;
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   135
        }
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   136
    return 0;
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   137
    }
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   138
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   139
// ---------------------------------------------------------------------------
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   140
// CWmDrmDlaBrowserContainer::SizeChanged
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   141
// ---------------------------------------------------------------------------
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   142
//
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   143
void CWmDrmDlaBrowserContainer::SizeChanged()
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   144
    {
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   145
    if ( iBrCtlInterface )
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   146
        {
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   147
        iBrCtlInterface->SetRect( Rect() );
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   148
        }
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   149
    }
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   150
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   151
// ---------------------------------------------------------------------------
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   152
// CWmDrmDlaBrowserContainer::ComponentControl
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   153
// ---------------------------------------------------------------------------
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   154
//
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   155
CCoeControl* CWmDrmDlaBrowserContainer::ComponentControl(
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   156
    TInt aIndex ) const
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   157
    {
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   158
    switch ( aIndex )
12
8a03a285ab14 Revision: 201009
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 0
diff changeset
   159
        {
27
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   160
        case 0:
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   161
            return iBrCtlInterface;
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   162
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   163
        default:
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   164
            return NULL;
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   165
        }
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   166
    }
12
8a03a285ab14 Revision: 201009
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 0
diff changeset
   167
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   168
// ---------------------------------------------------------------------------
27
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   169
// CWmDrmDlaBrowserContainer::OfferKeyEventL
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   170
// ---------------------------------------------------------------------------
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   171
//
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   172
TKeyResponse CWmDrmDlaBrowserContainer::OfferKeyEventL(
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   173
    const TKeyEvent& aKeyEvent,
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   174
    TEventCode aType )
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   175
    {
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   176
    if ( iBrCtlInterface )
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   177
        {
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   178
        return iBrCtlInterface->OfferKeyEventL( aKeyEvent, aType );
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   179
        }
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   180
    return EKeyWasNotConsumed;
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   181
    }
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   182
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   183
// ---------------------------------------------------------------------------
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   184
// CWmDrmDlaBrowserContainer::FocusChanged
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   185
// ---------------------------------------------------------------------------
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   186
//
12
8a03a285ab14 Revision: 201009
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 0
diff changeset
   187
void CWmDrmDlaBrowserContainer::FocusChanged(
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   188
    TDrawNow aDrawNow )
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   189
    {
27
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   190
    iBrCtlInterface->SetFocus( IsFocused() );
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   191
    CCoeControl::FocusChanged( aDrawNow );
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   192
    }
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   193
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   194
// ---------------------------------------------------------------------------
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   195
// CWmDrmDlaBrowserContainer::HandleResourceChange
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   196
// ---------------------------------------------------------------------------
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   197
//
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   198
void CWmDrmDlaBrowserContainer::HandleResourceChange(
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   199
    TInt aType )
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   200
    {
27
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   201
    if ( iBrCtlInterface )
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   202
        {
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   203
        iBrCtlInterface->HandleResourceChange( aType );
1481bf457703 Revert incorrect RCL_3 drop:
Pat Downey <patd@symbian.org>
parents: 26
diff changeset
   204
        }
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   205
    CCoeControl::HandleResourceChange( aType );
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   206
    if ( aType == KEikDynamicLayoutVariantSwitch )
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   207
        {
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   208
        SetRect( iView->ClientRect() );
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   209
        DrawDeferred();
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   210
        }
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   211
    }