webengine/osswebengine/webkit/s60/webview/ThumbnailGenerator.h
branchRCL_3
changeset 37 ac77f89b1d9e
equal deleted inserted replaced
36:c711bdda59f4 37:ac77f89b1d9e
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Page thumbnail generator class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef THUMBNAILGENERATOR_H
       
    21 #define THUMBNAILGENERATOR_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <gdi.h>
       
    25 #include "PageScaler.h"
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // MACROS
       
    30 
       
    31 // DATA TYPES
       
    32 
       
    33 // FUNCTION PROTOTYPES
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 class CFbsBitGc;
       
    37 class CFbsBitmap;
       
    38 class CFbsBitmapDevice;
       
    39 
       
    40 class CThumbnailGenerator : public CBase
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43     
       
    44         static CThumbnailGenerator* NewL(MPageScalerCallback& aCallback);
       
    45         void ConstructL();
       
    46         virtual ~CThumbnailGenerator();
       
    47         
       
    48         void CreatePageThumbnailL();
       
    49         CFbsBitmap* PageThumbnail() {return iThumbnailBitmap;}
       
    50     
       
    51     protected:
       
    52         CThumbnailGenerator(MPageScalerCallback& aCallback);
       
    53         TBool CreateBitMapL(TSize aSize, CFbsBitmap*& aBm, CFbsBitmapDevice*& aDev, CFbsBitGc*& aGc);
       
    54         
       
    55     private:
       
    56         MPageScalerCallback* iCallback;       
       
    57         CFbsBitmap* iThumbnailBitmap; //owned
       
    58         CFbsBitmapDevice* iThumbnailBitmapDevice; //owned
       
    59         CFbsBitGc* iThumbnailBitmapGc; //owned       
       
    60     };
       
    61 
       
    62 #endif //THUMBNAILGENERATOR_H
       
    63 
       
    64 // End of File