webengine/osswebengine/WebKit/s60/webview/PageView.h
changeset 0 dd21522fd290
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:   Page overview control
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef PAGEVIEW_H
       
    21 #define PAGEVIEW_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <bitdev.h>
       
    26 #include <coecntrl.h>
       
    27 
       
    28 
       
    29 // CONSTANTS
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 class WebView;
       
    37 
       
    38 /**
       
    39 *  Displays the Page overview
       
    40 *
       
    41 *  @lib browserview.lib
       
    42 *  @since Series 60 3.0
       
    43 */
       
    44 class CPageView : public CCoeControl
       
    45     {
       
    46     public:  // Constructors and destructor
       
    47 
       
    48         /**
       
    49         * Two-phased constructor.
       
    50         */
       
    51         static CPageView* NewL( WebView& aView );
       
    52 
       
    53         /**
       
    54         * Destructor.
       
    55         */
       
    56         virtual ~CPageView();
       
    57 
       
    58     public: // New functions
       
    59 
       
    60         /**
       
    61         * Draws the offscreen bitmap to the screen
       
    62         * @since 3.0
       
    63         * @param aGc System graphics context
       
    64         * @param aRect rectangle to be drawn
       
    65         * @return void
       
    66         */
       
    67         virtual void Draw( const TRect& aRect ) const;
       
    68 
       
    69         /**
       
    70         * HandlePointerEventL
       
    71         * From CCoeControl
       
    72         *
       
    73         */
       
    74         void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    75 
       
    76 
       
    77     private:
       
    78 
       
    79         /**
       
    80         * Constructor
       
    81         * @since 3.x
       
    82         * @param aWebKitControl
       
    83         * @param aRect
       
    84         * @param aMode display mode
       
    85         */
       
    86         CPageView( WebView& aView );
       
    87 
       
    88         /**
       
    89         * ConstructL
       
    90         * @since 3.x
       
    91         */
       
    92         void ConstructL( );
       
    93 
       
    94         void SizeChanged();
       
    95 
       
    96     private:    // Data
       
    97 
       
    98 
       
    99         WebView* m_webView;
       
   100     };
       
   101 
       
   102 #endif      // HISTORYVIEW_H
       
   103 
       
   104 // End of File