webengine/osswebengine/WebKit/s60/webview/PageView.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 26 Oct 2009 08:28:45 +0200
changeset 15 60c5402cb945
parent 0 dd21522fd290
permissions -rw-r--r--
Revision: 200941 Kit: 200943

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   Page overview control
*
*/



#ifndef PAGEVIEW_H
#define PAGEVIEW_H

//  INCLUDES
#include <e32base.h>
#include <bitdev.h>
#include <coecntrl.h>


// CONSTANTS

// FORWARD DECLARATIONS


// CLASS DECLARATION

class WebView;

/**
*  Displays the Page overview
*
*  @lib browserview.lib
*  @since Series 60 3.0
*/
class CPageView : public CCoeControl
    {
    public:  // Constructors and destructor

        /**
        * Two-phased constructor.
        */
        static CPageView* NewL( WebView& aView );

        /**
        * Destructor.
        */
        virtual ~CPageView();

    public: // New functions

        /**
        * Draws the offscreen bitmap to the screen
        * @since 3.0
        * @param aGc System graphics context
        * @param aRect rectangle to be drawn
        * @return void
        */
        virtual void Draw( const TRect& aRect ) const;

        /**
        * HandlePointerEventL
        * From CCoeControl
        *
        */
        void HandlePointerEventL(const TPointerEvent& aPointerEvent);


    private:

        /**
        * Constructor
        * @since 3.x
        * @param aWebKitControl
        * @param aRect
        * @param aMode display mode
        */
        CPageView( WebView& aView );

        /**
        * ConstructL
        * @since 3.x
        */
        void ConstructL( );

        void SizeChanged();

    private:    // Data


        WebView* m_webView;
    };

#endif      // HISTORYVIEW_H

// End of File