webengine/osswebengine/WebKit/s60/webview/WebSurface.h
changeset 0 dd21522fd290
child 91 30342f40acbf
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Handles the viewing of a single frame. If the page is not frame
       
    15 *                enabled, this class is used as the single view.  If frame
       
    16 *                enabled, there is one instance of this class for each frame.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef __WEBKITSURFACE_H__
       
    22 #define __WEBKITSURFACE_H__
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <gdi.h>
       
    26 
       
    27 //forward declarations
       
    28 class CFbsBitmapDevice;
       
    29 class CFbsBitmap;
       
    30 class CBitmapContext;
       
    31 class WebView;
       
    32 
       
    33 class WebSurface : public CBase
       
    34 {
       
    35 public:
       
    36     static WebSurface* NewL( TDisplayMode mode = EColor16MU );
       
    37 	
       
    38 	~WebSurface();
       
    39 	
       
    40 	void flip( const TPoint& pt, CBitmapContext& gc ) const;
       
    41 	
       
    42 	CFbsBitmap* offscreenBitmap() const				{ return m_offscreenbitmap;	}
       
    43 	WebView* topView() const				        { return m_topview; }
       
    44 	void setView(WebView* view)			{ m_topview = view; }
       
    45 	TDisplayMode displayMode() const				{ return m_displaymode; }
       
    46 	
       
    47 private:
       
    48     WebSurface(TDisplayMode aMode);
       
    49 	void ConstructL();	
       
    50 			
       
    51 private:
       
    52     CFbsBitmap*             m_offscreenbitmap;  	// owned
       
    53     TDisplayMode 			m_displaymode; 		// indicates the display mode that is used by the browser
       
    54     WebView*			    m_topview;
       
    55 };
       
    56 
       
    57 #endif //__WEBKITSURFACE_H__